Files
s6-builder/README.md
T
2014-12-05 02:29:15 -08:00

877 B

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:

mkdir dist
docker run -it --rm -v $PWD/dist:/dist s6-builder

Usage

Once you have the s6 compiled, copy the tar ball dist/s6-${s6_version}-musl-static.tar.xz to your image's repository. Use the ADD instruction in Dockerfile to layer s6 binaries onto it, e.g.,

ADD s6-1.1.3.2-musl-static.tar /

Then you can set you image's entrypoint to s6:

ENTRYPOINT ["/usr/bin/s6-svscan","/service"]

Where the /service is the service directory for s6.