Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions agentkit/toolkit/executors/init_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,20 @@
# Container image for the harness server. The base image's apt mirror is an
# unreachable internal host, so apt is repointed at aliyun; the source branch is
# cloned via the ghfast proxy with a github fallback; uv installs from aliyun.
# `openai-codex` is installed alongside veadk so the `codex` runtime works
# (it bundles the Codex CLI binary); without it `--runtime codex` fails.
#
# Codex runtime: veadk's `--runtime codex` does `import openai_codex`, which pins
# the Codex engine binary `openai-codex-cli-bin`. Both are prereleases, so they are
# pinned to exact versions — an exact `==` pin auto-enables that prerelease in uv,
# so no global `--prerelease=allow` is needed. aliyun mirrors both (including the
# `openai-codex-cli-bin==0.137.0a4` manylinux x86_64/aarch64 wheel that matches this
# glibc image), so everything installs from the fast domestic mirror in one step.
# `openai-codex`'s only other runtime dep, `pydantic>=2.12`, is satisfied by veadk.
_HARNESS_DOCKERFILE = """\
FROM agentkit-cn-beijing.cr.volces.com/base/py-simple:python3.12-bookworm-slim-latest
ENV PYTHONUNBUFFERED=1
# Large wheels (google-adk, the 86MB Codex engine binary) can exceed uv's 30s
# default HTTP timeout on a slow build network; give them more headroom.
ENV UV_HTTP_TIMEOUT=300
RUN set -eux; \\
rm -f /etc/apt/sources.list.d/*; \\
printf 'deb http://mirrors.aliyun.com/debian bookworm main contrib non-free non-free-firmware\\n\\
Expand All @@ -168,7 +177,8 @@
done; \\
test -d src/veadk
RUN uv pip install --system --index-url https://mirrors.aliyun.com/pypi/simple/ \\
./src fastapi "uvicorn[standard]" openai-codex
./src fastapi "uvicorn[standard]" \\
openai-codex==0.1.0b3 openai-codex-cli-bin==0.137.0a4
EXPOSE 8000
CMD ["python", "-m", "uvicorn", "veadk.cloud.harness_app.app:app", "--host", "0.0.0.0", "--port", "8000"]
"""
Expand Down