summaryrefslogtreecommitdiffstats
path: root/saltstack-server/src
diff options
context:
space:
mode:
Diffstat (limited to 'saltstack-server/src')
-rw-r--r--saltstack-server/src/main/docker/Dockerfile25
1 files changed, 15 insertions, 10 deletions
diff --git a/saltstack-server/src/main/docker/Dockerfile b/saltstack-server/src/main/docker/Dockerfile
index 3226e472..710d45d7 100644
--- a/saltstack-server/src/main/docker/Dockerfile
+++ b/saltstack-server/src/main/docker/Dockerfile
@@ -1,21 +1,26 @@
-FROM centos:7
+#FROM centos:7
+FROM onap/ccsdk-alpine-j11-image:${project.docker.latestfulltag.version}
+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
+#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 addgroup -S saltstack && adduser -S saltstack -G saltstack
+# RUN groupadd --system saltstack && useradd --system -g saltstack saltstack
+RUN chown -R saltstack /etc/salt /var/log/salt
RUN mkdir /var/run/salt && chown saltstack:saltstack /var/run/salt
+RUN mkdir /var/cache/salt && chown saltstack:saltstack /var/cache/salt
USER saltstack
# Run salt-master in foreground (not as a daemon)
-CMD /usr/bin/salt-master \ No newline at end of file
+ENTRYPOINT [ "/usr/bin/salt-master" ] \ No newline at end of file