Skip to content

Commit f2be867

Browse files
authored
Update IT Dockerfile to Temurin. (#18712)
The previous image openjdk:17-slim-bullseye is deprecated, along with all openjdk images generally. This fixes the errors in recent PRs such as: ERROR: failed to build: failed to solve: openjdk:17-slim-bullseye: failed to resolve source metadata for docker.io/library/openjdk:17-slim-bullseye: docker.io/library/openjdk:17-slim-bullseye: not found
1 parent a3a2a5e commit f2be867

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

integration-tests/docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
ARG JDK_VERSION=17-slim-bullseye
17-
FROM openjdk:$JDK_VERSION as druidbase
16+
ARG JDK_VERSION=21-jre-jammy
17+
FROM eclipse-temurin:$JDK_VERSION AS druidbase
1818

1919
# Bundle everything into one script so cleanup can reduce image size.
2020
# Otherwise docker's layered images mean that things are not actually deleted.

integration-tests/docker/base-setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ apt-get update
2727
# wget
2828
apt-get install -y wget
2929

30-
# MySQL (Metadata store), modern Debian-based systems install mariadb-server
31-
apt-get install -y default-mysql-server
30+
# MariaDB metadata store
31+
apt-get install -y mariadb-server
3232

3333
# Supervisor
3434
apt-get install -y supervisor

integration-tests/script/docker_build_containers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ else
3434
11 | 17 | 21)
3535
echo "Build druid-cluster with Java $DRUID_INTEGRATION_TEST_JVM_RUNTIME"
3636
docker build -t druid/cluster \
37-
--build-arg JDK_VERSION=$DRUID_INTEGRATION_TEST_JVM_RUNTIME-slim-bullseye \
37+
--build-arg JDK_VERSION=$DRUID_INTEGRATION_TEST_JVM_RUNTIME-jre-jammy \
3838
--build-arg ZK_VERSION \
3939
--build-arg KAFKA_VERSION \
4040
--build-arg CONFLUENT_VERSION \

0 commit comments

Comments
 (0)