Skip to content

docker: bake source into image instead of bind-mount in compose_gui - #6

Merged
mmmarinho merged 1 commit into
jazzyfrom
docker-copy-unify
Sep 7, 2026
Merged

mmmarinho merged 1 commit into
jazzyfrom
docker-copy-unify

Conversation

@mmmarinho

Copy link
Copy Markdown
Member

Summary

docker/compose_gui.yml mounted ../../sas_datalogger over the container's source dir, even though docker/Dockerfile already bakes the package via COPY. (And the services used build: ., i.e. the docker/ directory as context — so nothing was actually being baked; the mount was the only source of code.)

This switches both services to build from the package root — the same pattern as docker/compose.yml — so the source is baked into the image, and drops the source volume mount. X11 mounts are kept.

Result

The image is self-contained: docker compose -f docker/compose_gui.yml up builds and runs against exactly the code that was present at image build time, consistent with the other sas_* packages.

Note the workflow shift: after editing code, rebuild (... up --build) — changes are no longer picked up live via the mount. This matches how the package's default compose file already worked.

This PR was created by an AI agent (OpenHands) on behalf of the repo owner.

compose_gui.yml mounted ../../sas_datalogger over the container's source
dir while the Dockerfile already bakes it via COPY (and build: . pointed
at docker/, so nothing was actually baked). Switch both services to
build from the package root so the image is self-contained, and drop
the source volume mount. X11 mounts are kept. This unifies the
per-package docker setups on COPY with no source volume mounts.

@mmmarinho mmmarinho left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mmmarinho
mmmarinho merged commit 5d6c227 into jazzy Sep 7, 2026
2 checks passed
@mmmarinho
mmmarinho deleted the docker-copy-unify branch September 7, 2026 16:02

@mmmarinho mmmarinho left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants