File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed
Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1+ .git
2+ .gitignore
3+ README.md
Original file line number Diff line number Diff line change 1- FROM unidata/tomcat-docker:latest
1+ FROM unidata/tomcat-docker:8.5
22MAINTAINER Kyle Wilcox <kyle@axiomdatascience.com>
33
44ENV ERDDAP_VERSION 1.82
@@ -25,10 +25,6 @@ COPY files/setenv.sh ${CATALINA_HOME}/bin/setenv.sh
2525# ERDDAP setup.xml
2626COPY files/setup.xml ${CATALINA_HOME}/content/erddap/setup.xml
2727
28- RUN mkdir -p ${ERDDAP_DATA} && \
29- chown -R tomcat:tomcat "${ERDDAP_DATA}" && \
30- chown -R tomcat:tomcat "${CATALINA_HOME}"
31-
3228COPY entrypoint.sh /
3329ENTRYPOINT ["/entrypoint.sh" ]
3430
Original file line number Diff line number Diff line change 77
88if [ " $1 " = ' start-tomcat.sh' ] || [ " $1 " = ' catalina.sh' ]; then
99
10+ USER_ID=${TOMCAT_USER_ID:- 1000}
11+ GROUP_ID=${TOMCAT_GROUP_ID:- 1000}
12+
13+ # ##
14+ # Tomcat user
15+ # ##
16+ groupadd -r tomcat -g ${GROUP_ID} && \
17+ useradd -u ${USER_ID} -g tomcat -d ${CATALINA_HOME} -s /sbin/nologin \
18+ -c " Tomcat user" tomcat
19+
1020 # ##
1121 # Change CATALINA_HOME ownership to tomcat user and tomcat group
1222 # Restrict permissions on conf
You can’t perform that action at this time.
0 commit comments