diff --git a/codex-cli/Dockerfile b/codex-cli/Dockerfile index 5f89420372..97ccfdbabd 100644 --- a/codex-cli/Dockerfile +++ b/codex-cli/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-slim +FROM node:22-slim ARG TZ ENV TZ="$TZ" diff --git a/codex-cli/package-lock.json b/codex-cli/package-lock.json index c5bb3defc6..b8400484ef 100644 --- a/codex-cli/package-lock.json +++ b/codex-cli/package-lock.json @@ -1,12 +1,12 @@ { "name": "open-codex", - "version": "0.1.30", + "version": "0.1.31", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "open-codex", - "version": "0.1.30", + "version": "0.1.31", "license": "Apache-2.0", "dependencies": { "@inkjs/ui": "^2.0.0", diff --git a/codex-cli/scripts/run_in_container.sh b/codex-cli/scripts/run_in_container.sh index c95c57aead..c20e4329e2 100755 --- a/codex-cli/scripts/run_in_container.sh +++ b/codex-cli/scripts/run_in_container.sh @@ -57,8 +57,8 @@ docker run --name "$CONTAINER_NAME" -d \ codex \ sleep infinity -# Initialize the firewall inside the container. -docker exec "$CONTAINER_NAME" bash -c "sudo /usr/local/bin/init_firewall.sh" +# Initialize the firewall inside the container as root. +docker exec --user root "$CONTAINER_NAME" bash -c "/usr/local/bin/init_firewall.sh" # Execute the provided command in the container, ensuring it runs in the work directory. # We use a parameterized bash command to safely handle the command and directory. @@ -67,4 +67,4 @@ quoted_args="" for arg in "$@"; do quoted_args+=" $(printf '%q' "$arg")" done -docker exec -it "$CONTAINER_NAME" bash -c "cd \"/app$WORK_DIR\" && codex --full-auto ${quoted_args}" +docker exec -it "$CONTAINER_NAME" bash -c "cd \"/app$WORK_DIR\" && open-codex --full-auto ${quoted_args}" diff --git a/package-lock.json b/package-lock.json index 0de1f9cf23..974644aa53 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "codex", + "name": "open-codex", "lockfileVersion": 3, "requires": true, "packages": {