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

CLOUD-2869 add support for building jdk 11 based images #306

Merged
merged 1 commit into from Oct 30, 2018

Conversation

rcernich
Copy link
Contributor

@rcernich rcernich commented Oct 6, 2018

Signed-off-by: rcernich rcernich@redhat.com

Thanks for submitting your Pull Request!

Please make sure your PR meets following requirements:

  • Pull Request title is properly formatted: [CLOUD-XYA] Subject
  • Pull Request contains link to the JIRA issue
  • Pull Request contains description of the issue
  • Pull request does not include fixes for other issues than the main ticket
  • Attached commits represent unit of work and are properly formatted
  • You have read and agreed to the Developer Certificate of Origin (DCO) (see CONTRIBUTING.md)
  • Every commit contains Signed-off-by: Your Name <yourname@redhat.com> - use git commit -s

Signed-off-by: rcernich <rcernich@redhat.com>

# As of rhel 7.6, rh-maven35 pulls in jdk8, so we need to remove them

if [ -n "$(yum list installed java-1.8.0-openjdk-devel |grep java-1.8.0-openjdk-devel)" ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

if rpm -q --quiet java-1.8.0-openjdk-devel; then

would be faster and not require a network round-trip (yum list... might cause a metadata refresh)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @jmtd, I'll update the check. Yesterday I was thinking about skipping it entirely and just doing something like, yum remove ... || echo "Java 8 not installed".

@rcernich rcernich merged commit 7a161dd into jboss-openshift:master Oct 30, 2018
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.

None yet

2 participants