fuzing commented on issue #12895: URL: https://github.com/apache/iceberg/issues/12895#issuecomment-2839314388
@jesumyip - I use something similar to the following (I've removed a couple of custom/proprietary bits, but this should get you going). We're building on AMD-Intel/Ubuntu/Linux, so your mileage will differ if using OSX/Win. Prerequisites: You'll need to have a clone of the iceberg project somewhere, and have completed a full build after applying any PRs/Patches/etc., such that the iceberg kafka-connect-runtime artifact is available to the docker build pipeline. docker build script ``` #!/usr/bin/env bash TAG=kafka-connect SEMVER=1.1.1 # change folder to your source location ICEBERG_SOURCE=/home/iceberg ICEBERG_RUNTIME_VERSION=1.10.0 ICEBERG_KAFKA_CONNECT_FILENAME=${ICEBERG_SOURCE}/kafka-connect/kafka-connect-runtime/build/distributions/iceberg-kafka-connect-runtime-${ICEBERG_RUNTIME_VERSION}-SNAPSHOT.zip if [ ! -f "${ICEBERG_KAFKA_CONNECT_FILENAME}" ]; then echo "Build failed, cannot find iceberg kafka-connect runtime version ${ICEBERG_RUNTIME_VERSION} - file ${ICEBERG_KAFKA_CONNECT_FILENAME}" exit fi mkdir tmp && cp ${ICEBERG_KAFKA_CONNECT_FILENAME} iceberg-kafka-connect.zip tmp docker build --network=host --no-cache --memory=8g --rm=true --force-rm --tag=${TAG}:${SEMVER} --file=./Dockerfile . docker tag ${TAG}:${SEMVER} ${TAG}:latest ``` Dockerfile: ``` FROM confluentinc/cp-kafka-connect-base:7.9.0 # Install Apache Iceberg Connector From Local Build COPY tmp/iceberg-kafka-connect.zip /tmp/iceberg-kafka-connect.zip RUN cd /tmp \ && confluent-hub install --no-prompt /tmp/iceberg-kafka-connect.zip ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org