Skip to content

Commit fc37478

Browse files
authored
Merge pull request #14 from Dwolla/updates
Update Java 11 and add support for additional LTS versions 17 and 21
2 parents f6fab45 + ae62b09 commit fc37478

3 files changed

Lines changed: 18 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ jobs:
1212
strategy:
1313
matrix:
1414
temurin_tag:
15-
- 11.0.21_9-jre
16-
- 11.0.21_9-jdk
15+
- 11.0.27_6-jre
16+
- 11.0.27_6-jdk
17+
- 17.0.15_6-jre
18+
- 17.0.15_6-jdk
19+
- 21.0.7_6-jre
20+
- 21.0.7_6-jdk
21+
1722
runs-on: ubuntu-latest
1823
steps:
1924
- name: Checkout
@@ -35,4 +40,4 @@ jobs:
3540
needs: build
3641
runs-on: ubuntu-latest
3742
steps:
38-
- run: echo "The build completed successfully"
43+
- run: echo "The build completed successfully"

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ ARG TEMURIN_TAG
22

33
FROM eclipse-temurin:$TEMURIN_TAG
44

5-
MAINTAINER Dwolla Engineering <dev+docker@dwolla.com>
5+
LABEL maintainer="Dwolla Engineering <dev+docker@dwolla.com>"
66
LABEL org.label-schema.vcs-url="https://github.com/Dwolla/docker-java"
77

8-
RUN if [ -f "$JAVA_HOME/jre/lib/security/java.security" ] ; then \
8+
RUN set -e; \
9+
if [ -f "$JAVA_HOME/jre/lib/security/java.security" ] ; then \
910
SECURITY_FILE_PATH=$JAVA_HOME/jre/lib/security/java.security ; \
1011
elif [ -f "$JAVA_HOME/lib/security/java.security" ] ; then \
1112
SECURITY_FILE_PATH=$JAVA_HOME/lib/security/java.security ; \
@@ -16,8 +17,10 @@ RUN if [ -f "$JAVA_HOME/jre/lib/security/java.security" ] ; then \
1617
exit 98 ; \
1718
fi && \
1819
apt-get update && \
19-
apt-get install -y bash && \
20-
apt-get install -y netcat && \
20+
apt-get install -y \
21+
bash \
22+
netcat-traditional \
23+
&& \
2124
sed -i s_#networkaddress.cache.ttl=-1_networkaddress.cache.ttl=60_ $SECURITY_FILE_PATH && \
2225
sed -i s_securerandom.source=file:/dev/random_securerandom.source=file:/dev/./urandom_ $SECURITY_FILE_PATH && \
2326
apt-get clean && \

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
TEMURIN_TAGS := 8u322-b06-jdk 11.0.14.1_1-jdk 8u322-b06-jre 11.0.14.1_1-jre
1+
# this makefile requires yq be installed! brew install yq
2+
TEMURIN_TAGS := $(shell yq -r '.jobs.build.strategy.matrix.temurin_tag | .[]' .github/workflows/ci.yml | tr '\n' ' ')
23
JOBS := $(addprefix temurin-,${TEMURIN_TAGS})
34
CHECKS := $(addprefix check-,${TEMURIN_TAGS})
45
CLEAN := $(addprefix clean-,${TEMURIN_TAGS})
@@ -18,4 +19,4 @@ ${CHECKS}: check-%:
1819
grep --silent "^ - $*$$" .github/workflows/ci.yml
1920

2021
${CLEAN}: clean-%:
21-
docker rmi dwolla/docker-java:$*-SNAPSHOT --force
22+
docker rmi dwolla/docker-java:$*-SNAPSHOT --force

0 commit comments

Comments
 (0)