mirror of
https://github.com/wahyd4/s6-builder.git
synced 2026-08-09 04:46:46 +10:00
a81b6f784acc89e32a86bf6c2a9bb0c53dfb23cb
s6-builder
This repository is just for building a Docker image which builds s6. Also a place to store the built binaries so that I can easily add them to other images.
Build
Build the Docker image:
git clone https://github.com/kfei/s6-builder
cd s6-builder
docker build -t s6-builder .
Use that image to build s6 and its dependencies:
docker run -it --rm -v $PWD/dist:/dist s6-builder
Once you have s6 compiled, copy that tarball
dist/s6-${s6_version}-musl-static.tar.xz to your image's repository.
Usage
Use ADD instruction in Dockerfile to layer s6 binaries onto it, e.g.,
ADD s6-1.1.3.2-musl-static.tar.xz /
Layer the s6 service directory onto it, e.g.,
COPY rootfs/service /service
Then you can set your image's entrypoint to s6:
ENTRYPOINT ["/usr/bin/s6-svscan", "/service"]
For more examples, have a look at my docktorrent repository.
Languages
Shell
93.1%
Dockerfile
6.9%