fix kubernetes-maven-plugin upgrade

This commit is contained in:
2026-03-24 10:56:00 -04:00
parent 958f42d84c
commit c09f0b8093
2 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -56,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.19.0</version> <!-- investigate why newer versions don't work --> <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>${project.build.directory}/resources</contextDir>
<buildStrategy>docker</buildStrategy> <buildStrategy>docker</buildStrategy>
<verbose>true</verbose> <verbose>true</verbose>
</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/resources/setenv.sh /usr/local/bin/${namespace.prefix}-setenv.sh ADD maven/setenv.sh /usr/local/bin/${namespace.prefix}-setenv.sh
COPY maven/target/resources/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/resources/tomcat-context.xml /var/lib/tomcat/conf/context.xml COPY maven/tomcat-context.xml /var/lib/tomcat/conf/context.xml
ADD maven/target/resources/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