Polish README

Signed-off-by: kfei <kfei@kfei.net>
This commit is contained in:
kfei
2014-12-05 04:39:53 -08:00
parent 02c507c741
commit 2182b5f67a
2 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ RUN pacman -Syy && \
pacman -S --noconfirm --quiet --needed base-devel curl libunistring && \
pacman -S --noconfirm --quiet --needed --asdeps git jshon expac
ADD build.sh /build.sh
ADD build.sh /
ENTRYPOINT ["/build.sh"]
+9 -7
View File
@@ -15,21 +15,23 @@ docker build -t s6-builder .
Use that image to build s6 and its dependencies:
```bash
mkdir dist
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
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.,
Use `ADD` instruction in Dockerfile to layer s6 binaries onto it, e.g.,
```bash
ADD s6-1.1.3.2-musl-static.tar /
```
Then you can set you image's entrypoint to s6:
Then you can set your image's entrypoint to s6:
```bash
ENTRYPOINT ["/usr/bin/s6-svscan","/service"]
ENTRYPOINT ["/usr/bin/s6-svscan", "/service"]
```
Where the `/service` is the *service directory* for s6.
Where `/service` is the *service directory* for s6.
For more examples, have a look at my
[docktorrent](https://github.com/kfei/docktorrent) repository.