Compare commits

..
6 changed files with 18 additions and 19 deletions
+14 -15
View File
@@ -3,22 +3,24 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.inteligr8</groupId> <groupId>com.inteligr8</groupId>
<artifactId>tomcat-rad</artifactId> <artifactId>tomcat-rad</artifactId>
<version>9-2.1</version> <version>${base.version}-tomcat-${tomcat.version}</version>
<name>Apache Tomcat for Rapid Application Development</name> <name>Apache Tomcat for Rapid Application Development</name>
<packaging>pom</packaging> <packaging>pom</packaging>
<properties> <properties>
<base.version>2.3</base.version>
<!-- The release version of the Java Hotswap Docker image --> <!-- The release version of the Java Hotswap Docker image -->
<!-- See: https://bitbucket.org/inteligr8/jdk-hotswap-docker --> <!-- See: https://bitbucket.org/inteligr8/jdk-hotswap-docker -->
<jdk-hotswap.version>1.4.1-jbr-17.0.10</jdk-hotswap.version> <jdk-hotswap.version>2.0.3-jbr-17.0.14</jdk-hotswap.version>
<namespace.prefix>tomcat-rad</namespace.prefix> <namespace.prefix>tomcat-rad</namespace.prefix>
<!-- The version of Apache Tomcat to serve as the basis of this Docker image --> <!-- The version of Apache Tomcat to serve as the basis of this Docker image -->
<!-- See: https://tomcat.apache.org/download-90.cgi --> <!-- See: https://tomcat.apache.org/download-90.cgi -->
<tomcat.version>9.0.86</tomcat.version> <tomcat.version>9.0.116</tomcat.version>
<tomcat.majorVersion>9</tomcat.majorVersion> <tomcat.majorVersion>9</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 --> <!-- The Docker image meta-data for pushing the build -->
<image.name>inteligr8/${project.artifactId}</image.name> <image.name>inteligr8/${project.artifactId}</image.name>
@@ -29,20 +31,15 @@
<build> <build>
<resources> <resources>
<resource> <resource>
<directory>.</directory> <directory>src/main/docker</directory>
<includes>
<include>*.sh</include>
<include>*.properties</include>
<include>*.xml</include>
</includes>
<filtering>true</filtering> <filtering>true</filtering>
<targetPath>${project.build.directory}</targetPath> <targetPath>${project.build.directory}/resources</targetPath>
</resource> </resource>
</resources> </resources>
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version> <version>3.5.0</version>
<executions> <executions>
<execution> <execution>
<id>copy-resources</id> <id>copy-resources</id>
@@ -59,15 +56,17 @@
<plugin> <plugin>
<groupId>org.eclipse.jkube</groupId> <groupId>org.eclipse.jkube</groupId>
<artifactId>kubernetes-maven-plugin</artifactId> <artifactId>kubernetes-maven-plugin</artifactId>
<version>1.14.0</version> <version>1.19.0</version>
<configuration> <configuration>
<images> <images>
<image> <image>
<name>${image.name}:${image.tag}</name> <name>${image.name}:${image.tag}</name>
<registry>${image.registry}</registry> <registry>${image.registry}</registry>
<build>
<contextDir>${project.build.directory}/resources</contextDir>
</build>
</image> </image>
</images> </images>
<contextDir>${basedir}</contextDir>
<buildStrategy>docker</buildStrategy> <buildStrategy>docker</buildStrategy>
<verbose>true</verbose> <verbose>true</verbose>
</configuration> </configuration>
@@ -89,7 +88,7 @@
<!-- This plugin prevents the project from deploying to the Maven Repository, as it is pointless --> <!-- This plugin prevents the project from deploying to the Maven Repository, as it is pointless -->
<plugin> <plugin>
<artifactId>maven-deploy-plugin</artifactId> <artifactId>maven-deploy-plugin</artifactId>
<version>3.1.1</version> <version>3.1.4</version>
<configuration> <configuration>
<skip>true</skip> <skip>true</skip>
</configuration> </configuration>
+4 -4
View File
@@ -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 mkdir web web-extra1 web-extra2 web-extra3 web-extra4 web-extra5 web-extra6 web-extra7
# Add our Docker container initialization script # Add our Docker container initialization script
ADD maven/target/setenv.sh /usr/local/bin/${namespace.prefix}-setenv.sh ADD maven/setenv.sh /usr/local/bin/${namespace.prefix}-setenv.sh
COPY maven/target/docker-entrypoint.sh /usr/local/bin COPY maven/docker-entrypoint.sh /usr/local/bin
RUN chmod 755 /usr/local/bin/docker-entrypoint.sh RUN chmod 755 /usr/local/bin/docker-entrypoint.sh
# Add our Apache Tomcat configuration # Add our Apache Tomcat configuration
# This gives us dynamic injection points into the running webapps # This gives us dynamic injection points into the running webapps
COPY maven/target/tomcat-context.xml /var/lib/tomcat/conf/context.xml COPY maven/tomcat-context.xml /var/lib/tomcat/conf/context.xml
ADD maven/target/hotswap-agent.properties /var/lib/tomcat/lib ADD maven/hotswap-agent.properties /var/lib/tomcat/lib
# Listening for HTTP (not HTTPS) traffic # Listening for HTTP (not HTTPS) traffic
EXPOSE 8080 EXPOSE 8080