feat: add entrypoint script for Docker container user remapping#34
Merged
feat: add entrypoint script for Docker container user remapping#34
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds a new entrypoint script for Docker container user remapping to improve development environment portability. The entrypoint script dynamically remaps the container user's UID/GID to match the host user's, preventing file permission issues when mounting volumes. The script is organized in the scripts/docker/ directory alongside other Docker-related utilities.
Key Changes:
- Added
scripts/docker/entrypoint.shto handle runtime UID/GID remapping for the container user - Updated Dockerfile to reference the new script path at
scripts/docker/entrypoint.sh - Added a blank line in
.devcontainer/devcontainer.jsonfor formatting
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| scripts/docker/entrypoint.sh | New entrypoint script that remaps container user UID/GID to match host user, fixes ownership of home directory and workspace |
| Dockerfile | Updated COPY command to reference the new entrypoint script location in scripts/docker/ directory |
| .devcontainer/devcontainer.json | Added trailing blank line for formatting consistency |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request makes minor improvements to the development environment setup, specifically targeting the container configuration and Dockerfile.
Dev container setup:
.devcontainer/devcontainer.json.Dockerfile update:
scripts/docker/entrypoint.shinstead ofscripts/entrypoint.shfor better organization.