-
-
Notifications
You must be signed in to change notification settings - Fork 232
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 Java 17 Alpine #222
Add Java 17 Alpine #222
Conversation
RUN jlink \ | ||
--module-path /usr/lib/jvm/default-jvm/jmods \ | ||
--add-modules ALL-MODULE-PATH \ | ||
--strip-java-debug-attributes \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alpine jdk11 used --strip-debug
, which caused the following error with jdk17
Error: java.io.IOException: Cannot run program "objcopy": error=2, No such file or directory
So replaced --strip-debug
with --strip-java-debug-attributes
as described here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah we hit that somewhere else too
docker-bake.hcl
Outdated
"${REGISTRY}/${JENKINS_REPO}:alpine-jdk17", | ||
"${REGISTRY}/${JENKINS_REPO}:latest-alpine-jdk17", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you include preview in the tag like debian as we don't officially support it yet.
"${REGISTRY}/${JENKINS_REPO}:alpine-jdk17", | |
"${REGISTRY}/${JENKINS_REPO}:latest-alpine-jdk17", | |
"${REGISTRY}/${JENKINS_REPO}:alpine-jdk17-preview", | |
"${REGISTRY}/${JENKINS_REPO}:latest-alpine-jdk17-preview", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional change of comment suggested, though it can also be done as a later step in another pull request that changes all the Dockerfile's with that comment.
17/alpine/Dockerfile
Outdated
|
||
RUN addgroup -g ${gid} ${group} | ||
RUN adduser -h /home/${user} -u ${uid} -G ${group} -D ${user} | ||
LABEL Description="This is a base image, which provides the Jenkins agent executable (slave.jar)" Vendor="Jenkins project" Version="${VERSION}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that it is now named agent.jar, isn't it?
LABEL Description="This is a base image, which provides the Jenkins agent executable (slave.jar)" Vendor="Jenkins project" Version="${VERSION}" | |
LABEL Description="This is a base image, which provides the Jenkins agent executable (agent.jar)" Vendor="Jenkins project" Version="${VERSION}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
adding jdk17 for alpine
tests performed locally
make test-alpine_jdk17
Fixes #221