-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
31 lines (22 loc) · 909 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
ARG SALTY_PARENT_IMAGE="trevorj/boilerplate"
ARG SALTY_PARENT_TAG="latest"
FROM $SALTY_PARENT_IMAGE:$SALTY_PARENT_TAG
MAINTAINER Trevor Joynson "<[email protected]>"
# Latest
ARG SALTY_RELEASE="latest"
ARG SALTY_PACKAGES="salt-minion salt-master salt-api salt-cloud salt-ssh nacl-tools git"
## Pinned
#ARG SALTY_RELEASE="2016.3"
# Lazy automagic (eval'd later, don't judge me)
ARG SALTY_APT_RELEASE="\${DISTRIB_RELEASE}/\${DISTRIB_ARCH}/\${SALTY_RELEASE}"
# Build repo URL
ARG SALTY_APT_REPO="http://repo.saltstack.com/apt/ubuntu/\${SALTY_APT_RELEASE}"
# Install salt-minion
COPY build.d $IMAGE_ROOT/build.d
RUN build-parts "$IMAGE_ROOT/build.d"
# Add in files
ADD image $IMAGE_ROOT/
VOLUME ["/etc/salt/pki", "/srv/salt", "/srv/pillar"]
EXPOSE 4505 4506
# Fucking CI docker is from 1999.
#HEALTHCHECK --interval=5m --timeout=3s CMD-SHELL nc -z localhost 4505 && nc -z localhost 4506 || exit 1