Skip to content

Commit 6eb22ea

Browse files
author
Fran Tsao
committed
#153 added Debian Bullseye support to Corretto and AdoptOpenJDK
1 parent 087f2cd commit 6eb22ea

File tree

5 files changed

+38
-2
lines changed

5 files changed

+38
-2
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ env:
3939
- DOCKER_IMAGE_BASE=centos:7 JDK_MAJOR=11 JDK_VERSION=11.0.12.0.7 DOCKER_TAG_TO_PUBLISH=11.0.12.0.7-centos7-openjdk-headless
4040
- DOCKER_IMAGE_BASE=centos:8 JDK_MAJOR=11 JDK_VERSION=11.0.12.0.7 DOCKER_TAG_TO_PUBLISH=11.0.12.0.7-centos8-openjdk-headless
4141
# adoptopenjdk
42+
- DOCKER_IMAGE_BASE=debian:bullseye-slim JDK_VENDOR=adoptopenjdk JDK_MAJOR=8 JDK_VERSION=8u292-b10-3 DOCKER_TAG_TO_PUBLISH=8u292-bullseye-adoptopenjdk-headless
4243
- DOCKER_IMAGE_BASE=debian:buster-slim JDK_VENDOR=adoptopenjdk JDK_MAJOR=8 JDK_VERSION=8u292-b10-3 DOCKER_TAG_TO_PUBLISH=8u292-buster-adoptopenjdk-headless
4344
- DOCKER_IMAGE_BASE=centos:8 JDK_VENDOR=adoptopenjdk JDK_MAJOR=8 JDK_VERSION=8u292_b10 DOCKER_TAG_TO_PUBLISH=8u292-centos8-adoptopenjdk-headless
4445
# corretto
46+
- DOCKER_IMAGE_BASE=debian:bullseye-slim JDK_VENDOR=corretto JDK_MAJOR=1.8.0 JDK_VERSION=1:8.302.08-1 DOCKER_TAG_TO_PUBLISH=8u302-bullseye-corretto-headless
4547
- DOCKER_IMAGE_BASE=debian:buster-slim JDK_VENDOR=corretto JDK_MAJOR=1.8.0 JDK_VERSION=1:8.302.08-1 DOCKER_TAG_TO_PUBLISH=8u302-buster-corretto-headless
4648
- DOCKER_IMAGE_BASE=centos:8 JDK_VENDOR=corretto JDK_MAJOR=1.8.0 JDK_VERSION=1.8.0_302.b08 DOCKER_TAG_TO_PUBLISH=8u302-centos8-corretto-headless
4749
script:

molecule/adoptopenjdk/Dockerfile.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FROM {{ item.image }}
88

99
RUN mkdir -p /usr/share/man/man1
1010

11-
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
11+
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y python3 sudo bash ca-certificates && apt-get clean; \
1212
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python36 sudo python3-dnf bash && dnf clean all; \
1313
elif [ $(command -v yum) ]; then yum makecache fast && yum update -y && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
1414
elif [ $(command -v zypper) ]; then zypper refresh && zypper update -y && zypper install -y python sudo bash python-xml && zypper clean -a; \

molecule/corretto/Dockerfile.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FROM {{ item.image }}
88

99
RUN mkdir -p /usr/share/man/man1
1010

11-
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
11+
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y python3 sudo bash ca-certificates && apt-get clean; \
1212
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python36 sudo python3-dnf bash && dnf clean all; \
1313
elif [ $(command -v yum) ]; then yum makecache fast && yum update -y && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
1414
elif [ $(command -v zypper) ]; then zypper refresh && zypper update -y && zypper install -y python sudo bash python-xml && zypper clean -a; \

vars/adoptopenjdk/Debian-11.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
java_open_jdk_apt_extra_packages:
3+
- python3-apt
4+
- apt-transport-https
5+
- gnupg2
6+
__java_open_jdk_version_major: 8
7+
# Supported major releases: 8 and from 11 to 14; hotspot and openj9 implementations
8+
9+
# For Debian family
10+
__java_required_libs_openjdk: []
11+
__java_required_repositories_openjdk:
12+
- deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ {{ ansible_distribution_release }} main
13+
__java_open_jdk_home_dir: adoptopenjdk-{{ java_open_jdk_version_major }}-hotspot-amd64
14+
15+
__java_required_key_repositories_openjdk:
16+
- https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public
17+
__java_open_jdk_package: adoptopenjdk-{{ java_open_jdk_version_major }}-hotspot

vars/corretto/Debian-11.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
java_open_jdk_apt_extra_packages:
3+
- python3-apt
4+
- apt-transport-https
5+
- gnupg2
6+
7+
__java_open_jdk_version_major: 1.8.0
8+
# Supported versions: 8 (1.8.0L), 11
9+
10+
__java_required_repositories_openjdk:
11+
- deb https://apt.corretto.aws stable main
12+
__java_required_key_repositories_openjdk:
13+
- https://apt.corretto.aws/corretto.key
14+
__java_required_libs_openjdk: []
15+
__java_open_jdk_package: java-{{ java_open_jdk_version_major }}-amazon-corretto-jdk
16+
17+
__java_open_jdk_home_dir: java-{{ java_open_jdk_version_major }}-amazon-corretto

0 commit comments

Comments
 (0)