-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
39 lines (31 loc) · 882 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM stackhub/base-runit:latest
MAINTAINER Boyd Hemphill <[email protected]>
#
# Install and configure confd
#
# This is a temporary hack until we can get our PR accepted in the `confd`
# project
ADD \
confd/confd \
/usr/bin/confd
ADD \
confd/confd.sh \
/etc/sv/confd/run
RUN \
mkdir -pv /etc/sv/confd && \
chmod +x /etc/sv/confd/run && \
mkdir -pv /etc/confd/conf.d && \
mkdir -pv /etc/confd/templates && \
ln -sv /etc/sv/confd /service
#
# Write out a config to demonstrate that it works
#
# The TOML file serves to let confd know where to find and place various
# assests (e.g. the service key, the template used to write out the final
# config file, the restart command, etc)
ADD \
hello-world/hello-world.toml.template \
/etc/confd/conf.d/
ADD \
hello-world/hello-world.conf.template_orig \
/etc/confd/templates/