Repository: Vantiq/vantiq-extension-sources (language: python)

Issue:
Update Docker image base
OpenJDK base image is no longer supported.  May choose amazoncorretto.


Discussion / hints:
ref: Vantiq/ag2rs#9698

Fix patch:
diff --git a/CSVSource/src/main/docker/Dockerfile b/CSVSource/src/main/docker/Dockerfile
index 512860c5..375aaf55 100644
--- a/CSVSource/src/main/docker/Dockerfile
+++ b/CSVSource/src/main/docker/Dockerfile
@@ -1,4 +1,5 @@
-FROM openjdk:11-jre-slim
+FROM amazoncorretto:11-alpine-jdk
+RUN apk update && apk add --upgrade libcrypto3 libssl3
 RUN mkdir /app
 ADD CSVSource.tar /app
 WORKDIR /app
diff --git a/EasyModbusSource/src/main/docker/Dockerfile b/EasyModbusSource/src/main/docker/Dockerfile
index abb35624..148e450a 100644
--- a/EasyModbusSource/src/main/docker/Dockerfile
+++ b/EasyModbusSource/src/main/docker/Dockerfile
@@ -1,4 +1,5 @@
-FROM openjdk:11-jre-slim
+FROM amazoncorretto:11-alpine-jdk
+RUN apk update && apk add --upgrade libcrypto3 libssl3
 RUN mkdir /app
 ADD EasyModbusSource.tar /app
 WORKDIR /app
diff --git a/camelAssemblies/build.gradle b/camelAssemblies/build.gradle
index 196ad0bf..8c274f39 100644
--- a/camelAssemblies/build.gradle
+++ b/camelAssemblies/build.gradle
@@ -168,3 +168,8 @@ tasks.register('publishAssemblies') {
 importAssemblies.mustRunAfter( 'generateAssemblyResources' )
 publishAssemblies.mustRunAfter('importAssemblies')
 
+// This is not a connector so no connector image should be constructed or pushed.
+buildImages.onlyIf { false }
+buildConnectorImage.onlyIf { false }
+pushImages.onlyIf { false }
+pushConnectorImage.onlyIf { false }
diff --git a/camelComponent/build.gradle b/camelComponent/build.gradle
index 106b58ea..e2d2b934 100644
--- a/camelComponent/build.gradle
+++ b/camelComponent/build.gradle
@@ -75,3 +75,8 @@ artifacts {
     testArtifacts testJar
 }
 
+// This is not a connector so no connector image should be constructed or pushed.
+buildImages.onlyIf { false }
+buildConnectorImage.onlyIf { false }
+pushImages.onlyIf { false }
+pushConnectorImage.onlyIf { false }
\ No newline at end of file
diff --git a/extjsdk/build.gradle b/extjsdk/build.gradle
index 9581e393..fabec4cd 100644
--- a/extjsdk/build.gradle
+++ b/extjsdk/build.gradle
@@ -100,4 +100,10 @@ task fatJar(type: Jar) {
     from configurations.runtimeClasspath.
                 findAll( { it.name.endsWith('jar') && !it.name.startsWith('groovy')}).
                 collect( { zipTree(it) })
-}
\ No newline at end of file
+}
+
+// This is not a connector so no connector image should be constructed or pushed.
+buildImages.onlyIf { false }
+buildConnectorImage.onlyIf { false }
+pushImages.onlyIf { false }
+pushConnectorImage.onlyIf { false }
\ No newline at end of file
diff --git a/extpsdk/build.gradle b/extpsdk/build.gradle
index bb81f14e..c494c221 100644
--- a/extpsdk/build.gradle
+++ b/extpsdk/build.gradle
@@ -129,3 +129,9 @@ tasks.matching { !it.name.startsWith('generate')
                     && it.name != 'clean' }.all { Task task ->
     task.mustRunAfter generateSetupCfg
 }
+
+// This is an SDK so no connector image should be constructed or pushed.
+buildImages.onlyIf { false }
+buildConnectorImage.onlyIf { false }
+pushImages.onlyIf { false }
+pushConnectorImage.onlyIf { false }
diff --git a/jdbcSource/src/main/docker/Dockerfile b/jdbcSource/src/main/docker/Dockerfile
index 0e38e86e..4874fa2b 100644
--- a/jdbcSource/src/main/docker/Dockerfile
+++ b/jdbcSource/src/main/docker/Dockerfile
@@ -1,4 +1,5 @@
-FROM openjdk:11-jre-slim
+FROM amazoncorretto:11-alpine-jdk
+RUN apk update && apk add --upgrade libcrypto3 libssl3
 RUN mkdir /app
 ADD jdbcSource.tar /app
 WORKDIR /app
diff --git a/jmsSource/src/main/docker/Dockerfile b/jmsSource/src/main/docker/Dockerfile
index d6dbbdfb..4eaf9c3f 100644
--- a/jmsSource/src/main/docker/Dockerfile
+++ b/jmsSource/src/main/docker/Dockerfile
@@ -1,4 +1,5 @@
-FROM openjdk:11-jre-slim
+FROM amazoncorretto:11-alpine-jdk
+RUN apk update && apk add --upgrade libcrypto3 libssl3
 RUN mkdir /app
 ADD jmsSource.tar /app
 WORKDIR /app
diff --git a/objectRecognitionSource/src/main/docker/Dockerfile b/objectRecognitionSource/src/main/docker/Dockerfile
index 5ed6ab36..de8aa226 100644
--- a/objectRecognitionSource/src/main/docker/Dockerfile
+++ b/objectRecognitionSource/src/main/docker/Dockerfile
@@ -1,4 +1,5 @@
-FROM openjdk:11-jre-slim
+FROM amazoncorretto:11-alpine-jdk
+RUN apk update && apk add --upgrade libcrypto3 libssl3
 RUN mkdir /app
 ADD objectRecognitionSource.tar /app
 WORKDIR /app
diff --git a/opcuaSource/src/main/docker/Dockerfile b/opcuaSource/src/main/docker/Dockerfile
index 65fd8db6..bcf2e29d 100644
--- a/opcuaSource/src/main/docker/Dockerfile
+++ b/opcuaSource/src/main/docker/Dockerfile
@@ -1,4 +1,5 @@
-FROM openjdk:11-jre-slim
+FROM amazoncorretto:11-alpine-jdk
+RUN apk update && apk add --upgrade libcrypto3 libssl3
 RUN mkdir /app
 ADD opcuaSource.tar /app
 WORKDIR /app
diff --git a/pythonExecSource/src/main/templates/Dockerfile.tmpl b/pythonExecSource/src/main/templates/Dockerfile.tmpl
index 1242ba0c..038a88ca 100644
--- a/pythonExecSource/src/main/templates/Dockerfile.tmpl
+++ b/pythonExecSource/src/main/templates/Dockerfile.tmpl
@@ -1,10 +1,10 @@
 # syntax=docker/dockerfile:1
 
-FROM python:3.8.13-slim-buster
+FROM python:3.12.3-slim
 RUN mkdir /app
 ENV PYTHONPATH /app
 RUN pip install --no-cache-dir --upgrade pip
-# The localRequirements.txt file is a requirements.txt formatted file specfiying any local package installations
+# The localRequirements.txt file is a requirements.txt formatted file specifying any local package installations
 # desired.  This may be necessary if, for example, the python code this connector may execute requires additional
 # python packages installed (e.g., tensorflow).
 #
diff --git a/udpSource/src/main/docker/Dockerfile b/udpSource/src/main/docker/Dockerfile
index bb661924..8eab7cb5 100644
--- a/udpSource/src/main/docker/Dockerfile
+++ b/udpSource/src/main/docker/Dockerfile
@@ -1,4 +1,5 @@
-FROM openjdk:11-jre-slim
+FROM amazoncorretto:11-alpine-jdk
+RUN apk update && apk add --upgrade libcrypto3 libssl3
 RUN mkdir /app
 ADD udpSource.tar /app
 WORKDIR /app


Test patch:
diff --git a/testConnector/src/main/docker/Dockerfile b/testConnector/src/main/docker/Dockerfile
index c7765730..97deb405 100644
--- a/testConnector/src/main/docker/Dockerfile
+++ b/testConnector/src/main/docker/Dockerfile
@@ -1,4 +1,5 @@
-FROM openjdk:11-jre-slim
+FROM amazoncorretto:11-alpine-jdk
+RUN apk update && apk add --upgrade libcrypto3 libssl3
 RUN mkdir /app
 ADD testConnector.tar /app
 WORKDIR /app