File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1919
2020
2121ARG GLIBC_VERSION=2.38
22+ ARG ALPINE_VERSION=3.20
2223
2324FROM ubuntu:22.04 as build
2425ARG 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
5556ARG GLIBC_VERSION
5657
5758RUN apk add abuild sudo build-base
Original file line number Diff line number Diff line change 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
2325RUN apk add zip
2426
@@ -52,7 +54,7 @@ RUN chmod -R o+rx /pulsar
5254RUN 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
5759RUN wget -O /etc/apk/keys/amazoncorretto.rsa.pub https://apk.corretto.aws/amazoncorretto.rsa.pub
5860RUN 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
7375ARG SNAPPY_VERSION
7476RUN 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
8284ENV LANG C.UTF-8
8385
8486# Install some utilities, some are required by Pulsar scripts
You can’t perform that action at this time.
0 commit comments