-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Kafka container multi-arch and upgrade to 2.8.2
- Loading branch information
1 parent
65eb10b
commit a86a941
Showing
4 changed files
with
127 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,35 @@ | ||
FROM docker.io/bitnami/minideb:bullseye | ||
LABEL maintainer "Bitnami <[email protected]>" | ||
|
||
ARG JAVA_EXTRA_SECURITY_DIR="/bitnami/java/extra-security" | ||
ARG TARGETARCH | ||
|
||
ENV HOME="/" \ | ||
OS_ARCH="amd64" \ | ||
OS_ARCH="${TARGETARCH:-amd64}" \ | ||
OS_FLAVOUR="debian-11" \ | ||
OS_NAME="linux" | ||
|
||
ARG JAVA_EXTRA_SECURITY_DIR="/bitnami/java/extra-security" | ||
|
||
COPY prebuildfs / | ||
# Install required system packages and dependencies | ||
RUN install_packages acl ca-certificates curl gzip libc6 procps tar zlib1g | ||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "java" "11.0.15-150" --checksum fe6b65886a6b1f545508e272efbf422054ee030c867f94ebec2f93c5518252de | ||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-150" --checksum da4a2f759ccc57c100d795b71ab297f48b31c4dd7578d773d963bbd49c42bd7b | ||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wait-for-port" "1.0.3-150" --checksum 1013e2ebbe58e5dc8f3c79fc952f020fc5306ba48463803cacfbed7779173924 | ||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "render-template" "1.0.3-150" --checksum 8b992a5ee513c5eaca52b19232b21a93588ddf4c4850be4d47c6f19b11d1d90a | ||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "kafka" "2.8.1-150" --checksum 3994379a01d6f037fbf6a4dcc24cce706f372bdfe131f3115c60bfce3520852f | ||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wait-for-port" "1.0.6-13" | ||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "render-template" "1.0.5-13" | ||
RUN if [ "$TARGETARCH" = "amd64" ]; then \ | ||
curl --remote-name --silent --show-error --fail https://download.oracle.com/java/17/archive/jdk-17.0.2_linux-x64_bin.tar.gz; \ | ||
tar xf jdk-17.0.2_linux-x64_bin.tar.gz; \ | ||
mv jdk-17.0.2 /opt/bitnami/java; \ | ||
rm jdk-17.0.2_linux-x64_bin.tar.gz; \ | ||
elif [ "$TARGETARCH" = "arm64" ]; then \ | ||
curl --remote-name --silent --show-error --fail https://download.oracle.com/java/17/archive/jdk-17.0.2_linux-aarch64_bin.tar.gz; \ | ||
tar xf jdk-17.0.2_linux-aarch64_bin.tar.gz; \ | ||
mv jdk-17.0.2 /opt/bitnami/java; \ | ||
rm jdk-17.0.2_linux-aarch64_bin.tar.gz; \ | ||
else \ | ||
echo "Only arm64 and amd64 are supported." && exit 1; \ | ||
fi | ||
RUN curl --remote-name --silent --show-error --fail https://archive.apache.org/dist/kafka/2.8.2/kafka_2.12-2.8.2.tgz; \ | ||
tar xf kafka_2.12-2.8.2.tgz; \ | ||
mv kafka_2.12-2.8.2 /opt/bitnami/kafka; \ | ||
rm kafka_2.12-2.8.2.tgz | ||
RUN apt-get update && apt-get upgrade -y && \ | ||
rm -r /var/lib/apt/lists /var/cache/apt/archives | ||
RUN chmod g+rwX /opt/bitnami | ||
|
@@ -25,7 +39,7 @@ RUN ln -s /opt/bitnami/scripts/kafka/run.sh /run.sh | |
COPY rootfs / | ||
RUN /opt/bitnami/scripts/java/postunpack.sh | ||
RUN /opt/bitnami/scripts/kafka/postunpack.sh | ||
ENV APP_VERSION="2.8.1" \ | ||
ENV APP_VERSION="2" \ | ||
BITNAMI_APP_NAME="kafka" \ | ||
JAVA_HOME="/opt/bitnami/java" \ | ||
PATH="/opt/bitnami/java/bin:/opt/bitnami/common/bin:/opt/bitnami/kafka/bin:$PATH" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters