Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Arm64 Support #830

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions bin/build-debian
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ for component in ${COMPONENTS} ; do
BUILD_ARGS=""
fi

for type in "" rpm; do
#TODO: undo this... only building debian images for now
#for type in "" rpm; do
for type in ""; do
DOCKER_FILE="debian/${component}/Dockerfile"
COMPONENT_NAME=${component}

Expand All @@ -43,12 +45,13 @@ for component in ${COMPONENTS} ; do
fi

if [ -a "${DOCKER_FILE}" ]; then
docker build --build-arg KAFKA_VERSION=${KAFKA_VERSION} --build-arg CONFLUENT_PLATFORM_LABEL=${CONFLUENT_PLATFORM_LABEL} --build-arg CONFLUENT_MAJOR_VERSION=${CONFLUENT_MAJOR_VERSION} --build-arg CONFLUENT_MINOR_VERSION=${CONFLUENT_MINOR_VERSION} --build-arg CONFLUENT_PATCH_VERSION=${CONFLUENT_PATCH_VERSION} --build-arg COMMIT_ID=${COMMIT_ID} --build-arg BUILD_NUMBER=${BUILD_NUMBER} ${BUILD_ARGS} -t ${REPOSITORY}/cp-${COMPONENT_NAME}:latest -f ${DOCKER_FILE} debian/${component} || exit 1
docker buildx build --platform=linux/arm64,linux/amd64 --pull --build-arg KAFKA_VERSION=${KAFKA_VERSION} --build-arg CONFLUENT_PLATFORM_LABEL=${CONFLUENT_PLATFORM_LABEL} --build-arg CONFLUENT_MAJOR_VERSION=${CONFLUENT_MAJOR_VERSION} --build-arg CONFLUENT_MINOR_VERSION=${CONFLUENT_MINOR_VERSION} --build-arg CONFLUENT_PATCH_VERSION=${CONFLUENT_PATCH_VERSION} --build-arg COMMIT_ID=${COMMIT_ID} --build-arg BUILD_NUMBER=${BUILD_NUMBER} ${BUILD_ARGS} --build-arg REPOSITORY=${REPOSITORY} -t ${REPOSITORY}/cp-${COMPONENT_NAME}:latest --push -f ${DOCKER_FILE} debian/${component} || exit 1

docker tag ${REPOSITORY}/cp-${COMPONENT_NAME}:latest ${REPOSITORY}/cp-${COMPONENT_NAME}:latest || exit 1
docker tag ${REPOSITORY}/cp-${COMPONENT_NAME}:latest ${REPOSITORY}/cp-${COMPONENT_NAME}:${CONFLUENT_VERSION}${CONFLUENT_MVN_LABEL} || exit 1
docker tag ${REPOSITORY}/cp-${COMPONENT_NAME}:latest ${REPOSITORY}/cp-${COMPONENT_NAME}:${VERSION} || exit 1
docker tag ${REPOSITORY}/cp-${COMPONENT_NAME}:latest ${REPOSITORY}/cp-${COMPONENT_NAME}:${COMMIT_ID} || exit 1
#TODO: Don't want to use docker tag with buildx image, need to work with the manifest, use something like docker manifest cp?
#docker manifest inspect ${REPOSITORY}/cp-${COMPONENT_NAME}:latest
#Take the manifest digests out of the manifest list, then:
#docker manifest create ${REPOSITORY}/cp-${COMPONENT_NAME}:${VERSION} ${REPOSITORY}/cp-${COMPONENT_NAME}@sha256:...1 ${REPOSITORY}/cp-${COMPONENT_NAME}@sha256:...2 ${REPOSITORY}/cp-${COMPONENT_NAME}@sha256:...3
#docker manifest push ${REPOSITORY}/cp-${COMPONENT_NAME}:${VERSION}
fi;
done
done
17 changes: 5 additions & 12 deletions debian/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM debian:jessie
FROM debian:stable

ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
Expand All @@ -30,7 +30,7 @@ MAINTAINER partner-support@confluent.io
LABEL io.confluent.docker=true

# Python
ENV PYTHON_VERSION="2.7.9-1"
ENV PYTHON_VERSION="2.7.16-1"
ENV PYTHON_PIP_VERSION="8.1.2"

# Confluent
Expand Down Expand Up @@ -63,16 +63,12 @@ ENV ZULU_OPENJDK_VERSION="8=8.38.0.13"
ENV LANG="C.UTF-8"

RUN echo "===> Updating debian ....." \
# TODO debian jessie has been deprecated and is only ex
&& echo "deb http://archive.debian.org/debian/ jessie main" > /etc/apt/sources.list \
&& echo "deb http://security.debian.org jessie/updates main" >> /etc/apt/sources.list \
&& apt-get -qq update \
\
&& echo "===> Installing curl wget netcat python...." \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
apt-transport-https \
curl \
gnupg-curl \
gnupg \
git \
wget \
netcat \
Expand All @@ -82,11 +78,8 @@ RUN echo "===> Updating debian ....." \
&& pip install --no-cache-dir --upgrade pip==${PYTHON_PIP_VERSION} \
&& pip install --no-cache-dir git+https://github.com/confluentinc/confluent-docker-utils@v0.0.20 \
&& apt remove --purge -y git \
&& echo "Installing Zulu OpenJDK ${ZULU_OPENJDK_VERSION}" \
&& apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys 0x27BC0C8CB3D81623F59BDADCB1998361219BD9C9 \
&& echo "deb http://repos.azulsystems.com/debian stable main" >> /etc/apt/sources.list.d/zulu.list \
&& apt-get -qq update \
&& apt-get -y install zulu-${ZULU_OPENJDK_VERSION} \
&& echo "Installing OpenJDK" \
&& apt-get -y install openjdk-11-jdk \
&& echo "===> Installing Kerberos Patch ..." \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install krb5-user \
&& rm -rf /var/lib/apt/lists/* \
Expand Down
3 changes: 2 additions & 1 deletion debian/enterprise-control-center/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

# Builds a docker image for the Confluent Control Center.

FROM confluentinc/cp-base
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-base

ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
Expand Down
3 changes: 2 additions & 1 deletion debian/enterprise-control-center/Dockerfile.rpm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

# Builds a docker image for the Confluent Control Center.

FROM confluentinc/cp-rpm-base
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-rpm-base

ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
Expand Down
3 changes: 2 additions & 1 deletion debian/enterprise-kafka/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM confluentinc/cp-kafka
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-kafka

ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
Expand Down
3 changes: 2 additions & 1 deletion debian/enterprise-kafka/Dockerfile.rpm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM confluentinc/cp-rpm-kafka
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-rpm-kafka

ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
Expand Down
3 changes: 2 additions & 1 deletion debian/enterprise-replicator-executable/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

# Builds a docker image for Replicator

FROM confluentinc/cp-enterprise-replicator
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-enterprise-replicator

MAINTAINER partner-support@confluent.io
LABEL io.confluent.docker=true
Expand Down
3 changes: 2 additions & 1 deletion debian/enterprise-replicator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

# Builds a docker image for Replicator

FROM confluentinc/cp-server-connect-base
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-server-connect-base

MAINTAINER partner-support@confluent.io
LABEL io.confluent.docker=true
Expand Down
3 changes: 2 additions & 1 deletion debian/kafka-connect-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

# Builds a docker image for Kafka Connect

FROM confluentinc/cp-kafka
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-kafka

MAINTAINER partner-support@confluent.io
LABEL io.confluent.docker=true
Expand Down
3 changes: 2 additions & 1 deletion debian/kafka-connect/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

# Builds a docker image for Kafka Connect

FROM confluentinc/cp-kafka-connect-base
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-kafka-connect-base

MAINTAINER partner-support@confluent.io
LABEL io.confluent.docker=true
Expand Down
3 changes: 2 additions & 1 deletion debian/kafka-mqtt/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM confluentinc/cp-base
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-base

ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
Expand Down
3 changes: 2 additions & 1 deletion debian/kafka-rest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM confluentinc/cp-base
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-base

ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
Expand Down
3 changes: 2 additions & 1 deletion debian/kafka/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM confluentinc/cp-base
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-base

ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
Expand Down
3 changes: 2 additions & 1 deletion debian/kafka/Dockerfile.rpm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM confluentinc/cp-rpm-base
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-rpm-base

ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
Expand Down
3 changes: 2 additions & 1 deletion debian/schema-registry/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

# Builds a docker image for the Confluent Schema Registry.

FROM confluentinc/cp-base
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-base

ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
Expand Down
3 changes: 2 additions & 1 deletion debian/server-connect-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

# Builds a docker image for Kafka Connect

FROM confluentinc/cp-server
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-server

MAINTAINER partner-support@confluent.io
LABEL io.confluent.docker=true
Expand Down
3 changes: 2 additions & 1 deletion debian/server-connect/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

# Builds a docker image for Kafka Connect

FROM confluentinc/cp-server-connect-base
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-server-connect-base

MAINTAINER partner-support@confluent.io
LABEL io.confluent.docker=true
Expand Down
3 changes: 2 additions & 1 deletion debian/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM confluentinc/cp-base
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-base

ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
Expand Down
3 changes: 2 additions & 1 deletion debian/server/Dockerfile.rpm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM confluentinc/cp-rpm-base
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-rpm-base

ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
Expand Down
3 changes: 2 additions & 1 deletion debian/zookeeper/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM confluentinc/cp-base
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-base

EXPOSE 2181 2888 3888

Expand Down
3 changes: 2 additions & 1 deletion debian/zookeeper/Dockerfile.rpm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM confluentinc/cp-rpm-base
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-rpm-base

EXPOSE 2181 2888 3888

Expand Down
9 changes: 7 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<repositories>
<repository>
<id>confluent</id>
<url>https://packages.confluent.io/maven/</url>
</repository>
</repositories>
<parent>
<groupId>io.confluent</groupId>
<artifactId>common</artifactId>
Expand Down
3 changes: 2 additions & 1 deletion tests/images/jmxterm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM confluentinc/cp-base
ARG REPOSITORY=confluentinc
FROM $REPOSITORY/cp-base

ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
Expand Down