-
Notifications
You must be signed in to change notification settings - Fork 67
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
Adding docker image templates #175
base: main
Are you sure you want to change the base?
Conversation
How did you test that all of the docker files are updated correctly? |
&& yum clean all | ||
|
||
ENV LANG C.UTF-8 | ||
ENV JAVA_HOME=/usr/lib/jvm/java-{{MAJOR_VERSION}}-amazon-corretto |
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.
Think when it is JDK8 you need to use 1.8.0 for the java_home and not just the major_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.
right I will fix it
templates/al2023.Dockerfile.template
Outdated
&& CORRETO_TEMP=$(mktemp -d) \ | ||
&& pushd ${CORRETO_TEMP} \ | ||
{% if jre %} | ||
&& RPM_LIST=("java-{{JDK_VERSION}}-amazon-corretto-$version.amzn2.$(uname -m).rpm") \ |
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 think it would simplify the code if you eliminate JDK_VERSION and just set MAJOR_VERSION to 1.8.0 when its 8. Is that possible or are those values too overloaded?
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 can try that and see if everything builds correctly
verify_update func checks the updated images count, update: verified manually docker images build as expected (to the images currently in repo) |
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.
Please run apply-templace and include any changes to generated Dockerfiles.
Issue #, if available:
Description of changes:
Currently docker image template is available for alpine only
creating similar templates for the following platforms,
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.