forked from napalm-automation/napalm-salt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.master
30 lines (23 loc) · 882 Bytes
/
Dockerfile.master
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
FROM debian:stretch
MAINTAINER [email protected]
ARG version="2017.7.8"
## Install min deps
RUN apt-get update \
&& apt-get install -y apt-utils \
wget \
gnupg \
&& echo 'deb http://httpredir.debian.org/debian stretch-backports main' >> /etc/apt/sources.list \
&& echo 'deb http://repo.saltstack.com/apt/debian/9/amd64/2017.7 stretch main' >> /etc/apt/sources.list.d/saltstack.list \
&& wget -O - https://repo.saltstack.com/apt/debian/9/amd64/2017.7/SALTSTACK-GPG-KEY.pub | apt-key add - \
&& apt-get update \
&& apt-get install -y python-zmq \
salt-master=$version+ds-2 \
&& rm -rf /var/lib/apt/lists/*
COPY ./master /etc/salt/master
# Add Run File
ADD run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh
# Ports
EXPOSE 4505 4506
# Run Command
CMD "/usr/local/bin/run.sh"