File tree Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Original file line number Diff line number Diff 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
8179RUN 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
275271COPY 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
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ docker pull ghcr.io/openai/codex-universal:latest
1515```
1616
1717This 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
2424The below script shows how can you approximate the ` setup ` environment in Codex:
2525
Original file line number Diff line number Diff line change @@ -27,8 +27,10 @@ javac -version
2727gradle --version | head -n 3
2828mvn --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
3335echo " - Ruby:"
3436ruby --version
You can’t perform that action at this time.
0 commit comments