Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
be858e0eba | |||
9cf3390724 | |||
1a24064c1b | |||
8fcceaa19d | |||
36bbc9f02a | |||
ec3dab1f9f | |||
7872db4ff8 | |||
342213e47d |
@@ -28,14 +28,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 maven/target/setenv.sh /usr/local/bin/${namespace.prefix}-setenv.sh
|
||||
COPY maven/target/docker-entrypoint.sh /usr/local/bin
|
||||
ADD maven/target/resources/setenv.sh /usr/local/bin/${namespace.prefix}-setenv.sh
|
||||
COPY maven/target/resources/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 maven/target/tomcat-context.xml /var/lib/tomcat/conf/context.xml
|
||||
ADD maven/target/hotswap-agent.properties /var/lib/tomcat/lib
|
||||
COPY maven/target/resources/tomcat-context.xml /var/lib/tomcat/conf/context.xml
|
||||
ADD maven/target/resources/hotswap-agent.properties /var/lib/tomcat/lib
|
||||
|
||||
# Listening for HTTP (not HTTPS) traffic
|
||||
EXPOSE 8080
|
||||
|
23
pom.xml
23
pom.xml
@@ -3,22 +3,22 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.inteligr8</groupId>
|
||||
<artifactId>tomcat-rad</artifactId>
|
||||
<version>10-2.1</version>
|
||||
<version>10-2.2</version>
|
||||
<name>Apache Tomcat for Rapid Application Development</name>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<properties>
|
||||
<!-- The release version of the Java Hotswap Docker image -->
|
||||
<!-- See: https://bitbucket.org/inteligr8/jdk-hotswap-docker -->
|
||||
<jdk-hotswap.version>1.4.1-jbr-17.0.11</jdk-hotswap.version>
|
||||
<jdk-hotswap.version>2.0.1-jbr-17.0.14</jdk-hotswap.version>
|
||||
|
||||
<namespace.prefix>tomcat-rad</namespace.prefix>
|
||||
|
||||
<!-- The version of Apache Tomcat to serve as the basis of this Docker image -->
|
||||
<!-- See: https://tomcat.apache.org/download-90.cgi -->
|
||||
<tomcat.version>10.1.28</tomcat.version>
|
||||
<!-- See: https://tomcat.apache.org/download-10.cgi -->
|
||||
<tomcat.version>10.1.41</tomcat.version>
|
||||
<tomcat.majorVersion>10</tomcat.majorVersion>
|
||||
<tomcat.mirror.baseUrl>https://apache.osuosl.org/tomcat</tomcat.mirror.baseUrl>
|
||||
<tomcat.mirror.baseUrl>https://archive.apache.org/dist/tomcat</tomcat.mirror.baseUrl>
|
||||
|
||||
<!-- The Docker image meta-data for pushing the build -->
|
||||
<image.name>inteligr8/${project.artifactId}</image.name>
|
||||
@@ -29,14 +29,9 @@
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>.</directory>
|
||||
<includes>
|
||||
<include>*.sh</include>
|
||||
<include>*.properties</include>
|
||||
<include>*.xml</include>
|
||||
</includes>
|
||||
<directory>src/main/docker</directory>
|
||||
<filtering>true</filtering>
|
||||
<targetPath>${project.build.directory}</targetPath>
|
||||
<targetPath>${project.build.directory}/resources</targetPath>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
@@ -67,7 +62,7 @@
|
||||
<registry>${image.registry}</registry>
|
||||
</image>
|
||||
</images>
|
||||
<contextDir>${basedir}</contextDir>
|
||||
<contextDir>${project.build.directory}/resources</contextDir>
|
||||
<buildStrategy>docker</buildStrategy>
|
||||
<verbose>true</verbose>
|
||||
</configuration>
|
||||
@@ -89,7 +84,7 @@
|
||||
<!-- This plugin prevents the project from deploying to the Maven Repository, as it is pointless -->
|
||||
<plugin>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<version>3.1.2</version>
|
||||
<version>3.1.3</version>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
|
Reference in New Issue
Block a user