The statically compiled, cross architecture, Docker based, binaries pot.
500K+
The statically compiled, cross architecture, Docker based, binaries pot.
The usage is focused to build other Docker images.
For example:
FROM alpine:3.14
COPY --from=qmcgaw/binpot:helm /bin /usr/local/bin/helm
🔍 Search for all image tags 💡
qmcgaw/binpot follow the following formatting:
:name for the latest stable version of the program name:name-v0.0.0 for the semver version of the program name/bin.500 (read and execute for the user owner)COPY command using --chown=1000 for example, without duplicating the binary in your Docker image layers.[ "/bin" ] so you can run it as wellNeed help? ▶️ Create a discussion
Thinking of copying the binary for your host?
| Program | Last version | Image tags | Architectures |
|---|---|---|---|
bit | v1.1.2 | Docker Hub | all |
buildx | v0.39.1 | Docker Hub | all |
compose | v5.8.0 | Docker Hub | all |
dlv | v1.27.2 | Docker Hub | linux/amd64 and linux/arm64 |
docker | v29.10.0 | Docker Hub | all |
gh | v2.105.0 | Docker Hub | all |
gitstatus | v1.5.5 | Docker Hub | linux/amd64, linux/386, linux/arm64, linux/arm/v7, linux/arm/v6, linux/ppc64le and linux/s390x |
gofumpt | v0.12.0 | Docker Hub | all |
golangci-lint | v2.15.0 | Docker Hub | all |
gomock | v0.6.0 | Docker Hub | all |
gomodifytags | v1.17.0 | Docker Hub | all |
go-outline | 9736a4b | Docker Hub | all |
gopkgs | v2.1.2 | Docker Hub | all |
goplay | v1.0.0 | Docker Hub | all |
gopls | v0.24.0 | Docker Hub | all |
gotests | v1.9.0 | Docker Hub | all |
helm | v4.3.2 | Docker Hub | all |
impl | v1.5.0 | Docker Hub | all |
kubectl | v1.37.2 | Docker Hub | all |
kubectx | v0.11.0 | Docker Hub | all |
kubens | v0.11.0 | Docker Hub | all |
logo-ls | v1.3.7 | Docker Hub | all |
logo-ls | v1.3.7 | Docker Hub | all |
mockery | v3.9.1 | Docker Hub | all |
mockgen | v0.6.0 | Docker Hub | all |
rumdl | v0.3.5 | Docker Hub | all |
stern | v1.35.0 | Docker Hub | all |
supervisord | v0.7.6 | Docker Hub | all |
ℹ️ all architectures means: linux/amd64, linux/386, linux/arm64, linux/arm/v7, linux/arm/v6, linux/ppc64le, linux/s390x, linux/riscv64
Want more!? ▶️ Create an issue!
helm has ./dockerfiles/helm/Dockerfiledlv, build the unavailable programA version is written in three places per program: the ARG VERSION of its Dockerfile, the version input of its workflow, and its row in the table above. The cmd/versions command checks them against the releases published upstream, and can bump them all at once.
export GH_TOKEN=... # optional, raises the Github rate limit from 60 to 5000 requests an hour
go run ./cmd/versions # check every program
go run ./cmd/versions stern helm # check two of them
go run ./cmd/versions -update -commit # bump every program out of date, one commit each
An upgrade is committed as `programname` vX.Y.Z, one commit per program, and nothing is ever pushed. The command refuses to touch a program whose three pins disagree, so a half-done upgrade is never made worse, and it skips pre-releases such as v1.2.0-rc.1. Adding a program to the repository means adding a line to the registry in internal/program/program.go.
dlv💁 Concerning dlv: all images are built for all architectures even if the program does not support all of them.
A substitute Go program printing dlv v1.7.0 is unavailable on <platform name> and exiting with exit code 1 is used for unsupported platforms.
This is like so so you can still cross build with all the architectures, especially if the program is an optional dependency.
This is often the case for VSCode development containers for instance. In this case, if you try to build for arm/v7 and need dlv as an optional dependency, your COPY --from=qmcgaw/binpot:dlv will not fail.
💁 Cross compiling Rust needs a C cross compiler as soon as the program links C code, which happens through crates such as tikv-jemalloc-sys.
The Dockerfiles use cargo-zigbuild with the zig Alpine package as C cross compiler and linker, which still gives fully static binaries (musl) on every architecture. See dockerfiles/rumdl as a reference.
⚠️ For Podman, Zig compiles musl from source for each target, which needs more than the 1024 file descriptors that podman build allocates (soft and hard limit, so it cannot be raised from the Dockerfile). Therefore build with podman build --ulimit nofile=65536:65536 dockerfiles/<program> or the link step fails with error: sub-compilation of musl libc.a failed.
🔧 On the 32 bits Arm targets (linux/arm/v6 and linux/arm/v7), the compiler flags that rustc passes to the C compiler are not understood by zig, so the C dependencies are built through zig-cc-wrapper.sh, which rewrites them for zig. It keeps the exact same architecture baseline as rustc uses (-mcpu=generic+v7a and -mcpu=generic+v6 in zig syntax).
🧭 Each Dockerfile carries its own copy of that wrapper: the build context of a program is its own directory, so a file cannot be COPYd from another program.
💾 A Rust program linked with upstream's release profile, lto = "fat" and codegen-units = 1, ends every architecture in one LLVM pass of around 4 GiB of memory. Buildx starts one build step per platform at once, and a GitHub runner has 4 CPUs and 15.6 GiB of memory: the seven real architectures of rumdl built together need around 24 GiB, the runner dies in the link and does not even upload its logs, which GitHub reports as "The hosted runner lost communication with the server". Pass [worker.oci] max-parallelism = 1 through the buildkitd_config input of the reusable workflow, as rumdl.yml does, to build one platform at a time. The build is CPU bound, so it takes the same time overall.
rumdlrumdl is the first Rust program of this repository, and links jemalloc.
Upstream only publishes amd64 and arm64 binaries, so the six other architectures are built here, and all eight tags exist:
JEMALLOC_SYS_WITH_LG_PAGE is 12 on amd64, 386, arm/v6 and arm/v7, and 16 on arm64, ppc64le and riscv64: it has to be greater than or equal to the page size of the systems running the binary, and 16 covers the 16 KiB page systems of Asahi Linux and Raspberry Pi 5 as well as the 64 KiB page kernels.linux/s390x gets the unavailable substitute program, printing rumdl vX.Y.Z is unavailable on linux/s390x and exiting with 1, because no static binary is possible there:
s390x musl Rust target, so the C standard library has to be glibc on this architecture;s390x, and a dynamically linked glibc binary cannot run on a scratch image.A real linux/s390x build would require the s390x-unknown-linux-gnu Rust target with the Debian toolchain gcc-s390x-linux-gnu (CC_s390x_unknown_linux_gnu=s390x-linux-gnu-gcc), producing a dynamically linked binary, which is out of the scope of this repository.
If you want to use the binary directly on your host, you can do it with Docker. This has the advantage that it will automatically get the right binary for your host platform.
In the following we want to install helm on our host.
For example:
export PROGRAM="helm" && \
docker pull "qmcgaw/binpot:$PROGRAM" && \
containerid="$(docker create qmcgaw/binpot:$PROGRAM)" && \
docker cp "$containerid:/bin" "/usr/local/bin/$PROGRAM" && \
docker rm "$containerid"
Test Helm works with helm
Content type
Image
Digest
sha256:c0ffc814f…
Size
8.8 MB
Last updated
3 days ago
docker pull qmcgaw/binpot:rumdl-v0.3.5