brain-builder (12cca591c61edb7f59e07924f77518802264d372)

Published 2026-04-16 13:07:36 +08:00 by Trevor

Installation

docker pull git.smaust.work/trevor/brain-builder:12cca591c61edb7f59e07924f77518802264d372
sha256:869f6704e6d526ad7d50aa2727a2dea62f4c925d14dfc0371ac83400b53be316

Image layers

# debian.sh --arch 'amd64' out/ 'bookworm' '@1775433600'
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends g++ gcc libc6-dev make pkg-config ; dpkgArch="$(dpkg --print-architecture)"; if [ "$dpkgArch" = 'arm64' ]; then apt-get install -y --no-install-recommends binutils-gold; fi; rm -rf /var/lib/apt/lists/* # buildkit
ENV GOLANG_VERSION=1.25.9
ENV GOTOOLCHAIN=local
ENV GOPATH=/go
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
COPY /target/ / # buildkit
RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit
WORKDIR /go
/bin/sh -c apt-get update && apt-get install -y --no-install-recommends git bash curl ca-certificates podman fuse-overlayfs uidmap ripgrep jq vim nano openssh-client less procps python3 python3-pip && rm -rf /var/lib/apt/lists/*
/bin/sh -c mkdir -p /etc/containers && printf 'unqualified-search-registries = ["docker.io"]\n\n[[registry]]\nlocation = "git.smaust.work"\ninsecure = false\n' > /etc/containers/registries.conf
/bin/sh -c curl -fsSL https://claude.ai/install.sh | bash && ln -sf /root/.local/bin/claude /usr/local/bin/claude
ENV PATH="/root/.local/bin:${PATH}"
COPY file:5af2d3fb14e24e991c8e3bd02c04a8e7e7e421eb416397b0398dd435c2b56d1e in /usr/local/bin/build.sh
/bin/sh -c chmod +x /usr/local/bin/build.sh
/bin/sh -c rm -rf /root/.ssh && ln -s /home/services/.ssh /root/.ssh && ln -s /home/services/.gitconfig /root/.gitconfig
WORKDIR /workspace
/bin/sh -c printf '%s\n' 'export PATH="/root/.local/bin:/go/bin:/usr/local/go/bin:$PATH"' 'export PS1="\\[\\e[1;36m\\]brain-builder\\[\\e[0m\\]:\\w\\$ "' 'echo "brain-builder container ready. Commands:"' 'echo " build.sh test nexus-core # build and push nexus-core:test"' 'echo " build.sh prod dashboard # build and push dashboard:latest"' 'echo " claude # start Claude Code"' 'echo " podman pull ... # pull images"' 'if [ -n "$FORGEJO_TOKEN" ]; then' ' echo "$FORGEJO_TOKEN" | podman login git.smaust.work -u Trevor --password-stdin 2>/dev/null && echo "(logged into git.smaust.work registry)"' 'fi' > /etc/profile.d/brain-builder.sh
CMD ["/bin/bash", "-l"]

Labels

Key Value
io.buildah.version 1.42.0
Details
Container
2026-04-16 13:07:36 +08:00
0
OCI / Docker
linux/amd64
430 MiB
Versions (7) View all