mirror of
https://github.com/peterbourgon/runsvinit.git
synced 2025-01-20 15:47:04 +00:00
Break out example and rename
This commit is contained in:
parent
4e6968fe8f
commit
18a82bd528
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
reap
|
runsvinit
|
||||||
|
|
||||||
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
||||||
*.o
|
*.o
|
||||||
|
19
README.md
19
README.md
@ -1,23 +1,8 @@
|
|||||||
# reap
|
# runsvinit
|
||||||
|
|
||||||
If you have a Docker container that's a collection of runit-supervised daemons,
|
If you have a Docker container that's a collection of runit-supervised daemons,
|
||||||
this process is suitable for use as the ENTRYPOINT.
|
this process is suitable for use as the ENTRYPOINT.
|
||||||
|
See [the example](https://github.com/peterbourgon/runsvinit/tree/master/example).
|
||||||
```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"]
|
|
||||||
```
|
|
||||||
|
|
||||||
**Why not just exec runsvdir?**
|
**Why not just exec runsvdir?**
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
FROM alpine:latest
|
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/*
|
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 /
|
ADD foo /
|
||||||
RUN mkdir -p /etc/service/foo
|
RUN mkdir -p /etc/service/foo
|
||||||
@ -11,4 +11,4 @@ ADD bar /
|
|||||||
RUN mkdir -p /etc/service/bar
|
RUN mkdir -p /etc/service/bar
|
||||||
ADD run-bar /etc/service/bar/run
|
ADD run-bar /etc/service/bar/run
|
||||||
|
|
||||||
ENTRYPOINT ["/reap"]
|
ENTRYPOINT ["/runsvinit"]
|
Loading…
Reference in New Issue
Block a user