From 055facac9ea023a9c88f094eba4d734d48579336 Mon Sep 17 00:00:00 2001 From: Olaf Meeuwissen Date: Thu, 15 Nov 2018 22:09:14 +0900 Subject: [PATCH] Make the server's BASE_URL configurable The "special" value of `ROOT` will serve requests on `/`. Any other value should serve on `/$BASE_URL` (as long as there are no slashes in `BASE_URL` at least). The default has been set to `plantuml` to better match documentation in the README.md file. Re #80, may help with #79. --- Dockerfile.jetty | 3 ++- Dockerfile.tomcat | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile.jetty b/Dockerfile.jetty index f1d939c..1a06a5b 100644 --- a/Dockerfile.jetty +++ b/Dockerfile.jetty @@ -21,4 +21,5 @@ USER jetty ENV GRAPHVIZ_DOT=/usr/bin/dot -COPY --from=builder /app/target/plantuml.war /var/lib/jetty/webapps/ROOT.war +ARG BASE_URL=plantuml +COPY --from=builder /app/target/plantuml.war /var/lib/jetty/webapps/$BASE_URL.war diff --git a/Dockerfile.tomcat b/Dockerfile.tomcat index d0679ab..9024999 100644 --- a/Dockerfile.tomcat +++ b/Dockerfile.tomcat @@ -17,5 +17,6 @@ RUN apt-get update && \ ENV GRAPHVIZ_DOT=/usr/bin/dot -RUN rm -rf /usr/local/tomcat/webapps/ROOT -COPY --from=builder /app/target/plantuml.war /usr/local/tomcat/webapps/ROOT.war +ARG BASE_URL=plantuml +RUN rm -rf /usr/local/tomcat/webapps/$BASE_URL +COPY --from=builder /app/target/plantuml.war /usr/local/tomcat/webapps/$BASE_URL.war