summaryrefslogtreecommitdiffstats
path: root/ccsdk-app-os/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'ccsdk-app-os/Dockerfile')
-rw-r--r--ccsdk-app-os/Dockerfile19
1 files changed, 8 insertions, 11 deletions
diff --git a/ccsdk-app-os/Dockerfile b/ccsdk-app-os/Dockerfile
index 1e66e38..7c1769e 100644
--- a/ccsdk-app-os/Dockerfile
+++ b/ccsdk-app-os/Dockerfile
@@ -1,25 +1,21 @@
# Use an official Tomcat base image
-FROM tomcat:8.5-alpine
+FROM tomcat:8
ENV APPDIR /usr/local/tomcat
-
ENV APPUSER dash
-RUN adduser -u 1000 -D ${APPUSER}
-
-WORKDIR ${APPDIR}
-
COPY docker-dashboard-installation.sh /tmp/docker-dashboard-installation.sh
COPY create_table.sql /tmp/create_table.sql
RUN mkdir /home/deployments \
+ && mkdir -p /opt/logs/dcae/dashboard \
+ && useradd -u 1000 -M -U ${APPUSER} \
&& chown -R 1000:1000 ${APPDIR} \
&& chown -R 1000:1000 /home/deployments \
- && apk update \
- && apk add zip \
- && apk add vim \
- && apk add dos2unix \
- && apk add postgresql \
+ && chown -R 1000:1000 /opt/logs/dcae/dashboard \
+ && apt-get update \
+ && apt-get install -y sudo zip vim dos2unix postgresql \
+ && echo "dash ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/dash_update_cert_store \
&& dos2unix /tmp/create_table.sql \
&& dos2unix /tmp/docker-dashboard-installation.sh \
&& chmod +x /tmp/create_table.sql \
@@ -28,6 +24,7 @@ RUN mkdir /home/deployments \
ARG WAR_FILE
COPY target/${WAR_FILE} /home/deployments/ccsdk-app.war
+WORKDIR ${APPDIR}
USER ${APPUSER}
CMD ["/tmp/docker-dashboard-installation.sh"]