-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.master
36 lines (29 loc) · 1020 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
31
32
33
34
35
36
FROM ubuntu:14.04
MAINTAINER Jacky_Tung <jackytung8085@gmail.com>
# Update system
RUN apt-get update && \
apt-get install -y wget \
curl \
dnsutils \
python-pip \
python-dev \
python-apt \
software-properties-common \
dmidecode \
vim \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV SALT_VERSION=2017.7.2
RUN wget -O - https://repo.saltstack.com/apt/ubuntu/14.04/amd64/archive/${SALT_VERSION}/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
RUN echo "deb http://repo.saltstack.com/apt/ubuntu/14.04/amd64/archive/${SALT_VERSION} trusty main" >> /etc/apt/sources.list.d/saltstack.list
RUN apt-get update && \
apt-get install -y salt-master
# Add salt config files
ADD etc/salt/master.d/auto-accept.conf /etc/salt/master.d/auto-accept.conf
ADD etc/salt/master.d/file_root.conf /etc/salt/master.d/file_root.conf
# Exposing salt master
EXPOSE 4505 4506
# Add and start service
ADD start.sh /start.sh
CMD ["bash", "start.sh"]