forked from StreamingMicroservicesPlatform/docker-kafka
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds base image, as Zulu will be upgraded less frequently than Kafka
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM debian:stable-20170620 | ||
|
||
ENV ZULU_OPENJDK_VERSION="8=8.21.0.1" | ||
|
||
RUN set -ex; \ | ||
runDeps=''; \ | ||
buildDeps='gnupg dirmngr'; \ | ||
apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends; \ | ||
\ | ||
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; \ | ||
\ | ||
cd /usr/lib/jvm/zulu-8-amd64/; \ | ||
rm -rf demo man sample src.zip; \ | ||
\ | ||
apt-get purge -y --auto-remove $buildDeps; \ | ||
rm -rf /var/lib/apt/lists/*; \ | ||
rm -rf /var/log/dpkg.log /var/log/alternatives.log /var/log/apt |