From 353e9080388d4cb78ef740199b44af6aaf94613f Mon Sep 17 00:00:00 2001 From: Mark McFadden Date: Wed, 28 May 2025 18:03:46 -0400 Subject: [PATCH 1/3] :zap: bump version to 0.1.31 and update package name to open-codex --- codex-cli/package-lock.json | 4 ++-- package-lock.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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/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": { From fba6f66a3468c7c5d10cfb628107ee5c79d5e700 Mon Sep 17 00:00:00 2001 From: Mark McFadden Date: Wed, 28 May 2025 18:04:11 -0400 Subject: [PATCH 2/3] :pencil2: update base image to node:22-slim --- codex-cli/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 1623a2e70156f0081692d341bfa5f390b7da7a49 Mon Sep 17 00:00:00 2001 From: Mark McFadden Date: Wed, 28 May 2025 18:04:38 -0400 Subject: [PATCH 3/3] :fire: fix: run firewall initialization as root and update command to open-codex --- codex-cli/scripts/run_in_container.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}"