fabric8 to jkube; latest fixpacks
This commit is contained in:
parent
82b3c68d21
commit
9aa0d36d91
@ -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
|
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 setenv.sh /usr/local/bin/${project.artifactId}-setenv.sh
|
ADD maven/target/setenv.sh /usr/local/bin/${namespace.prefix}-setenv.sh
|
||||||
COPY docker-entrypoint.sh /usr/local/bin
|
COPY maven/target/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 tomcat-context.xml /var/lib/tomcat/conf/context.xml
|
COPY maven/target/tomcat-context.xml /var/lib/tomcat/conf/context.xml
|
||||||
ADD hotswap-agent.properties /var/lib/tomcat/lib
|
ADD maven/target/hotswap-agent.properties /var/lib/tomcat/lib
|
||||||
|
|
||||||
# Listening for HTTP (not HTTPS) traffic
|
# Listening for HTTP (not HTTPS) traffic
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. /usr/local/bin/java-dcevm-hotswap-setenv.sh
|
. /usr/local/bin/java-dcevm-hotswap-setenv.sh
|
||||||
. /usr/local/bin/tomcat-rad-setenv.sh
|
. /usr/local/bin/${namespace.prefix}-setenv.sh
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
43
pom.xml
43
pom.xml
@ -3,18 +3,20 @@
|
|||||||
<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-1.4</version>
|
<version>9-1.5</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>
|
||||||
<!-- The release version of the Java DCEVM Hotswap Docker image -->
|
<!-- The release version of the Java DCEVM Hotswap Docker image -->
|
||||||
<!-- See: https://bitbucket.org/inteligr8/java-dcevm-hotswap-docker -->
|
<!-- See: https://bitbucket.org/inteligr8/java-dcevm-hotswap-docker -->
|
||||||
<java-dcevm-hotswap.version>11.0.11-1.4.1</java-dcevm-hotswap.version>
|
<java-dcevm-hotswap.version>11.0.15-1.4.1</java-dcevm-hotswap.version>
|
||||||
|
|
||||||
|
<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.46</tomcat.version>
|
<tomcat.version>9.0.80</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://apache.osuosl.org/tomcat</tomcat.mirror.baseUrl>
|
||||||
|
|
||||||
@ -25,12 +27,39 @@
|
|||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>.</directory>
|
||||||
|
<includes>
|
||||||
|
<include>*.sh</include>
|
||||||
|
<include>*.properties</include>
|
||||||
|
<include>*.xml</include>
|
||||||
|
</includes>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
<targetPath>${project.build.directory}</targetPath>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
|
<version>3.3.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-resources</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals><goal>resources</goal></goals>
|
||||||
|
<configuration>
|
||||||
|
<encoding>utf-8</encoding>
|
||||||
|
<propertiesEncoding>utf-8</propertiesEncoding>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<!-- This plugin build and pushes the Docker image -->
|
<!-- This plugin build and pushes the Docker image -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>io.fabric8</groupId>
|
<groupId>org.eclipse.jkube</groupId>
|
||||||
<artifactId>fabric8-maven-plugin</artifactId>
|
<artifactId>kubernetes-maven-plugin</artifactId>
|
||||||
<version>4.4.0</version>
|
<version>1.14.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<images>
|
<images>
|
||||||
<image>
|
<image>
|
||||||
@ -60,7 +89,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.0.0-M1</version>
|
<version>3.1.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<skip>true</skip>
|
<skip>true</skip>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user