Skip to content

Commit

Permalink
Uses Zulu jre/jdk like cp-docker-images base does
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Jul 20, 2017
1 parent eeee33b commit 99f4d45
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions kafka/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
FROM debian:stable-20170620

ENV KAFKA_VERSION=0.11.0.0
ENV KAFKA_VERSION=0.11.0.0 ZULU_OPENJDK_VERSION="8=8.21.0.1"
ENV kafka_bin_version=2.11-$KAFKA_VERSION

RUN set -ex; \
runDeps='default-jre'; \
buildDeps='curl ca-certificates'; \
runDeps=''; \
buildDeps='curl ca-certificates gnupg dirmngr'; \
apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends; \
rm -rf /var/lib/apt/lists/*; \
\
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x219BD9C9; \
echo 'deb http://repos.azulsystems.com/debian stable main' > /etc/apt/sources.list.d/zulu.list; \
apt-get update && apt-get install -y zulu-${ZULU_OPENJDK_VERSION} --no-install-recommends; \
\
mkdir -p /opt/kafka; \
curl -SLs "https://www-eu.apache.org/dist/kafka/$KAFKA_VERSION/kafka_$kafka_bin_version.tgz" | tar -xzf - --strip-components=1 -C /opt/kafka; \
\
apt-get purge -y --auto-remove $buildDeps; \
rm -rf /var/lib/apt/lists/*; \
rm /var/log/dpkg.log /var/log/apt/*.log

WORKDIR /opt/kafka
Expand Down

0 comments on commit 99f4d45

Please sign in to comment.