Merge "Cleaning up heavy files v2 with true if not found"
diff --git a/jjb/voltha-scale.yaml b/jjb/voltha-scale.yaml
index 9e91dea..1af8ca9 100644
--- a/jjb/voltha-scale.yaml
+++ b/jjb/voltha-scale.yaml
@@ -25,6 +25,24 @@
openonuAdapterReplicas: 1
openonuAdapterImg: voltha/voltha-openonu-adapter-go:master
extraHelmFlags: '--set use_openonu_adapter_go=true'
+ - 'voltha-scale-measurements':
+ name: 'voltha-openonu-go-scale-measurements-master-2-16-32-dt-subscribers'
+ build-node: 'onf-pod1-head-node'
+ time-trigger: "H H/4 * * *"
+ olts: 2
+ pons: 16
+ onus: 32
+ withFlows: true
+ provisionSubscribers: true
+ workflow: dt
+ withEapol: false
+ withDhcp: false
+ withIgmp: false
+ onosReplicas: 3
+ atomixReplicas: 3
+ openonuAdapterReplicas: 1
+ openonuAdapterImg: voltha/voltha-openonu-adapter-go:master
+ extraHelmFlags: '--set use_openonu_adapter_go=true'
# jobs for 512 ONUs with a 8 openonu-adapters and clustered ONOS (1 OLT)
- 'voltha-scale-measurements':
diff --git a/packer/provision/basebuild.sh b/packer/provision/basebuild.sh
index 8997dd2..bc4329e 100644
--- a/packer/provision/basebuild.sh
+++ b/packer/provision/basebuild.sh
@@ -13,9 +13,8 @@
ubuntu_systems() {
DISTRO=$(lsb_release -cs)
- apt-get clean
-
# get prereqs for PPA and apt-over-HTTPS support
+ apt-get clean
apt-get update
apt-get install -y apt-transport-https software-properties-common
@@ -23,66 +22,185 @@
add-apt-repository -y ppa:git-core/ppa
# set up docker repo
- apt-key adv --keyserver keyserver.ubuntu.com --recv 0EBFCD88
- add-apt-repository \
- "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
- $(lsb_release -cs) \
- stable"
+ cat << EOF | base64 -d > /tmp/docker-apt-key.gpg
+LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgptUUlOQkZpdDJpb0JFQU
+RoV3BaOC93dlo2aFVUaVhPd1FIWE1BbGFG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FbSsxV3NWbkFYZFVSLy9iTW1oeXI4d0wvRzFZTzFWM0pFSlRSZH
+hzU3hkWWE0ZGVHQkJZL0FkcHN3CjI0anhoT0pSK2xzSnBxSVVlYjk5OStSOGV1RGhSSEc5
+ZUZPN0RSdTZ3ZWF0VUo2c3V1cG9EVFJXdHIvNHlHcWUKZEt4VjNxUWhOTFNuYUF6cVcvMW
+5BM2lVQjRrN2tDYUtaeGhkaERiQ2xmOVAzN3FhUlc0NjdCTENWTy9jb0wzeQpWbTUwZHdk
+ck50S3BNQmgzWnBiQjF1SnZnaTltWHR5Qk9NSjN2OFJaZUR6RmlHOEhkQ3RnOVJ2SXQvQU
+lGb0hSCkgzUytVNzlOVDZpMEtQekxJbURmczhUN1JscHl1TWM0VWZzOGdneWc5djNBZTZj
+TjNlUXl4Y0szdzBjYkJ3c2gKL25RTmZzQTZ1dSs5SDdOaGJlaEJNaFlucE5aeXJIekNten
+lYa2F1d1JBcW9DYkdDTnlrVFJ3c3VyOWdTNDFUUQpNOHNzRDFqRmhlT0pmM2hPRG5rS1Ur
+SEtqdk1ST2wxREs3emRtTGROekExY3Z0WkgvbkNDOUtQajF6OFFDNDdTCnh4K2RUWlN4NE
+9OQWh3YlMvTE4zUG9LdG44TFBqWTlOUDl1RFdJK1RXWXF1UzJVK0tIRHJCRGxzZ296RGJz
+L08KakN4Y3BEek5tWHBXUUhFdEhVNzY0OU9YSFA3VWVOU1QxbUNVQ0g1cWRhbmswVjFpZW
+pGNi9DZlRGVTRNZmNyRwpZVDkwcUZGOTNNM3YwMUJieFArRUlZMi85dGlJUGJyZAo9MFlZ
+aAotLS0tLUVORCBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCg==
+EOF
+
+ apt-key add /tmp/docker-apt-key.gpg
+ add-apt-repository -y \
+ "deb [arch=amd64] https://download.docker.com/linux/ubuntu $DISTRO stable"
# set up golang repo
# docs: https://github.com/golang/go/wiki/Ubuntu
- add-apt-repository ppa:longsleep/golang-backports
+ add-apt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1nUt1LRGu+rCe4bSaSmNbwKMQKkROE
+4kTiB72DPk7zH4Lm0uo0YFFWG4qsMIuqEihJ/9KNX8GYBr+tWgyLooLlsdK3l+4dVqd8cj
+kJM1ExABEBAAHNQEdvb2dsZSBDbG91ZCBQYWNrYWdlcyBBdXRvbWF0aWMgU2lnbmluZyBL
+ZXkgPGdjLXRlYW1AZ29vZ2xlLmNvbT7CwHgEEwECACwFAlrBaNsJEGoDCyG6B/T7AhsPBQ
+kFo5qABgsJCAcDAgYVCAIJCgsEFgIDAQAAJr4IAM5lgJ2CTkTRu2iw+tFwb90viLR6W0N1
+CiSPUwi1gjEKMr5r0aimBi6FXiHTuX7RIldSNynkypkZrNAmTMM8SU+sri7R68CFTpSgAv
+W8qlnlv2iwrEApd/UxxzjYaq8ANcpWAOpDsHeDGYLCEmXOhu8LmmpY4QqBuOCM40kuTDRd
+52PCJE6b0V1t5zUqdKeKZCPQPhsS/9rdYP9yEEGdsx0V/Vt3C8hjv4Uwgl8Fa3s/4ag6lg
+If+4SlkBAdfl/MTuXu/aOhAWQih444igB+rvFaDYIhYosVhCxP4EUAfGZk+qfo2mCY3w1p
+te31My+vVNceEZSUpMetSfwit3QA8EE=
EOF
- sudo apt-key add /tmp/k8s-apt-key.gpg
- echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
+ apt-key add /tmp/k8s-apt-key.gpg
+ add-apt-repository -y "deb http://apt.kubernetes.io/ kubernetes-xenial main"
# set up NodeJS repo
# Instructions: https://github.com/nodesource/distributions/blob/master/README.md#manual-installation
-
cat << EOF | base64 -d > /tmp/nodejs-apt-key.gpg
-LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tClZlcnNpb246IEdudVBHIHYxCkNvbW1lbnQ6IEdQR1Rvb2xzIC0gaHR0cHM6Ly9ncGd0b29scy5vcmcKCm1RSU5CRk9iSkxZQkVBRGtGVzhITWpzb1lSSlE0bkNZQy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Lb0wzOEVBeHNNemRZZ2tZ
+SDZUOWE0d0pIL0lQdCt1dUZURkZ5M284VEtNdkthSms5OCtKc3AyWC9RdU54aApxcGNJR2
+FWYnRRMWJuN20razVRZS9meitiRnVVZVhQaXZhZkxMbEdjNktiZGdNdlNXOUVWTU83eUJ5
+LzJKRTE1ClpKZ2w3bFhLTFEzMVZRUEFIVDNhbjVJVjJDL2llMTJlRXFaV2xuQ2lIVi93VC
+t6aE9rU3BXZHJoZVdmQlQrYWMKaFI0akRIODBBUzNGOGpvM2J5UUFUSmIzUm9DWVVDVmMz
+dTFvdWhOWmE1eUxnWVovaVprcGs1Z0tqeEhQdWRGYgpEZFdqYkdmbE45azE3VkNmNFo5eU
+FiOVFNcUh6SHdJR1hyYjdyeUZjdVJPTUNMTFZVcDA3UHJUclJ4bk85QS80Cnh4RUNpMGwv
+QnpOeGVVMWdLODhoRWFOaklmdmlQUi9oNkdxNktPY05LWjhyVkZkd0ZwamJ2d0hNUUJXaH
+JxZnUKRzNLYWVQdmJuT2JLSFhwZklLb0FNN1gycWZPK0lGbkxHVFB5aEZUY3JsNnZaQlRN
+WlRmWmlDMVhEUUx1R1VuZApzY2t1WElOSVUzREZXelpHcjBRcnFrdUUvanlyN0ZYZVVKaj
+lCN2NMbytzL1RYbytSYVZmaTNrT2M5Qm94SXZ5Ci9xaU5Hcy9US3kyL1VqcXAvYWZmbUlN
+b01YU296S21nYTgxSlN3a0FETzFKTWdVeTZkQXBYejlrUDRFRTNnPT0KPUNMR0YKLS0tLS
+1FTkQgUEdQIFBVQkxJQyBLRVkgQkxPQ0stLS0tLQo=
EOF
- sudo apt-key add /tmp/nodejs-apt-key.gpg
+ apt-key add /tmp/nodejs-apt-key.gpg
NODE_VERSION=node_7.x
- echo "deb https://deb.nodesource.com/$NODE_VERSION $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list
- echo "deb-src https://deb.nodesource.com/$NODE_VERSION $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list
+ add-apt-repository -y "deb [arch=amd64] https://deb.nodesource.com/$NODE_VERSION $DISTRO main"
# update after adding apt repos to sources
apt-get update
# install basic sofware requirements
apt-get install -y \
- "docker-ce=17.06*" \
+ "docker-ce=5:19.03*" \
apt-transport-https \
build-essential \
bzip2 \
@@ -95,10 +213,10 @@
graphviz \
jq \
kafkacat \
- "kubeadm=1.12.7-*" \
- "kubelet=1.12.7-*" \
- "kubectl=1.12.7-*" \
- "kubernetes-cni=0.7.5-*" \
+ "kubeadm=1.18*" \
+ "kubelet=1.18*" \
+ "kubectl=1.18*" \
+ "kubernetes-cni=0.8.7*" \
less \
libmysqlclient-dev \
libpcap-dev \
@@ -109,6 +227,7 @@
python-dev \
python-pip \
python3-dev \
+ python3-pip \
ruby \
screen \
socat \
@@ -126,36 +245,48 @@
python-ndg-httpsclient \
python-requests \
python-six \
- python-urllib3
+ python-urllib3 \
+ python3-chardet \
+ python3-requests \
+ python3-six \
+ python3-urllib3
- # install python modules
+ # install python3 modules
# upgrade pip or other installations may fail in unusual ways
- pip install --upgrade pip
- pip install \
- Jinja2 \
+ pip3 install --upgrade pip
+ pip3 install \
ansible \
ansible-lint \
- astroid==1.* \
+ docker \
+ docker-compose \
+ git-review \
+ httpie \
+ netaddr \
+ pylint \
+ tox \
+ twine \
+ virtualenv \
+ yamllint
+ # end of pip3 install list
+
+ # install python2 modules
+ # upgrade pip or other installations may fail in unusual ways
+ python -m pip install --upgrade pip
+ python -m pip install \
+ Jinja2 \
coverage \
certifi \
cryptography \
- docker-compose==1.20.1 \
- docker==3.2.1 \
- gitpython \
- git-review \
+ git+https://github.com/linkchecker/linkchecker.git@v9.4.0 \
graphviz \
grpcio-tools \
- httpie==0.9.* \
isort \
- git+https://github.com/linkchecker/linkchecker.git@v9.4.0 \
more-itertools==5.0.0 \
mock==2.0.* \
- netaddr \
ndg-httpsclient \
nose2==0.9.* \
pyopenssl \
pexpect \
- pylint==1.* \
pyyaml==3.10.* \
requests==2.14.* \
robotframework \
@@ -165,11 +296,7 @@
robotframework-requests \
robotframework-sshlibrary \
six \
- tox \
- twine==1.15.0 \
- urllib3 \
- virtualenv \
- yamllint
+ urllib3
# end of pip install list
# install ruby gems
@@ -182,7 +309,6 @@
gitbook-cli \
markdownlint \
typings
- # end of npm install list
# install golang packages in /usr/local/go
# Set PATH=$PATH:/usr/local/go/bin` to use these
@@ -217,29 +343,17 @@
go install ./protoc-gen-go
popd
- # install repo launcher v2.0
- REPO_B64_SHA256SUM="f34b0743ae46105df575f116fc6535a5d9db10c575e03e11e2932e2a8745061e"
- curl -o /tmp/repo.b64 'https://gerrit.googlesource.com/git-repo/+/refs/tags/v2.0/repo?format=TEXT'
+ # install repo launcher v2.9
+ REPO_B64_SHA256SUM="da4a14be94382f7ecdb22fef4f554eb0ffcf09a0d8c352667beae4a1794ad666"
+ curl -o /tmp/repo.b64 'https://gerrit.googlesource.com/git-repo/+/refs/tags/v2.9/repo?format=TEXT'
echo "$REPO_B64_SHA256SUM /tmp/repo.b64" | sha256sum -c -
base64 --decode /tmp/repo.b64 > /tmp/repo
mv /tmp/repo /usr/local/bin/repo
chmod a+x /usr/local/bin/repo
- # install sonarqube scanner
- # dl link: https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner
- SONAR_SCANNER_CLI_VERSION="3.2.0.1227"
- SONAR_SCANNER_CLI_SHA256SUM="07a50ec270a36cb83f26fe93233819c53c145248c638f4591880f1bd36e331d6"
- curl -L -o /tmp/sonarscanner.zip "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_CLI_VERSION}-linux.zip"
- echo "$SONAR_SCANNER_CLI_SHA256SUM /tmp/sonarscanner.zip" | sha256sum -c -
- pushd /opt
- unzip /tmp/sonarscanner.zip
- mv sonar-scanner-${SONAR_SCANNER_CLI_VERSION}-linux sonar-scanner
- rm -f /tmp/sonarscanner.zip
- popd
-
# install helm
- HELM_VERSION="2.14.2"
- HELM_SHA256SUM="9f50e69cf5cfa7268b28686728ad0227507a169e52bf59c99ada872ddd9679f0"
+ HELM_VERSION="2.16.10"
+ HELM_SHA256SUM="65a4857611a4e65b255ec192cbdb34d47212f041260f81a1039c05a8bb9ea041"
HELM_PLATFORM="linux-amd64"
curl -L -o /tmp/helm.tgz "https://storage.googleapis.com/kubernetes-helm/helm-v${HELM_VERSION}-${HELM_PLATFORM}.tar.gz"
echo "$HELM_SHA256SUM /tmp/helm.tgz" | sha256sum -c -
@@ -251,10 +365,9 @@
popd
# install minikube
- MINIKUBE_VERSION="0.30.0"
- MINIKUBE_DEB_VERSION="$(echo ${MINIKUBE_VERSION} | sed -n 's/\(.*\)\.\(.*\)/\1-\2/p')"
- MINIKUBE_SHA256SUM="c6c5aa5956f8ad5f61d426e9b8601ba95965a9c30bb80a9fe7525c64e6dd12fd"
- curl -L -o /tmp/minikube.deb "https://storage.googleapis.com/minikube/releases/v${MINIKUBE_VERSION}/minikube_${MINIKUBE_DEB_VERSION}.deb"
+ MINIKUBE_VERSION="1.13.1"
+ MINIKUBE_SHA256SUM="ac6cd65568f1fdab13207aaed3903037b07bd660a7d0eb4331a2a4198890de39"
+ curl -L -o /tmp/minikube.deb "https://github.com/kubernetes/minikube/releases/download/v${MINIKUBE_VERSION}/minikube_${MINIKUBE_VERSION}-0_amd64.deb"
echo "$MINIKUBE_SHA256SUM /tmp/minikube.deb" | sha256sum -c -
pushd /tmp
dpkg -i minikube.deb
@@ -274,31 +387,31 @@
chmod -R a+rX /usr/local/include/
# give sudo permissions on minikube and protoc to jenkins user
- cat <<EOF >/etc/sudoers.d/88-jenkins-minikube-protoc
+ cat << EOF > /etc/sudoers.d/88-jenkins-minikube-protoc
Cmnd_Alias CMDS = /usr/local/bin/protoc, /usr/bin/minikube
Defaults:jenkins !requiretty
jenkins ALL=(ALL) NOPASSWD:SETENV: CMDS
EOF
# install hadolint (Dockerfile checker)
- HADOLINT_VERSION="1.17.1"
- HADOLINT_SHA256SUM="2f8f3bf120e9766e6e79f7a86fed8ede55ebbf2042175b68a7c899a74eabbf34"
+ HADOLINT_VERSION="1.18.0"
+ HADOLINT_SHA256SUM="f9bc9de12438b463ca84e77fde70b07b155d4da07ca21bc3f4354a62c6199db4"
curl -L -o /tmp/hadolint https://github.com/hadolint/hadolint/releases/download/v${HADOLINT_VERSION}/hadolint-Linux-x86_64
echo "$HADOLINT_SHA256SUM /tmp/hadolint" | sha256sum -c -
mv /tmp/hadolint /usr/local/bin/hadolint
chmod -R a+rx /usr/local/bin/hadolint
# install pandoc (document converter)
- PANDOC_VERSION="2.8.0.1"
- PANDOC_SHA256SUM="81cca90353dced1e285888b73f2bee55ed388d34b6b0624d76a2eba2344eaba9"
+ PANDOC_VERSION="2.10.1"
+ PANDOC_SHA256SUM="4515d6fe2bf8b82765d8dfa1e1b63ccb0ff3332d60389f948672eaa37932e936"
curl -L -o /tmp/pandoc.deb "https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-1-amd64.deb"
echo "$PANDOC_SHA256SUM /tmp/pandoc.deb" | sha256sum -c -
dpkg -i /tmp/pandoc.deb
rm -f /tmp/pandoc.deb
# install yq (YAML query)
- YQ_VERSION="3.3.0"
- YQ_SHA256SUM="e70e482e7ddb9cf83b52f5e83b694a19e3aaf36acf6b82512cbe66e41d569201"
+ YQ_VERSION="3.4.0"
+ YQ_SHA256SUM="f6bd1536a743ab170b35c94ed4c7c4479763356bd543af5d391122f4af852460"
curl -L -o /tmp/yq https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64
echo "$YQ_SHA256SUM /tmp/yq" | sha256sum -c -
mv /tmp/yq /usr/local/bin/yq
diff --git a/packer/provision/baseline.sh b/packer/provision/baseline.sh
index 251cceb..34ed79f 100644
--- a/packer/provision/baseline.sh
+++ b/packer/provision/baseline.sh
@@ -272,65 +272,49 @@
echo "---> Configuring Corretto JDK Distribution"
# instructions: https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/generic-linux-install.html
# install prereqs
- apt-get install java-common
- # install Java8
- CORRETTO_JAVA8_VERSION="8.222.10-1"
- CORRETTO_JAVA8_SHA256SUM="e5fd6c6f2d1a1fc5e6926f7a543e67ad0f0e0389ddc5d2deb5890bdeb21ea445"
- curl -L -o /tmp/corretto_java8.deb "https://d3pxv6yz143wms.cloudfront.net/$(echo $CORRETTO_JAVA8_VERSION | tr - .)/java-1.8.0-amazon-corretto-jdk_${CORRETTO_JAVA8_VERSION}_amd64.deb"
- echo "$CORRETTO_JAVA8_SHA256SUM /tmp/corretto_java8.deb" | sha256sum -c -
- dpkg -i /tmp/corretto_java8.deb
-
- # install Java11
- CORRETTO_JAVA11_VERSION="11.0.4.11-1"
- CORRETTO_JAVA11_SHA256SUM="f47c77f8f9ee5a80804765236c11dc749d351d3b8f57186c6e6b58a6c4019d3e"
- curl -L -o /tmp/corretto_java11.deb "https://d3pxv6yz143wms.cloudfront.net/$(echo $CORRETTO_JAVA11_VERSION | tr - .)/java-11-amazon-corretto-jdk_${CORRETTO_JAVA11_VERSION}_amd64.deb"
- echo "$CORRETTO_JAVA11_SHA256SUM /tmp/corretto_java11.deb" | sha256sum -c -
- dpkg -i /tmp/corretto_java11.deb
-
- # Fix corretto 11 lack of jinfo that prevents update-java-alternatives from working
- # Upstream fix not integrated yet: https://github.com/corretto/corretto-11/pull/27
- cat <<EOF >/usr/lib/jvm/.java-11-amazon-corretto.jinfo
-name=java-11-amazon-corretto
-alias=java-11-amazon-corretto
-priority=11100002
-section=main
-
-jdk java /usr/lib/jvm/java-11-amazon-corretto/bin/java
-jdk keytool /usr/lib/jvm/java-11-amazon-corretto/bin/keytool
-jdk rmid /usr/lib/jvm/java-11-amazon-corretto/bin/rmid
-jdk rmiregistry /usr/lib/jvm/java-11-amazon-corretto/bin/rmiregistry
-jdk jjs /usr/lib/jvm/java-11-amazon-corretto/bin/jjs
-jdk pack200 /usr/lib/jvm/java-11-amazon-corretto/bin/pack200
-jdk unpack200 /usr/lib/jvm/java-11-amazon-corretto/bin/unpack200
-jdk javac /usr/lib/jvm/java-11-amazon-corretto/bin/javac
-jdk jaotc /usr/lib/jvm/java-11-amazon-corretto/bin/jaotc
-jdk jlink /usr/lib/jvm/java-11-amazon-corretto/bin/jlink
-jdk jmod /usr/lib/jvm/java-11-amazon-corretto/bin/jmod
-jdk jhsdb /usr/lib/jvm/java-11-amazon-corretto/bin/jhsdb
-jdk jar /usr/lib/jvm/java-11-amazon-corretto/bin/jar
-jdk jarsigner /usr/lib/jvm/java-11-amazon-corretto/bin/jarsigner
-jdk javadoc /usr/lib/jvm/java-11-amazon-corretto/bin/javadoc
-jdk javap /usr/lib/jvm/java-11-amazon-corretto/bin/javap
-jdk jcmd /usr/lib/jvm/java-11-amazon-corretto/bin/jcmd
-jdk jconsole /usr/lib/jvm/java-11-amazon-corretto/bin/jconsole
-jdk jdb /usr/lib/jvm/java-11-amazon-corretto/bin/jdb
-jdk jdeps /usr/lib/jvm/java-11-amazon-corretto/bin/jdeps
-jdk jdeprscan /usr/lib/jvm/java-11-amazon-corretto/bin/jdeprscan
-jdk jimage /usr/lib/jvm/java-11-amazon-corretto/bin/jimage
-jdk jinfo /usr/lib/jvm/java-11-amazon-corretto/bin/jinfo
-jdk jmap /usr/lib/jvm/java-11-amazon-corretto/bin/jmap
-jdk jps /usr/lib/jvm/java-11-amazon-corretto/bin/jps
-jdk jrunscript /usr/lib/jvm/java-11-amazon-corretto/bin/jrunscript
-jdk jshell /usr/lib/jvm/java-11-amazon-corretto/bin/jshell
-jdk jstack /usr/lib/jvm/java-11-amazon-corretto/bin/jstack
-jdk jstat /usr/lib/jvm/java-11-amazon-corretto/bin/jstat
-jdk jstatd /usr/lib/jvm/java-11-amazon-corretto/bin/jstatd
-jdk rmic /usr/lib/jvm/java-11-amazon-corretto/bin/rmic
-jdk serialver /usr/lib/jvm/java-11-amazon-corretto/bin/serialver
-
+ cat << EOF | base64 -d > /tmp/corretto-apt-key.gpg
+LS0tLS1CRUdJTiBQR1AgUFVCTElDI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Qkt6TEdjdlVGWHJVS3ZwSlFsaApkTlBVUWgr
+d2I5MUV6SXRqa0o5Nm0rTis4MWlRZE4zeWQ4Y0UzOE5UQThiK1FjN3RtVFl4d05aeGN2MT
+ZGeExBCnkyVmhLYzA5QThSd1NJNjl2RHM9Cj1aTlJICi0tLS0tRU5EIFBHUCBQVUJMSUMg
+S0VZIEJMT0NLLS0tLS0K
EOF
+ apt-key add /tmp/corretto-apt-key.gpg
+ add-apt-repository -y 'deb https://apt.corretto.aws stable main'
+ apt-get update
+
+ apt-get install -y java-1.8.0-amazon-corretto-jdk java-11-amazon-corretto-jdk
+
# Set default version to be Java8
update-java-alternatives --set java-1.8.0-amazon-corretto