You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2025/04/15 14:21:59 UTC
(pulsar) branch branch-4.0 updated: [improve][build] Build apachepulsar/pulsar-io-kinesis-sink-kinesis_producer with Alpine 3.21 (#24180)
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 4b6d83640bc [improve][build] Build apachepulsar/pulsar-io-kinesis-sink-kinesis_producer with Alpine 3.21 (#24180)
4b6d83640bc is described below
commit 4b6d83640bc2921c3b74ced6e1749c163d3cbf8a
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Tue Apr 15 17:20:28 2025 +0300
[improve][build] Build apachepulsar/pulsar-io-kinesis-sink-kinesis_producer with Alpine 3.21 (#24180)
(cherry picked from commit 8412fdada9bc847680b957379fd890bcddf011ce)
---
docker/kinesis-producer-alpine/Dockerfile | 2 +-
docker/kinesis-producer-alpine/README.md | 6 +++++-
docker/kinesis-producer-alpine/build-alpine.sh | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/docker/kinesis-producer-alpine/Dockerfile b/docker/kinesis-producer-alpine/Dockerfile
index ffdf44f55d0..ac04e69aea0 100644
--- a/docker/kinesis-producer-alpine/Dockerfile
+++ b/docker/kinesis-producer-alpine/Dockerfile
@@ -17,7 +17,7 @@
# under the License.
#
-ARG ALPINE_VERSION=3.20
+ARG ALPINE_VERSION=3.21
# Builds an Alpine image with kinesis_producer compiled for Alpine Linux / musl
diff --git a/docker/kinesis-producer-alpine/README.md b/docker/kinesis-producer-alpine/README.md
index 4526f08c65e..dc21b05dec3 100644
--- a/docker/kinesis-producer-alpine/README.md
+++ b/docker/kinesis-producer-alpine/README.md
@@ -31,7 +31,11 @@ This image only needs to be re-created when we want to upgrade to a newer versio
1. Change the version in the Dockerfile for this directory.
2. Rebuild the image and push it to Docker Hub:
```
-docker buildx build --platform=linux/amd64,linux/arm64 -t apachepulsar/pulsar-io-kinesis-sink-kinesis_producer:0.15.12 . --push
+IMAGE=apachepulsar/pulsar-io-kinesis-sink-kinesis_producer
+KINESIS_PRODUCER_VERSION=0.15.12
+docker buildx build --platform=linux/amd64,linux/arm64 \
+ -t "$IMAGE:$KINESIS_PRODUCER_VERSION" -t "$IMAGE:${KINESIS_PRODUCER_VERSION}-$(date -I)" \
+ . --push
```
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.
\ No newline at end of file
diff --git a/docker/kinesis-producer-alpine/build-alpine.sh b/docker/kinesis-producer-alpine/build-alpine.sh
index 23718450bbc..6ea41c55582 100644
--- a/docker/kinesis-producer-alpine/build-alpine.sh
+++ b/docker/kinesis-producer-alpine/build-alpine.sh
@@ -58,7 +58,7 @@ fi
# Build Boost
if [ ! -d "boost_${BOOST_VERSION_UNDERSCORED}" ]; then
- curl -LO https://boostorg.jfrog.io/artifactory/main/release/${BOOST_VERSION}/source/boost_${BOOST_VERSION_UNDERSCORED}.tar.gz
+ curl -LO https://archives.boost.io/release/${BOOST_VERSION}/source/boost_${BOOST_VERSION_UNDERSCORED}.tar.gz
tar xf boost_${BOOST_VERSION_UNDERSCORED}.tar.gz
rm boost_${BOOST_VERSION_UNDERSCORED}.tar.gz