summaryrefslogtreecommitdiffstats
path: root/saltstack-server/src/main/docker/Dockerfile
blob: da4e25dbe784dbfb955832f235eb86280a2d6b5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM onap/ccsdk-alpine-j11-image:${project.docker.latestfulltag.version}
LABEL maintainer="SDN-C Team (sdnc@lists.openecomp.org)"
USER root

RUN apk add git tmux vim salt-master salt-minion

#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

# Create non root user
RUN addgroup -S saltstack && adduser -S saltstack -G saltstack \
    && mkdir -p /var/run/salt /var/cache/salt \
    && chown -R saltstack:saltstack /etc/salt /var/log/salt /var/run/salt /var/cache/salt


USER saltstack
EXPOSE 4505 4506
ENTRYPOINT [ "/usr/bin/salt-master" ]