diff --git a/Dockerfile b/Dockerfile index 1453cde..7d90993 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,14 +26,14 @@ RUN cd /var/lib/tomcat/dev && \ mkdir web web-extra1 web-extra2 web-extra3 web-extra4 web-extra5 web-extra6 web-extra7 # Add our Docker container initialization script -ADD setenv.sh /usr/local/bin/${project.artifactId}-setenv.sh -COPY docker-entrypoint.sh /usr/local/bin +ADD maven/target/setenv.sh /usr/local/bin/${namespace.prefix}-setenv.sh +COPY maven/target/docker-entrypoint.sh /usr/local/bin RUN chmod 755 /usr/local/bin/docker-entrypoint.sh # Add our Apache Tomcat configuration # This gives us dynamic injection points into the running webapps -COPY tomcat-context.xml /var/lib/tomcat/conf/context.xml -ADD hotswap-agent.properties /var/lib/tomcat/lib +COPY maven/target/tomcat-context.xml /var/lib/tomcat/conf/context.xml +ADD maven/target/hotswap-agent.properties /var/lib/tomcat/lib # Listening for HTTP (not HTTPS) traffic EXPOSE 8080 diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 0642437..45ba6c4 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/sh . /usr/local/bin/java-dcevm-hotswap-setenv.sh -. /usr/local/bin/tomcat-rad-setenv.sh +. /usr/local/bin/${namespace.prefix}-setenv.sh exec "$@" diff --git a/pom.xml b/pom.xml index 921feaa..78c9be2 100644 --- a/pom.xml +++ b/pom.xml @@ -3,18 +3,20 @@ 4.0.0 com.inteligr8 tomcat-rad - 9-1.4 + 9-1.5 Apache Tomcat for Rapid Application Development pom - 11.0.11-1.4.1 + 11.0.15-1.4.1 + + tomcat-rad - 9.0.46 + 9.0.80 9 https://apache.osuosl.org/tomcat @@ -25,12 +27,39 @@ + + + . + + *.sh + *.properties + *.xml + + true + ${project.build.directory} + + + + maven-resources-plugin + 3.3.1 + + + copy-resources + process-resources + resources + + utf-8 + utf-8 + + + + - io.fabric8 - fabric8-maven-plugin - 4.4.0 + org.eclipse.jkube + kubernetes-maven-plugin + 1.14.0 @@ -60,7 +89,7 @@ maven-deploy-plugin - 3.0.0-M1 + 3.1.1 true