Skip to content
Snippets Groups Projects
Commit 8b8482d8 authored by Alexander König's avatar Alexander König
Browse files

added a fix for tomcat not stopping properly

parent 69a55590
No related branches found
No related tags found
No related merge requests found
......@@ -33,10 +33,13 @@ RUN mkdir /opt/tomcat8
RUN tar xvzf /tmp/apache-tomcat-8.0.35.tar.gz -C /opt/tomcat8/ --strip-components=1
RUN groupadd tomcat8
RUN useradd -s /bin/false -g tomcat8 -d /opt/tomcat8/ tomcat8
RUN chgrp -R tomcat8 /opt/tomcat8/
RUN chmod -R g+r /opt/tomcat8/conf/
RUN chmod g+x /opt/tomcat8/conf/
RUN chown -R tomcat8 /opt/tomcat8/webapps/ /opt/tomcat8/work/ /opt/tomcat8/temp/ /opt/tomcat8/logs/
# doesn't this make more sense?
RUN chown tomcat8:tomcat8 /opt/tomcat8
# RUN chgrp -R tomcat8 /opt/tomcat8/
# RUN chmod -R g+r /opt/tomcat8/conf/
# RUN chmod g+x /opt/tomcat8/conf/
# RUN chown -R tomcat8 /opt/tomcat8/webapps/ /opt/tomcat8/work/ /opt/tomcat8/temp/ /opt/tomcat8/logs/
# copy the init script
COPY commul-customization/tomcat8 /etc/init.d/
RUN chmod a+x /etc/init.d/tomcat8
......@@ -126,6 +129,8 @@ RUN make aai.min.js
COPY commul-customization/certs/lindat-dev.key /etc/ssl/private/
COPY commul-customization/certs/lindat-dev_eurac_edu.pem /etc/ssl/certs/
# convenience setting of workdir
WORKDIR /opt/repository/workspace/scripts
# afterwards log into the container and do these things by hand
#
......
This diff is collapsed.
......@@ -61,7 +61,7 @@ start() {
}
stop() {
echo "Stopping Tomcat 8..."
/bin/su -s /bin/bash $TOMCAT8_USER -c $CATALINA_HOME/bin/shutdown.sh
/bin/su -s /bin/bash $TOMCAT8_USER -c '$CATALINA_HOME/bin/shutdown.sh -force'
}
case $1 in
start|stop) $1;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment