Skip to content

build multi-arch java base docker images on gha#6

Merged
staskolauren merged 2 commits into
mainfrom
PLT-74
Apr 21, 2022
Merged

build multi-arch java base docker images on gha#6
staskolauren merged 2 commits into
mainfrom
PLT-74

Conversation

@staskolauren
Copy link
Copy Markdown
Contributor

  • builds jdk (java version 8 and 11) and jre (java version 8 and 11) in parallel with specific upstream images from eclipse-temurin (i.e. now uses 8u322-b06-jre instead of 8-jre)
  • stop publishing linux variants such as alpine/ubuntu/etc. and use eclipse-temurin as baseline instead
  • _Note: I think we could consolidate the jdk and jre Dockerfiles into one Dockerfile, but wanted to get feedback before heading in that direction since it would be a bit of an overhaul 😅 . _

git add everything

build jdk and jre in parallel

.github

add shell

skip make check

spell TEMURIN tag

interpolate images

add arg to dockerfile

add subdir to git context

singular image

conditional java.security paths for java 11

cleanup
Comment thread jdk/Dockerfile
MAINTAINER Dwolla Engineering <dev+docker@dwolla.com>
LABEL org.label-schema.vcs-url="https://github.com/Dwolla/docker-java"

RUN if [ "$TEMURIN_TAG" = "8u322-b06-jdk" ] ; then \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is clever! How difficult would it be to have it check whether "$TEMURIN_TAG" starts with 8u instead of doing a full string match, so we don't have to worry about updating this whenever the tag is updated?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea!

Comment thread Makefile Outdated
Comment thread Makefile Outdated

name: Build
description: Build and push docker images with Docker Buildx
inputs:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parameterization is awesome, nice work!

Comment thread .github/actions/build/action.yml Outdated
@staskolauren
Copy link
Copy Markdown
Contributor Author

After some discussion with @bpholt -I refactored this PR to use one dockerfile, because we are performing the same ops on JDK/JRE images. That way we do not have to maintain separate dockerfiles for JDK vs JRE (unless we need to break them out again later).

Copy link
Copy Markdown
Member

@bpholt bpholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to see a couple tweaks to the Makefile, but overall it's looking pretty good!

Comment thread Makefile Outdated
Comment thread Makefile Outdated
Comment thread Makefile Outdated
make check

bash shell

indentation

Makefile updates
@staskolauren
Copy link
Copy Markdown
Contributor Author

Thank you for the re-review @bpholt ! 🙏 I make those Makefile updates you suggested, so I think this is ready for re-review round three!

Copy link
Copy Markdown
Member

@bpholt bpholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@staskolauren staskolauren merged commit 4cb6f14 into main Apr 21, 2022
@bpholt bpholt deleted the PLT-74 branch April 21, 2022 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants