Skip to content

Instantly share code, notes, and snippets.

@spiashko
Created August 20, 2022 21:31
Show Gist options
  • Save spiashko/71dd1f2bef36a42f1519e7d15ae6e656 to your computer and use it in GitHub Desktop.
Save spiashko/71dd1f2bef36a42f1519e7d15ae6e656 to your computer and use it in GitHub Desktop.

How to build confuent arm64 images (from 5.4.0 till 7.0.3)

build cp-base-new

  1. clone common repo on interested branch (for example 5.5.1)
  2. in common repo: mvn -pl parent,. install (you may need to change scheama to https in repository to make it build)
  3. clone common-docker repo on interested branch (for example 5.5.1)
  4. update open ssl version, make it at least like following: <ubi.openssl.version>1.1.1k-7.el8_6</ubi.openssl.version>
  5. in repo root execute build: mvn -pl . install
  6. in separate terminal run socat TCP-LISTEN:2375,reuseaddr,fork UNIX-CONNECT:/var/run/docker.sock
  7. in common-docker repo cd base and DOCKER_HOST=http://127.0.0.1:2375 mvn clean package -Pdocker -DskipTests -Ddocker.os_type=ubi8 -Ddocker.skip-security-update-check=true
  8. enjoy placeholder/confluentinc/cp-base-new:5.5.1-ubi8 which is arm64

build cp-schema-registry

  1. clone schema-registry repo on interested branch 5.5.1
  2. DOCKER_HOST=http://127.0.0.1:2375 CONFLUENT_PACKAGES_REPO=http://packages.confluent.io/rpm/5.5 CONFLUENT_VERSION=5.5.1 mvn clean package -Pdocker -DskipTests -Ddocker.os_type=ubi8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment