Datasets:
Download source/src/simready/generation/runtime/install_codex.sh from AndyZ2001/mingru-mojoco-runs: direct link, hf CLI and curl.
- Browser
- Download file 940 Bytes
-
https://huggingface.co/datasets/AndyZ2001/mingru-mojoco-runs/resolve/main/source/src/simready/generation/runtime/install_codex.sh
- Command line
-
hf download hf://datasets/AndyZ2001/mingru-mojoco-runs/source/src/simready/generation/runtime/install_codex.sh
-
curl -L -o install_codex.sh https://huggingface.co/datasets/AndyZ2001/mingru-mojoco-runs/resolve/main/source/src/simready/generation/runtime/install_codex.sh
940 Bytes
| # Official Linux x64 Codex package, including tool hosts, shared by both generation images. | |
| set -euo pipefail | |
| VERSION=0.167.0 | |
| ARCHIVE_SHA256=3bbf75e83de6b58aed28f2cf6e33ad423ec31fd4700a1457b94be557ea5a7c6e | |
| BINARY_SHA256=cdcb45aaa01d0f14e298985e09465aebccd47f64ecd298aea44814af7b62bbda | |
| NAME=codex-package-x86_64-unknown-linux-musl | |
| curl -fsSL --retry 5 --retry-all-errors --retry-delay 5 -o /tmp/codex.tar.gz "https://github.com/openai/codex/releases/download/rust-v${VERSION}/${NAME}.tar.gz" | |
| echo "${ARCHIVE_SHA256} /tmp/codex.tar.gz" | sha256sum -c - | |
| mkdir -p /opt/codex | |
| tar -xzf /tmp/codex.tar.gz -C /opt/codex | |
| rm /tmp/codex.tar.gz | |
| echo "${BINARY_SHA256} /opt/codex/bin/codex" | sha256sum -c - | |
| chmod 755 /opt/codex/bin/codex | |
| ln -sf /opt/codex/bin/codex /usr/local/bin/codex | |
| test -x /opt/codex/bin/codex-code-mode-host | |
| test -x /opt/codex/bin/codex-exec-server | |
| test "$(/opt/codex/bin/codex --version)" = "codex-cli ${VERSION}" | |