From 670376e62893fc7e81064419daba9eb9d2bc1948 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Wed, 11 Mar 2020 17:46:32 +0000
Subject: [PATCH] Rundeck requires JDK 8 - install it from AdoptOpenJDK repo

---
 Dockerfile           |    5 +++--
 adoptopenjdk-gpg.key |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+), 2 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 428a947..e1d2ef3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -8,12 +8,13 @@
 ADD *-gpg.key /root/
 RUN apt-get -y update \
 	&& apt-get -y upgrade \
-	&& apt-get -y install openssh-client wget gnupg \
+	&& apt-get -y install openssh-client wget gnupg software-properties-common \
 	&& echo "deb http://dl.bintray.com/rundeck/rundeck-deb /" \
 		> /etc/apt/sources.list.d/rundeck.list \
+	&& add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ \
 	&& cat /root/*-gpg.key | apt-key add - \
 	&& apt-get -y update \
-	&& apt-get -y install rundeck \
+	&& apt-get -y install adoptopenjdk-8-hotspot rundeck \
 	&& apt-get -y clean \
 	&& rm -Rf /var/lib/apt/lists/*
 
diff --git a/adoptopenjdk-gpg.key b/adoptopenjdk-gpg.key
new file mode 100644
index 0000000..7ae2ce4
--- /dev/null
+++ b/adoptopenjdk-gpg.key
@@ -0,0 +1,53 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1
+
+mQINBFzII+8BEADS8rE0HAdET6h2LjpRbN22+JRzFzD1LvqWFOIozLZ5hA8tAIM4
+dNhTbzMt/evgVi+Qvo+VpwINPYNPVfavWXK3PsiI6tmgECq62ODuyzS3+TBOVZ6G
+RIGVoIWCqvW8gz3CBl5MzUp0iw4uv4cZYI1XJKz9CmOUzoxiCTchs2dFW9UI//AZ
+A6mFVRNG0siIjEOhUON1GygHiSlKh9L5UGZfwnXwBt6B9bOdzstBoQq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