mirror of
https://github.com/wahyd4/s6-builder.git
synced 2026-08-09 04:46:46 +10:00
+1
-1
@@ -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"]
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user