Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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.

About

Just a utility Docker image for building s6

Resources

Releases

No releases published

Packages

No packages published

Languages