Skip to content

Commit 1517e63

Browse files
authored
[improve][misc] Set Alpine base image to 3.20 instead of 3.19.1 (apache#22941)
1 parent 6692bc8 commit 1517e63

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

docker/glibc-package/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020

2121
ARG GLIBC_VERSION=2.38
22+
ARG ALPINE_VERSION=3.20
2223

2324
FROM ubuntu:22.04 as build
2425
ARG GLIBC_VERSION
@@ -51,7 +52,7 @@ RUN tar --dereference --hard-dereference -zcf /glibc-bin.tar.gz /usr/glibc-compa
5152

5253
################################################
5354
## Build the APK package
54-
FROM alpine:3.19 as apk
55+
FROM alpine:$ALPINE_VERSION as apk
5556
ARG GLIBC_VERSION
5657

5758
RUN apk add abuild sudo build-base

docker/pulsar/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
# under the License.
1818
#
1919

20+
ARG ALPINE_VERSION=3.20
21+
2022
# First create a stage with just the Pulsar tarball and scripts
21-
FROM alpine as pulsar
23+
FROM alpine:$ALPINE_VERSION as pulsar
2224

2325
RUN apk add zip
2426

@@ -52,7 +54,7 @@ RUN chmod -R o+rx /pulsar
5254
RUN echo 'OPTS="$OPTS -Dorg.xerial.snappy.use.systemlib=true"' >> /pulsar/conf/bkenv.sh
5355

5456
### Create one stage to include JVM distribution
55-
FROM alpine AS jvm
57+
FROM alpine:$ALPINE_VERSION AS jvm
5658

5759
RUN wget -O /etc/apk/keys/amazoncorretto.rsa.pub https://apk.corretto.aws/amazoncorretto.rsa.pub
5860
RUN echo "https://apk.corretto.aws" >> /etc/apk/repositories
@@ -68,7 +70,7 @@ RUN echo networkaddress.cache.negative.ttl=1 >> /opt/jvm/conf/security/java.secu
6870
# Fix the issue when using snappy-java in x86 arch alpine
6971
# See https://github.com/xerial/snappy-java/issues/181 https://github.com/xerial/snappy-java/issues/579
7072
# We need to ensure that the version of the native library matches the version of snappy-java imported via Maven
71-
FROM alpine AS snappy-java
73+
FROM alpine:$ALPINE_VERSION AS snappy-java
7274

7375
ARG SNAPPY_VERSION
7476
RUN apk add git alpine-sdk util-linux cmake autoconf automake libtool openjdk17 maven curl bash tar
@@ -78,7 +80,7 @@ FROM apachepulsar/glibc-base:2.38 as glibc
7880

7981
## Create final stage from Alpine image
8082
## and add OpenJDK and Python dependencies (for Pulsar functions)
81-
FROM alpine:3.19.1
83+
FROM alpine:$ALPINE_VERSION
8284
ENV LANG C.UTF-8
8385

8486
# Install some utilities, some are required by Pulsar scripts

0 commit comments

Comments
 (0)