Skip to content

Conversation

theSuess
Copy link

@theSuess theSuess commented Aug 25, 2025

This PR fixes some issues around using extends with relative paths:

  1. Don't join the context after the correct containerfile has already been found
  2. Make use of subdirectory information for volume mounts

This ensures the same behavior as docker-compose: https://docs.docker.com/compose/how-tos/multiple-compose-files/extends/#relative-paths

@theSuess theSuess force-pushed the fix/extends-relative-paths branch from c096bc2 to 86530df Compare August 25, 2025 10:49
All code paths up to here already join the context path and with the check above
we're sure the file exists so joining again leads to paths that don't exist

Signed-off-by: Dominik Süß <[email protected]>
This fixes relative paths when using `extends` to include another service from a
different directory

Signed-off-by: Dominik Süß <[email protected]>
@theSuess theSuess force-pushed the fix/extends-relative-paths branch from 86530df to 72d4554 Compare August 25, 2025 11:11
@theSuess theSuess marked this pull request as ready for review August 25, 2025 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant