-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
24 lines (20 loc) · 860 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
# Run a salt-ssh in a container.
#
# docker run --rm -it -v $(pwd)/roster:/etc/salt/roster jweinstock/salt-ssh
#
# Run salt-ssh commands:
# salt-ssh -i 'entry_in_roster' state.apply docker.host
# salt-ssh -i 'entry_in_roster' state.apply docker.client.container
FROM alpine:3.6
LABEL maintainer "Jacob Weinstock <jakobweinstock@gmail.com>"
ENV DEPS salt-ssh==2019.2.0 pyopenssl==18.0.0
# install musl-dev gcc as dependencies for installing gevent
RUN apk --no-cache --update add python2=2.7.15-r0 openssl openssh py2-pip \
&& apk add --virtual build-dependencies python2-dev=2.7.15-r0 musl-dev gcc libffi-dev openssl-dev \
&& pip install --no-cache-dir ${DEPS} \
&& apk --purge del build-dependencies \
&& rm -rf /var/cache/apk/* /root/.cache \
&& mkdir -p /srv/salt
ADD ./Saltfile ./entrypoint.sh /
ADD ./srv/ /srv/
CMD ["/bin/sh", "/entrypoint.sh"]