gitlab-agent-operator/agent (5fbb66a8)

Published 2026-07-22 00:22:21 +02:00 by daniel

Installation

docker pull forge.n0de.biz/daniel/gitlab-agent-operator/agent:5fbb66a8
sha256:9d4092e09415a9e4f0a57fea8d62b9e77b68e2ccc7b53ce678f68c11b66b041c

Image layers

ADD alpine-minirootfs-3.24.1-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ENV NODE_VERSION=24.18.0
RUN /bin/sh -c addgroup -g 1000 node && adduser -u 1000 -G node -s /bin/sh -D node && apk add --no-cache libstdc++ && apk add --no-cache --virtual .build-deps curl && ARCH= OPENSSL_ARCH='linux*' && alpineArch="$(apk --print-arch)" && case "${alpineArch##*-}" in x86_64) ARCH='x64' CHECKSUM="b818a0c3857272329cad4d575abf49e5060215858c9c3015437366f8adc7b85d" OPENSSL_ARCH=linux-x86_64;; x86) OPENSSL_ARCH=linux-elf;; aarch64) OPENSSL_ARCH=linux-aarch64;; arm*) OPENSSL_ARCH=linux-armv4;; ppc64le) OPENSSL_ARCH=linux-ppc64le;; s390x) OPENSSL_ARCH=linux-s390x;; *) ;; esac && if [ -n "${CHECKSUM}" ]; then set -eu; curl -fsSLO --compressed "https://unofficial-builds.nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz"; echo "$CHECKSUM node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && ln -s /usr/local/bin/node /usr/local/bin/nodejs; else echo "Building from source" && apk add --no-cache --virtual .build-deps-full binutils-gold g++ gcc gnupg libgcc linux-headers make python3 py-setuptools && export GNUPGHOME="$(mktemp -d)" && for key in 5BE8A3F6C8A5C01D106C0AD820B1A390B168D356 DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 CC68F5A3106FF448322E48ED27F5E38D5B0A215F 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C 108F52B48DB57BB0CC439B2997B01419BD92F80A A363A499291CBBC940DD62E41F10027AF002F8B0 ; do { gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" && gpg --batch --fingerprint "$key"; } || { gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" && gpg --batch --fingerprint "$key"; } ; done && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && gpgconf --kill all && rm -rf "$GNUPGHOME" && grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xf "node-v$NODE_VERSION.tar.xz" && cd "node-v$NODE_VERSION" && ./configure && make -j$(getconf _NPROCESSORS_ONLN) V= && make install && apk del .build-deps-full && cd .. && rm -Rf "node-v$NODE_VERSION" && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt; fi && rm -f "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" && find /usr/local/include/node/openssl/archs -mindepth 1 -maxdepth 1 ! -name "$OPENSSL_ARCH" -exec rm -rf {} \; && apk del .build-deps && node --version && npm --version && rm -rf /tmp/* # buildkit
ENV YARN_VERSION=1.22.22
RUN /bin/sh -c apk add --no-cache --virtual .build-deps-yarn curl gnupg tar && export GNUPGHOME="$(mktemp -d)" && for key in 6A010C5166006599AA17F08146C2130DFD2497F5 ; do { gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" && gpg --batch --fingerprint "$key"; } || { gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" && gpg --batch --fingerprint "$key"; } ; done && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && gpgconf --kill all && rm -rf "$GNUPGHOME" && mkdir -p /opt && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && apk del .build-deps-yarn && yarn --version && rm -rf /tmp/* # buildkit
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["node"]
RUN /bin/sh -c apk add --no-cache git curl bash jq coreutils shadow sudo xz grep python3 libgcc libstdc++ # buildkit
ENV npm_config_libc=musl
ARG CLAUDE_CODE_VERSION=2.1.214
RUN |1 CLAUDE_CODE_VERSION=2.1.214 /bin/sh -c npm install -g "@anthropic-ai/claude-code@${CLAUDE_CODE_VERSION}" # buildkit
RUN |1 CLAUDE_CODE_VERSION=2.1.214 /bin/sh -c npm install -g @anthropic-ai/[email protected] # buildkit
ARG RTK_VERSION=0.43.0
RUN |2 CLAUDE_CODE_VERSION=2.1.214 RTK_VERSION=0.43.0 /bin/sh -c curl -fsSL "https://github.com/rtk-ai/rtk/releases/download/v${RTK_VERSION}/rtk-$(uname -m)-unknown-linux-musl.tar.gz" | tar -xz -C /usr/local/bin rtk && chmod 555 /usr/local/bin/rtk # buildkit
COPY agent.sh /agent.sh # buildkit
RUN |2 CLAUDE_CODE_VERSION=2.1.214 RTK_VERSION=0.43.0 /bin/sh -c chmod +x /agent.sh # buildkit
COPY runner.mjs /runner.mjs # buildkit
COPY push-policy.mjs /push-policy.mjs # buildkit
RUN |2 CLAUDE_CODE_VERSION=2.1.214 RTK_VERSION=0.43.0 /bin/sh -c chmod 555 /runner.mjs /push-policy.mjs # buildkit
COPY git-push-guard /usr/local/bin/git # buildkit
RUN |2 CLAUDE_CODE_VERSION=2.1.214 RTK_VERSION=0.43.0 /bin/sh -c chmod 555 /usr/local/bin/git # buildkit
RUN |2 CLAUDE_CODE_VERSION=2.1.214 RTK_VERSION=0.43.0 /bin/sh -c mkdir -p /etc/git-hooks # buildkit
COPY git-hooks/pre-push /etc/git-hooks/pre-push # buildkit
RUN |2 CLAUDE_CODE_VERSION=2.1.214 RTK_VERSION=0.43.0 /bin/sh -c chmod 555 /etc/git-hooks/pre-push && chmod 555 /etc/git-hooks # buildkit
RUN |2 CLAUDE_CODE_VERSION=2.1.214 RTK_VERSION=0.43.0 /bin/sh -c git config --system core.hooksPath /etc/git-hooks # buildkit
RUN |2 CLAUDE_CODE_VERSION=2.1.214 RTK_VERSION=0.43.0 /bin/sh -c adduser -D -u 65532 agent # buildkit
ARG NIX_STATIC_URL=https://hydra.nixos.org/build/337988365/download-by-type/file/binary-dist
RUN |3 CLAUDE_CODE_VERSION=2.1.214 RTK_VERSION=0.43.0 NIX_STATIC_URL=https://hydra.nixos.org/build/337988365/download-by-type/file/binary-dist /bin/sh -c groupadd nixbld -U agent && curl -fL "$NIX_STATIC_URL" > /bin/nix && chmod +x /bin/nix # buildkit
RUN |3 CLAUDE_CODE_VERSION=2.1.214 RTK_VERSION=0.43.0 NIX_STATIC_URL=https://hydra.nixos.org/build/337988365/download-by-type/file/binary-dist /bin/sh -c mkdir -p /etc/nix && printf 'experimental-features = nix-command flakes\nsandbox = false\n' > /etc/nix/nix.conf # buildkit
ENV HOME=/home/agent
USER agent
ENV CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
RUN |3 CLAUDE_CODE_VERSION=2.1.214 RTK_VERSION=0.43.0 NIX_STATIC_URL=https://hydra.nixos.org/build/337988365/download-by-type/file/binary-dist /bin/sh -c for p in superpowers feature-dev code-review commit-commands code-simplifier security-guidance ; do claude plugin install "${p}@claude-plugins-official" || true; done # buildkit
RUN |3 CLAUDE_CODE_VERSION=2.1.214 RTK_VERSION=0.43.0 NIX_STATIC_URL=https://hydra.nixos.org/build/337988365/download-by-type/file/binary-dist /bin/sh -c mkdir -p /home/agent/.claude && rtk init -g # buildkit
COPY --chown=agent:agent rtk-hook.sh /usr/local/bin/rtk-hook # buildkit
COPY --chown=agent:agent deny-policy.mjs /deny-policy.mjs # buildkit
RUN |3 CLAUDE_CODE_VERSION=2.1.214 RTK_VERSION=0.43.0 NIX_STATIC_URL=https://hydra.nixos.org/build/337988365/download-by-type/file/binary-dist /bin/sh -c chmod 555 /usr/local/bin/rtk-hook # buildkit
COPY --chown=agent:agent claude-settings.json /home/agent/.claude/settings.json # buildkit
RUN |3 CLAUDE_CODE_VERSION=2.1.214 RTK_VERSION=0.43.0 NIX_STATIC_URL=https://hydra.nixos.org/build/337988365/download-by-type/file/binary-dist /bin/sh -c mkdir -p /home/agent/.claude/instructions # buildkit
COPY --chown=agent:agent instructions/mr-agent.md /home/agent/.claude/instructions/mr-agent.md # buildkit
COPY --chown=agent:agent instructions/issue-agent.md /home/agent/.claude/instructions/issue-agent.md # buildkit
COPY --chown=agent:agent instructions/review-agent.md /home/agent/.claude/instructions/review-agent.md # buildkit
ENTRYPOINT ["/bin/bash" "/agent.sh"]
Details
Container
2026-07-22 00:22:21 +02:00
1
OCI / Docker
linux/amd64
418 MiB
Versions (77) View all
main 2026-07-25
latest 2026-07-25
848ed92c 2026-07-25
731ecdc0 2026-07-24
dde30247 2026-07-24