Repository navigation
Conversation
|
@gemini-code-assist /review |
There was a problem hiding this comment.
Code Review
This pull request introduces a Docker-based environment for running Claude Code, including a wrapper script, a Dockerfile, and an entrypoint script to handle UID/GID mapping. The feedback identifies critical issues regarding the VS Code CLI architecture compatibility, potential shell script failures when handling multiple users with the same UID, and a mismatch between volume mounts and home directory paths. Additionally, there is a suggestion to refactor duplicated environment sourcing logic.
There was a problem hiding this comment.
Code Review
This pull request introduces a Docker-based environment for running Claude Code within the OpenROAD flow, providing a sandboxed workspace with access to build tools like CMake and Bazel. Key components include a wrapper script for container management, a Dockerfile extending the OpenROAD dev image, and an entrypoint script for user permission mapping. Feedback focuses on fixing a Bash substitution error in the wrapper script, correcting the VS Code CLI download URL to match the Ubuntu base image, and improving debuggability by allowing errors to propagate when sourcing the environment configuration.
Provides claude.sh wrapper and Docker image that sandboxes claude --dangerously-skip-permissions inside a container with CMake, Bazel, and ORFS support. The repo is volume-mounted so edits persist on the host with correct UID/GID ownership. Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
ce30f27 to
72a579a
Compare
|
I tested this PR locally, but it failed. |
|
If I change the URL to |
|
|
||
| # --- Assemble docker run arguments --- | ||
| DOCKER_RUN_ARGS=( | ||
| --rm -it |
There was a problem hiding this comment.
Giving -it always prevents non-interactive use case (e.g., inline prompting to Claude in CI env).
This looks slightly better.
DOCKER_RUN_ARGS=(
--rm // REMOVE -it
--name "${CONTAINER_NAME}"
...
)
if [[ -t 0 && -t 1 ]]; then
DOCKER_RUN_ARGS+=(-it) // ADD -it IF TERMINAL IS PRESENT
fi
|
claude picked alpine and gemini suggested a better solution but hallucinated the endpoint. When I gave claude the gemini feedback it accepted it. I already had a cached image so I didn't notice. |
The cli-linux-x64 identifier on code.visualstudio.com/sha/download returns 404; use update.code.visualstudio.com/latest/cli-linux-x64/stable, which delivers the glibc-linked binary that matches the Ubuntu base. Also stop forcing -it unconditionally, which broke CI-style invocations with "cannot attach stdin to a TTY-enabled container". Allocate a TTY only when both stdin and stdout are terminals; otherwise pass -i so piped input still reaches the container. Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Provides claude.sh wrapper and Docker image that sandboxes claude --dangerously-skip-permissions inside a container with CMake, Bazel, and ORFS support. The repo is volume-mounted so edits persist on the host with correct UID/GID ownership.