Block a user
agent-platform-gateway (candidate-amd64-codex-0.145.0-gateway-build-20260727t054942z-e3bfb52f6dd8)
Published 2026-07-27 05:58:04 +00:00 by daniel
Installation
docker pull gitea.home.everyonce.com/daniel/agent-platform-gateway:candidate-amd64-codex-0.145.0-gateway-build-20260727t054942z-e3bfb52f6dd8sha256:ac9e6af0ac5e491357d0677458b5561f2bc32772709a3f1f8e8b10ef50b79482
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=e3bfb52f6dd871738b79efeab9895483a5365ff9 |
| 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=e3bfb52f6dd871738b79efeab9895483a5365ff9 CODEX_VERSION=0.145.0 python -I -B -c import hashlib,hmac,importlib,os,pathlib,re; root=pathlib.Path('/opt/agent-openai-gateway'); package=pathlib.Path('/usr/local/lib/python3.12/site-packages/gateway'); assert package.is_dir() and not package.is_symlink() and package.stat().st_uid==0 and package.stat().st_gid==0; os.chmod(package,0o555); package_identity=package.stat(); assert package_identity.st_uid==0 and package_identity.st_gid==0 and (package_identity.st_mode&0o777)==0o555; 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','')); assert importlib.import_module('gateway.__main__').__name__=='gateway.__main__' # 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=e3bfb52f6dd871738b79efeab9895483a5365ff9 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 | e3bfb52f6dd871738b79efeab9895483a5365ff9 |
| org.opencontainers.image.source | https://gitea.home.everyonce.com/daniel/agent-platform |
| org.opencontainers.image.title | Agent Platform OpenAI Gateway |
Details
Versions (28)
View all