2014-12-07 00:33:52 -08:00
2014-12-05 04:39:53 -08:00

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.

S
Description
No description provided
Readme
134 KiB
Languages
Shell 93.1%
Dockerfile 6.9%