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

Prefer Liberty SCC to OpenJ9 SCC #360

Merged
merged 1 commit into from
Oct 6, 2020
Merged

Conversation

ymanton
Copy link
Contributor

@ymanton ymanton commented Oct 5, 2020

Note: This fix corresponds to a similar one in Open Liberty: OpenLiberty/ci.docker#204.

On some systems trying to use the OpenJ9 SCC leads to
permission denied errors, despite file permissions being
observably correct.

For the time being we'll ignore the OpenJ9 SCC and
continue to build our own SCC layers. In order to do this
we switch to setting/using the OPENJ9_JAVA_OPTIONS
env var in order to override the OpenJ9 image and move
away from IBM_JAVA_OPTIONS, which is deprecated anyway.

Signed-off-by: Younes Manton [email protected]

On some systems trying to use the OpenJ9 SCC leads to
permission denied errors, despite file permissions being
observably correct.

For the time being we'll ignore the OpenJ9 SCC and
continue to build our own SCC layers. In order to do this
we switch to setting/using the OPENJ9_JAVA_OPTIONS
env var in order to override the OpenJ9 image and move
away from IBM_JAVA_OPTIONS, which is deprecated anyway.

Signed-off-by: Younes Manton <[email protected]>
@leochr
Copy link
Member

leochr commented Oct 5, 2020

@ymanton Noticed that the WL change has this line, while OL PR doesn't. Is that intentional? If so, wondering what's the reason for it. Thanks.

export IBM_JAVA_OPTIONS="${OPENJ9_JAVA_OPTIONS}"

Copy link
Contributor

@arthurdm arthurdm left a comment

Choose a reason for hiding this comment

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

thanks @ymanton - LGTM

@arthurdm arthurdm merged commit 0028b0e into WASdev:master Oct 6, 2020
@arthurdm
Copy link
Contributor

arthurdm commented Oct 6, 2020

sorry @leochr - I didn't see your comment before I started to review. Let me know if you think this should be reopened.

@leochr
Copy link
Member

leochr commented Oct 6, 2020

No worries Arthur.

Checked with Younes regarding the above comment about IBM_JAVA_OPTIONS and confirmed there isn't anything else needed for OL/WL:
"That env var is deprecated and we should stop using it, but the WL Docker files are still built and tested against IBM JDK so I kept it set. The OL Docker files are not tested against IBM JDK so there wasn't any reason to keep it set there."

Thank you @ymanton for the fix!

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.

3 participants