hermes-reviewer (a9ecdee1b04145e46d78d406b456a60b10497278)
Published 2026-09-06 10:01:23 +00:00 by speedi57
Installation
docker pull git.thidev.fr/thidev/hermes-reviewer:a9ecdee1b04145e46d78d406b456a60b10497278sha256:75c2b0f1db8f430555998f14010adf699c3b175146db3c731cc70e88be216340About this package
Hermes isolated read-only review backend
Image layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1787529600' |
| ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; apt-get dist-clean # buildkit |
| ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305 |
| ENV PYTHON_VERSION=3.13.15 |
| ENV PYTHON_SHA256=1e66a7945a48390ee4c2a4268a0e4185884059a13c4aab6d148aa208deea4a76 |
| 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; apt-get dist-clean; 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 DEBIAN_FRONTEND=noninteractive |
| ENV PATH=/root/.nix-profile/bin:/opt/node/bin:/opt/dotnet:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENV DOTNET_ROOT=/opt/dotnet |
| ENV NIX_PATH=nixpkgs=channel:nixos-25.11 |
| COPY /nix /nix # buildkit |
| COPY /root/.nix-profile /root/.nix-profile # buildkit |
| RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl git gawk gnupg tar gzip libicu76 libssl3t64 jq ripgrep tar xz-utils && mkdir -p /etc/apt/keyrings && curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg >/dev/null && chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" > /etc/apt/sources.list.d/github-cli.list && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_24.x nodistro main" > /etc/apt/sources.list.d/nodesource.list && apt-get update && apt-get install -y --no-install-recommends gh nodejs && npm install --global eslint@latest && python -m pip install --no-cache-dir ruff mypy && mkdir -p /opt/dotnet && curl -fsSL https://dot.net/v1/dotnet-install.sh -o /tmp/dotnet-install.sh && bash /tmp/dotnet-install.sh --version 10.0.301 --install-dir /opt/dotnet --architecture x64 --no-path && rm -f /tmp/dotnet-install.sh && apt-get clean && rm -rf /var/lib/apt/lists/* /root/.cache /root/.npm # buildkit |
| RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c curl -fsSL https://codeberg.org/forgejo-contrib/forgejo-cli/releases/download/v0.6.0/forgejo-cli-x86_64-linux.tar.gz | tar -xz -C /usr/local/bin && chmod 0755 /usr/local/bin/fj # buildkit |
| RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c python --version && node --version && dotnet --version && ruff --version && mypy --version && eslint --version && alejandra --version && nil --version && statix --version && deadnix --version && git --version && rg --version # buildkit |
| RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c for tool in alejandra nil statix deadnix; do ln -sf "$(readlink -f "/root/.nix-profile/bin/$tool")" "/usr/local/bin/$tool"; done && ln -sf /opt/dotnet/dotnet /usr/local/bin/dotnet # buildkit |
| WORKDIR /workspace |
| LABEL org.opencontainers.image.title=Hermes Reviewer lint image org.opencontainers.image.description=Read-only analysis tooling for Python, Node.js, .NET and Nix org.opencontainers.image.version=2026.08 |
| USER 1000:1000 |
| WORKDIR /workspace |
| CMD ["bash"] |
| USER root |
| WORKDIR /workspace |
| COPY --chmod=0755 scripts/smoke.sh /usr/local/bin/hermes-backend-smoke # buildkit |
| USER root |
| WORKDIR /workspace |
| COPY --chmod=0755 scripts/smoke.sh /usr/local/bin/hermes-backend-smoke # buildkit |
| LABEL org.opencontainers.image.title=Hermes Reviewer |
| LABEL org.opencontainers.image.description=Hermes isolated read-only review backend |
| LABEL org.opencontainers.image.variant=reviewer |
| ENV HERMES_BACKEND_VARIANT=reviewer |
| USER 1000:1000 |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.description | Hermes isolated read-only review backend |
| org.opencontainers.image.title | Hermes Reviewer |
| org.opencontainers.image.variant | reviewer |
| org.opencontainers.image.version | 2026.08 |
Details
2026-09-06 10:01:23 +00:00
Versions (12)
View all
Container
0
OCI / Docker
linux/amd64
746 MiB
main
2026-09-12
69e88094b7205c0cfdb12bde361187e4aaf18558
2026-09-12
e0b52807f6eeaaa99fe2951de8ef5d153805ab10
2026-09-07
f0858a72a0bf596c441ba4ea998fc78350da9a08
2026-09-07
e388f89cd534a6e7e5088ce46c375c65adcd8c95
2026-09-07