Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add variant with OpenJDK 11 and Alpine. #121

Closed
wants to merge 1 commit into from
Closed

Add variant with OpenJDK 11 and Alpine. #121

wants to merge 1 commit into from

Conversation

reitzig
Copy link

@reitzig reitzig commented Aug 20, 2019

Another attempt at providing a JDK 11 + Alpine image, this one using only official stuff.

cf. #120

@carlossg
Copy link
Owner

I'm not sure this should be added given the direction the upstream openjdk base image took
See docker-library/openjdk#322

@reitzig
Copy link
Author

reitzig commented Aug 20, 2019

I can't say I can follow all those discussions in detail, but it seems to me that this here approach avoids musl (?) and seems ratified by the Alpine maintainers at least (since OpenJDK 11 is taken from the main repos).

The main part of the post you link seems to have happened before Alpine 3.10, which was when OpenJDK was re-introduced to the repos.

@reitzig
Copy link
Author

reitzig commented Aug 20, 2019

For that matter, why not just use the APK maven package?

@reitzig
Copy link
Author

reitzig commented Aug 20, 2019

Indeed, this does what we need:

FROM alpine:3.10

RUN apk update \
 && apk add --no-cache \
        openjdk11-jdk=11.0.4_p4-r1 \
        gcompat=0.4.0-r0 \
        maven=3.6.1-r0

@carlossg carlossg closed this Mar 22, 2020
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