forked from thisissoon/Docker-Salt-Master
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (22 loc) · 792 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
#
# Salt Stack Salt Master Container
#
FROM ubuntu:16.04
# Update System
RUN apt-get update && apt-get upgrade -y -o DPkg::Options::=--force-confold
# Add PPA and update
RUN apt-get update && apt-get install wget -y
RUN wget -O - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub | apt-key add -
RUN echo deb http://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest xenial main > /etc/apt/sources.list.d/saltstack.list
RUN apt-get update
# Install salt-master
RUN apt-get install salt-master -y
# Volumes
VOLUME ['/etc/salt/pki', '/var/cache/salt', '/var/logs/salt', '/etc/salt/master.d', '/srv/salt']
# 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"