• Joined on 2025-12-26

agent-platform-gateway (candidate-amd64-codex-0.145.0-gateway-build-20260726t200727z-16306b05f1f0)

Published 2026-07-26 20:16:06 +00:00 by daniel

Installation

docker pull gitea.home.everyonce.com/daniel/agent-platform-gateway:candidate-amd64-codex-0.145.0-gateway-build-20260726t200727z-16306b05f1f0
sha256:90867bb8da1601aeae32b3286a7f026fd324c34f085d62e0a3430bc9d990aa2e

About this package

Immutable peer-bound stdin-only Responses gateway

Image Layers

# debian.sh --arch 'amd64' out/ 'bookworm' '@1783900800'
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LANG=C.UTF-8
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; rm -rf /var/lib/apt/lists/* # buildkit
ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
ENV PYTHON_VERSION=3.12.13
ENV PYTHON_SHA256=c08bc65a81971c1dd5783182826503369466c7e67374d1646519adf05207b684
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:-} -Wl,--strip-all"; arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; case "$arch" in amd64|arm64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; i386) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-} -Wl,-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit
RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit
CMD ["python3"]
ARG SOURCE_REVISION=16306b05f1f0848b973801fbcbc11cce0ad87267
ARG CODEX_VERSION=0.145.0
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONNOUSERSITE=1 PYTHONUNBUFFERED=1
WORKDIR /opt/agent-openai-gateway
COPY --chown=0:0 --chmod=0444 .dockerignore Dockerfile source-manifest.sha256 /opt/agent-openai-gateway/ # buildkit
COPY --chown=0:0 --chmod=0444 __init__.py __main__.py audit.py policy.py runtime.py secret.py upstream.py /usr/local/lib/python3.12/site-packages/gateway/ # buildkit
RUN |2 SOURCE_REVISION=16306b05f1f0848b973801fbcbc11cce0ad87267 CODEX_VERSION=0.145.0 python -I -B -c import hashlib,hmac,os,pathlib,re; root=pathlib.Path('/opt/agent-openai-gateway'); package=pathlib.Path('/usr/local/lib/python3.12/site-packages/gateway'); raw=(root/'source-manifest.sha256').read_bytes(); assert raw and len(raw)<=16384 and raw.endswith(b'\n') and b'\r' not in raw and b'\x00' not in raw; pattern=re.compile(rb'([0-9a-f]{64}) ([A-Za-z0-9_.-]+)'); lines=raw.splitlines(); matches=[pattern.fullmatch(line) for line in lines]; assert len(matches)==9 and all(matches); records=[(match.group(1).decode('ascii'),match.group(2).decode('ascii')) for match in matches]; expected=('.dockerignore','Dockerfile','__init__.py','__main__.py','audit.py','policy.py','runtime.py','secret.py','upstream.py'); assert tuple(name for _,name in records)==expected; sources={name:(root/name if name in ('.dockerignore','Dockerfile') else package/name) for _,name in records}; assert all(path.is_file() and not path.is_symlink() and (identity:=path.stat()).st_uid==0 and identity.st_gid==0 and (identity.st_mode&0o777)==0o444 for path in (*sources.values(),root/'source-manifest.sha256')); assert all(hmac.compare_digest(hashlib.sha256(sources[name].read_bytes()).hexdigest(),digest) for digest,name in records); assert re.fullmatch(r'[0-9a-f]{40}',os.environ.get('SOURCE_REVISION','')); assert re.fullmatch(r'[A-Za-z0-9][A-Za-z0-9.+_-]{0,127}',os.environ.get('CODEX_VERSION','')) # buildkit
LABEL org.opencontainers.image.title=Agent Platform OpenAI Gateway org.opencontainers.image.description=Immutable peer-bound stdin-only Responses gateway org.opencontainers.image.source=https://gitea.home.everyonce.com/daniel/agent-platform org.opencontainers.image.revision=16306b05f1f0848b973801fbcbc11cce0ad87267 io.everyonce.codex.version=0.145.0
USER 10002:10002
ENTRYPOINT ["python" "-I" "-B" "-m" "gateway"]

Labels

Key Value
io.everyonce.codex.version 0.145.0
org.opencontainers.image.description Immutable peer-bound stdin-only Responses gateway
org.opencontainers.image.revision 16306b05f1f0848b973801fbcbc11cce0ad87267
org.opencontainers.image.source https://gitea.home.everyonce.com/daniel/agent-platform
org.opencontainers.image.title Agent Platform OpenAI Gateway