From 18a82bd528e97df162772c4c11cd3ca0d27d60a3 Mon Sep 17 00:00:00 2001 From: Peter Bourgon Date: Fri, 25 Sep 2015 14:40:31 +0200 Subject: [PATCH] Break out example and rename --- .gitignore | 2 +- README.md | 19 ++----------------- Dockerfile => example/Dockerfile | 4 ++-- bar => example/bar | 0 foo => example/foo | 0 run-bar => example/run-bar | 0 run-foo => example/run-foo | 0 7 files changed, 5 insertions(+), 20 deletions(-) rename Dockerfile => example/Dockerfile (87%) rename bar => example/bar (100%) rename foo => example/foo (100%) rename run-bar => example/run-bar (100%) rename run-foo => example/run-foo (100%) diff --git a/.gitignore b/.gitignore index 33835c7..5a58d1c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -reap +runsvinit # Compiled Object files, Static and Dynamic libs (Shared Objects) *.o diff --git a/README.md b/README.md index 266f03c..9d0d454 100644 --- a/README.md +++ b/README.md @@ -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?** diff --git a/Dockerfile b/example/Dockerfile similarity index 87% rename from Dockerfile rename to example/Dockerfile index 0e5a077..5cc3376 100644 --- a/Dockerfile +++ b/example/Dockerfile @@ -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"] diff --git a/bar b/example/bar similarity index 100% rename from bar rename to example/bar diff --git a/foo b/example/foo similarity index 100% rename from foo rename to example/foo diff --git a/run-bar b/example/run-bar similarity index 100% rename from run-bar rename to example/run-bar diff --git a/run-foo b/example/run-foo similarity index 100% rename from run-foo rename to example/run-foo