Skip to content

Commit f3b4d7d

Browse files
fix verify script
1 parent 5806b49 commit f3b4d7d

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ RUN apt-get update \
5757
openssh-client=1:9.6p1-* \
5858
pkg-config=1.8.* \
5959
protobuf-compiler=3.21.* \
60-
python3=3.12.* \
61-
python3-pip=24.* \
6260
ripgrep=14.1.* \
6361
rsync=3.2.* \
6462
software-properties-common=0.99.* \
@@ -79,11 +77,9 @@ RUN apt-get update \
7977
### MISE ###
8078

8179
RUN install -dm 0755 /etc/apt/keyrings \
82-
&& curl -fsSL https://mise.jdx.dev/gpg-key.pub \
83-
| gpg --batch --yes --dearmor -o /etc/apt/keyrings/mise-archive-keyring.gpg \
80+
&& curl -fsSL https://mise.jdx.dev/gpg-key.pub | gpg --batch --yes --dearmor -o /etc/apt/keyrings/mise-archive-keyring.gpg \
8481
&& chmod 0644 /etc/apt/keyrings/mise-archive-keyring.gpg \
85-
&& echo "deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg] https://mise.jdx.dev/deb stable main" \
86-
> /etc/apt/sources.list.d/mise.list \
82+
&& echo "deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg] https://mise.jdx.dev/deb stable main" > /etc/apt/sources.list.d/mise.list \
8783
&& apt-get update \
8884
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends mise/stable \
8985
&& rm -rf /var/lib/apt/lists/* \
@@ -273,7 +269,7 @@ RUN chmod +x /opt/codex/setup_universal.sh
273269
### VERIFICATION SCRIPT ###
274270

275271
COPY verify.sh /opt/verify.sh
276-
RUN chmod +x /opt/verify.sh && bash -lc /opt/verify.sh
272+
RUN chmod +x /opt/verify.sh && bash -lc "TARGETARCH=$TARGETARCH /opt/verify.sh"
277273

278274
### ENTRYPOINT ###
279275

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ docker pull ghcr.io/openai/codex-universal:latest
1515
```
1616

1717
This repository builds the image for both linux/amd64 and linux/arm64. However we only run the linux/amd64 version.
18-
Your installed Docker may support linux/amd64 emulation by passing the `--platform linux/amd64` flag.
18+
Your installed Docker may support linux/amd64 emulation by passing the `--platform linux/amd64` flag.
1919

20-
The arm64 differs from the amd64 image in 2 ways:
20+
The arm64 image differs from the amd64 image in 2 ways:
2121
- OpenJDK 10 is not available on amd64
22-
- The arm64 image skips install swift because of a current bug with mise
22+
- The arm64 image skips installing swift because of a current bug with mise
2323

2424
The below script shows how can you approximate the `setup` environment in Codex:
2525

verify.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ javac -version
2727
gradle --version | head -n 3
2828
mvn --version | head -n 1
2929

30-
echo "- Swift:"
31-
swift --version
30+
if [ "$TARGETARCH" = "amd64" ]; then \
31+
echo "- Swift:"
32+
swift --version
33+
fi
3234

3335
echo "- Ruby:"
3436
ruby --version

0 commit comments

Comments
 (0)