You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Uncomment this if you have configuration files in trc.d/
60
+
#COPY trc.d/ /etc/trc.d/
59
61
60
62
ENTRYPOINT ["/etc/trc"]
61
63
```
62
64
63
65
### The installation on top of Alpine Linux base image
64
66
65
67
**Attention**! The Alpine Linux comes with Busybox but its functionality as a shell and as a few emulated tools *is not enough* for TrivialRC. To work in this distribution it requires two extra packages: `bash` and `procps`.
66
-
As a result, Dockerfile for the [alpine:edge](https://hub.docker.com/_/alpine/) base image will look like:
68
+
As a result, Dockerfile for the [alpine:edge](https://hub.docker.com/_/alpine/) base image would look like:
67
69
68
70
```bash
69
-
FROM alpine:edge
71
+
FROM alpine:latest
70
72
71
73
RUN apk add --no-cache bash procps
72
74
73
75
RUN wget -qP /etc/ http://vorakl.github.io/TrivialRC/trc && \
# Uncomment this if you have configuration files in trc.d/
81
+
#COPY trc.d/ /etc/trc.d/
78
82
79
83
ENTRYPOINT ["/etc/trc"]
80
84
```
@@ -87,6 +91,8 @@ To get started there are provided a few examples:
87
91
* The example of using [configuration files](https://github.com/vorakl/TrivialRC/tree/master/examples/config-files) instead of command line parameters
88
92
* A docker container that registers itself in a [Service Discovery](https://github.com/vorakl/TrivialRC/tree/master/examples/docker-service-discovery) in the beginning, then starts some application and automatically removes the registration on exit
89
93
* This example launches [two different applications](https://github.com/vorakl/TrivialRC/tree/master/examples/docker-two-apps) inside one docker container and controls the availability both of them. If any of applications has stopped working by some reasons, the whole container will be stopped automatically with the appropriate exit status
94
+
* The example of building [docker base images](https://github.com/vorakl/TrivialRC/tree/master/examples/docker-base-images) with TrivialRC as an ENTRYPOINT
0 commit comments