This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch dev-master
in repository https://gitbox.apache.org/repos/asf/flink-docker.git

commit 47747fa25eeccbbea31c11b6a8bfe957c490a91c
Author: Chesnay Schepler <[email protected]>
AuthorDate: Tue Aug 30 10:25:37 2022 +0200

    [FLINK-29137] Switch to Eclipse Temurin
---
 Dockerfile-debian.template => Dockerfile-ubuntu.template | 2 +-
 generator.sh                                             | 4 ++--
 testing/testing_lib.sh                                   | 7 ++-----
 3 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/Dockerfile-debian.template b/Dockerfile-ubuntu.template
similarity index 98%
rename from Dockerfile-debian.template
rename to Dockerfile-ubuntu.template
index e338e89..7073eec 100644
--- a/Dockerfile-debian.template
+++ b/Dockerfile-ubuntu.template
@@ -21,7 +21,7 @@ FROM %%FROM_IMAGE%%
 # Install dependencies
 RUN set -ex; \
   apt-get update; \
-  apt-get -y install libsnappy1v5 gettext-base libjemalloc-dev; \
+  apt-get -y install gpg libsnappy1v5 gettext-base libjemalloc-dev; \
   rm -rf /var/lib/apt/lists/*
 
 # Grab gosu for easy step-down from root
diff --git a/generator.sh b/generator.sh
index e093835..758812a 100644
--- a/generator.sh
+++ b/generator.sh
@@ -1,6 +1,6 @@
 #!/bin/bash -e
 
-export SOURCE_VARIANTS=(debian )
+export SOURCE_VARIANTS=(ubuntu )
 
 export DEFAULT_SCALA="2.12"
 export DEFAULT_JAVA="11"
@@ -15,7 +15,7 @@ function generateDockerfile {
     java_version=$6
     source_variant=$7
 
-    from_docker_image="openjdk:${java_version}-jre"
+    from_docker_image="eclipse-temurin:${java_version}-jre-jammy"
 
     cp docker-entrypoint.sh "$dir/docker-entrypoint.sh"
 
diff --git a/testing/testing_lib.sh b/testing/testing_lib.sh
index f964950..d1a7ff3 100644
--- a/testing/testing_lib.sh
+++ b/testing/testing_lib.sh
@@ -235,13 +235,10 @@ function smoke_test_one_image() {
     internal_smoke_test_images "$(ls ./*/*/Dockerfile | tail -n 1)" ""
 }
 
-# Similar to smoke_test_one_image, but test one debian image and one alpine 
image running as a
-# non-root user.
+# Similar to smoke_test_one_image, but test as a non-root user.
 function smoke_test_one_image_non_root() {
     echo >&2 "==> Test images running as non-root"
-    local dockerfiles="$dockerfiles $(ls ./*/*-debian/Dockerfile | tail -n 1)"
-    dockerfiles="$dockerfiles $(ls ./*/*-alpine/Dockerfile | tail -n 1)"
-    internal_smoke_test_images "$dockerfiles" "--user flink"
+    internal_smoke_test_images "$(ls ./*/*/Dockerfile | tail -n 1)" "--user 
flink"
 }
 
 function test_docker_entrypoint() {

Reply via email to