diff options
| author | Olcan <[email protected]> | 2025-04-20 14:49:02 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-20 14:49:02 -0700 |
| commit | c80800a3ee6e61c1e0ed032d303fd756335870ff (patch) | |
| tree | a1e857366f99f0635a19f9bceb0b0d10f8a1d54d | |
| parent | 9d608135e3639ed9d5b06d6cdfe6f59d3f532565 (diff) | |
use /sandbox/<proj_name> instead of /project as workdir in container (#64)
| -rwxr-xr-x | scripts/start_container.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/start_container.sh b/scripts/start_container.sh index b6416e28..ca03203e 100755 --- a/scripts/start_container.sh +++ b/scripts/start_container.sh @@ -2,6 +2,7 @@ IMAGE=gemini-code-sandbox CLI_DIST=/usr/local/share/npm-global/lib/node_modules/\@gemini-code/cli +WORKDIR=/sandbox/$(basename "$PWD") # use docker if installed, otherwise try to use podman instead if command -v docker &> /dev/null; then @@ -13,4 +14,4 @@ else exit 1 fi -$CMD run -it --rm -v"$PWD:/project" --workdir /project "$IMAGE" node "$CLI_DIST"
\ No newline at end of file +$CMD run -it --rm -v"$PWD:$WORKDIR" --workdir "$WORKDIR" "$IMAGE" node "$CLI_DIST"
\ No newline at end of file |
