summaryrefslogtreecommitdiffstats
path: root/saltstack-server/src/main/docker/Dockerfile
blob: 3226e472f7049c03569aa312caeba2b7e6d2f442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM centos:7


RUN yum clean all && \
      yum install -y yum install epel-release && \
      yum install -y https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm && \
      yum update -y && \
      yum install -y sudo git tmux vim salt-master salt-minion && \
      yum clean all

EXPOSE 4505 4506

# Create non root user
RUN groupadd --system saltstack && useradd --system -g saltstack saltstack
RUN chown -R saltstack /etc/salt /var/cache/salt /var/log/salt
RUN mkdir /var/run/salt && chown saltstack:saltstack /var/run/salt

USER saltstack

# Run salt-master in foreground (not as a daemon)
CMD /usr/bin/salt-master