Skip to content

Commit 8412fda

Browse files
authored
[improve][build] Build apachepulsar/pulsar-io-kinesis-sink-kinesis_producer with Alpine 3.21 (#24180)
1 parent 556024d commit 8412fda

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Diff for: docker/kinesis-producer-alpine/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# under the License.
1818
#
1919

20-
ARG ALPINE_VERSION=3.20
20+
ARG ALPINE_VERSION=3.21
2121

2222
# Builds an Alpine image with kinesis_producer compiled for Alpine Linux / musl
2323

Diff for: docker/kinesis-producer-alpine/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ This image only needs to be re-created when we want to upgrade to a newer versio
3131
1. Change the version in the Dockerfile for this directory.
3232
2. Rebuild the image and push it to Docker Hub:
3333
```
34-
docker buildx build --platform=linux/amd64,linux/arm64 -t apachepulsar/pulsar-io-kinesis-sink-kinesis_producer:0.15.12 . --push
34+
IMAGE=apachepulsar/pulsar-io-kinesis-sink-kinesis_producer
35+
KINESIS_PRODUCER_VERSION=0.15.12
36+
docker buildx build --platform=linux/amd64,linux/arm64 \
37+
-t "$IMAGE:$KINESIS_PRODUCER_VERSION" -t "$IMAGE:${KINESIS_PRODUCER_VERSION}-$(date -I)" \
38+
. --push
3539
```
3640

3741
The image tag is then used in `docker/pulsar-all/Dockerfile`. The `kinesis_producer` binary is copied from the image to the `pulsar-all` image that is used by Pulsar Functions to run the Pulsar IO Kinesis Sink connector. The environment variable `PULSAR_IO_KINESIS_KPL_PATH` is set to `/opt/amazon-kinesis-producer/bin/kinesis_producer` and this is how the Kinesis Sink connector knows where to find the `kinesis_producer` binary.

Diff for: docker/kinesis-producer-alpine/build-alpine.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fi
5858

5959
# Build Boost
6060
if [ ! -d "boost_${BOOST_VERSION_UNDERSCORED}" ]; then
61-
curl -LO https://boostorg.jfrog.io/artifactory/main/release/${BOOST_VERSION}/source/boost_${BOOST_VERSION_UNDERSCORED}.tar.gz
61+
curl -LO https://archives.boost.io/release/${BOOST_VERSION}/source/boost_${BOOST_VERSION_UNDERSCORED}.tar.gz
6262
tar xf boost_${BOOST_VERSION_UNDERSCORED}.tar.gz
6363
rm boost_${BOOST_VERSION_UNDERSCORED}.tar.gz
6464

0 commit comments

Comments
 (0)