Skip to content

Conversation

@keivenchang
Copy link
Contributor

Overview:

Adds group-writable permissions to Dockerfiles using umask 002 wrapper and COPY --chmod=775 patterns. Enables Dev Container users (UID != 1000) to work without slow chown -R operations, saving 2-10 minutes per build.

Details:

  • Implement umask 002 wrapper for group-writable files (775/664) in RUN commands
  • Use COPY --chmod=775 + chmod g+w pattern for workspace, home, venv, cargo/rustup directories
  • Add --runtime-image and --no-latest flags to build.sh
  • Use framework-specific base image tags to prevent parallel build conflicts

Where should the reviewer start?

Header comments in container/Dockerfile.vllm (lines 4-22) explain the permissions strategy and COPY --chmod pattern.

Related Issues:

Relates to OPS-2193

/coderabbit profile chill

@keivenchang keivenchang self-assigned this Nov 25, 2025
@github-actions github-actions bot added the feat label Nov 25, 2025
Implement umask 002 wrapper and COPY --chmod=775 patterns across all Dockerfiles
(vllm, sglang, trtllm) to ensure group-writable permissions. This allows both
dynamo user (UID 1000) and Dev Container users (UID != 1000) to work without
slow chown -R operations, saving 2-10 minutes per framework!

Key changes:
- Add umask wrapper script to create group-writable files by default
- Use COPY --chmod=775 + chmod g+w pattern for directories
- Apply to workspace, home, venv, and cargo/rustup directories
- Update build.sh to support --runtime-image and --no-latest flags
- Add framework-specific base image tags to prevent parallel build conflicts

Resolves issues where non-dynamo users couldn't write to workspace/venv.

Signed-off-by: Keiven Chang <keivenchang@users.noreply.github.com>

Rename --no-latest flag to --no-tag-latest in build.sh

Signed-off-by: Keiven Chang <keivenchang@users.noreply.github.com>
@keivenchang keivenchang force-pushed the keivenchang/ops-2193__update-dockerfile-group-permissions-for-development branch from 02fb0c7 to 3df4abb Compare November 25, 2025 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants