From e11077bf7bf46b07ae7f4f1f8a830b597d12fbf1 Mon Sep 17 00:00:00 2001 From: Rory Hunter Date: Wed, 6 Oct 2021 09:04:36 +0100 Subject: [PATCH] Use alpine:3.13, not latest --- distribution/docker/build.gradle | 2 +- .../src/test/java/org/elasticsearch/packaging/util/Docker.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/docker/build.gradle b/distribution/docker/build.gradle index 64bd4c75cc2ef..2e797b3893a79 100644 --- a/distribution/docker/build.gradle +++ b/distribution/docker/build.gradle @@ -305,7 +305,7 @@ void addBuildDockerImageTask(Architecture architecture, DockerBase base) { baseImages = [baseImage] buildArgs = buildArgsMap } else if (base == DockerBase.CENTOS) { - baseImages = ['alpine:latest', base.image] + baseImages = ['alpine:3.13', base.image] } else { baseImages = [base.image] } diff --git a/qa/os/src/test/java/org/elasticsearch/packaging/util/Docker.java b/qa/os/src/test/java/org/elasticsearch/packaging/util/Docker.java index f34310724ac53..d9b6eda6001cb 100644 --- a/qa/os/src/test/java/org/elasticsearch/packaging/util/Docker.java +++ b/qa/os/src/test/java/org/elasticsearch/packaging/util/Docker.java @@ -299,7 +299,7 @@ private static void executePrivilegeEscalatedShellCmd(String shellCmd, Path loca args.add("--volume \"" + localPath.getParent() + ":" + containerPath.getParent() + "\""); // Use a lightweight musl libc based small image - args.add("alpine"); + args.add("alpine:3.13"); // And run inline commands via the POSIX shell args.add("/bin/sh -c \"" + shellCmd + "\"");