Break out example and rename

This commit is contained in:
Peter Bourgon 2015-09-25 14:40:31 +02:00
parent 4e6968fe8f
commit 18a82bd528
7 changed files with 5 additions and 20 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
reap
runsvinit
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o

View File

@ -1,23 +1,8 @@
# reap
# runsvinit
If you have a Docker container that's a collection of runit-supervised daemons,
this process is suitable for use as the ENTRYPOINT.
```Docker
FROM alpine:latest
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/testing" >>/etc/apk/repositories && apk add --update runit && rm -rf /var/cache/apk/*
ADD foo /
RUN mkdir -p /etc/service/foo
ADD run-foo /etc/service/foo/run
ADD bar /
RUN mkdir -p /etc/service/bar
ADD run-bar /etc/service/bar/run
ADD reap /
ENTRYPOINT ["/reap"]
```
See [the example](https://github.com/peterbourgon/runsvinit/tree/master/example).
**Why not just exec runsvdir?**

View File

@ -1,7 +1,7 @@
FROM alpine:latest
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/testing" >>/etc/apk/repositories && apk add --update runit && rm -rf /var/cache/apk/*
ADD reap /
ADD runsvinit /
ADD foo /
RUN mkdir -p /etc/service/foo
@ -11,4 +11,4 @@ ADD bar /
RUN mkdir -p /etc/service/bar
ADD run-bar /etc/service/bar/run
ENTRYPOINT ["/reap"]
ENTRYPOINT ["/runsvinit"]

View File

View File