diff --git a/cadc-tomcat/Dockerfile b/cadc-tomcat/Dockerfile index 693de1f..2b391fb 100644 --- a/cadc-tomcat/Dockerfile +++ b/cadc-tomcat/Dockerfile @@ -46,11 +46,6 @@ RUN echo JAVA_OPTS=\"-Xms512m -Xmx2048m -XX:+UseParallelGC \$JAVA_OPTS\" >> /etc # disable all jar scanning for TLDs RUN echo "tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar" >> /etc/tomcat/catalina.properties -# standard welcome page -RUN mkdir -p /usr/share/tomcat/webapps/ROOT -COPY src/index.html /usr/share/tomcat/webapps/ROOT/ -RUN chown -R tomcat.tomcat /usr/share/tomcat/webapps/ROOT - COPY src/cadc-tomcat-start /usr/bin/cadc-tomcat-start CMD ["/usr/bin/cadc-tomcat-start"] diff --git a/cadc-tomcat/README.md b/cadc-tomcat/README.md index 728678f..ec2b6b3 100644 --- a/cadc-tomcat/README.md +++ b/cadc-tomcat/README.md @@ -77,7 +77,16 @@ discover it from the request for this to work. Some applications may not be _mov Renaming the war file can take advantage of some tomcat war file naming conventions (https://tomcat.apache.org/tomcat-9.0-doc/config/context.html), for example: to rename -the context or introduce additional path elements. +the context or introduce additional path elements: +``` +mv foo.war api#foo.war +``` +to deploy as `/api/foo`. + +To deploy a service on the root of the server, take advantage of this special tomcat name: +``` +mv foo.war ROOT.war +``` ### tomcat.conf This optional file contains configuration used by the tomcat startup, e.g.: