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-2868] Preparations for OpenJDK 11 / RHEL8 / UBI image #335

Merged
merged 9 commits into from May 1, 2019

Conversation

jmtd
Copy link
Collaborator

@jmtd jmtd commented Apr 10, 2019

jmtd and others added 6 commits March 5, 2019 19:08
Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
not available on RHEL8, but we aren't using it on RHEL7 anyway

Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
The module jboss.container.maven.s2i.bash depends upon the script
/opt/jboss/container/maven/35/scl-enable-maven provided in module
jboss.container.maven.35scl but does not depend upon that module.
Therefore make sourcing that script conditional upon it existing.

Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
The module name "jboss.container.maven.35.bash" is now provided by two
modules, at jboss/container/maven/35/{default,35}. The default one is
the older SCL-based one that is in use by many images. The '35/' path
is a simpler one for when the maven package is available without SCL,
simply as "maven".

For the OpenJDK image at least, we can force the use of the newer module
by depending upon it in an overrides file and setting the version
requirement accordingly. By default, the "default" module *appears* to
be chosen by Cekit's module resolver, so the older images get the right
one automatically. If this was found to not be true in some
circumstances the old module could be forced using the same technique
as the new one.

Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
Repositories should be defined on image level.
This was implicit and only came to light when exploring ubi8-minimal,
which doesn't have it installed by default. (Thanks Ken Wills)

Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
@jmtd jmtd added this to the sprint-34 milestone Apr 10, 2019
@jmtd
Copy link
Collaborator Author

jmtd commented Apr 10, 2019

For existing images, this should effectively be a no-op, but we need to determine whether this causes build problems for them, with either the latest released version of Cekit or with the develop branch (or both)

@jmtd jmtd closed this Apr 10, 2019
@jmtd jmtd reopened this Apr 10, 2019
jmtd added a commit to jmtd/redhat-openjdk-container-images that referenced this pull request Apr 11, 2019
https://issues.jboss.org/browse/CLOUD-2868

This depends upon the following changes made to cct_module:

jboss-openshift/cct_module#335

Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
luck3y and others added 2 commits April 11, 2019 10:58
Based on the corresponding script from the 35scl package

Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
luck3y
luck3y previously approved these changes Apr 16, 2019
Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
@jmtd jmtd changed the title WIP [CLOUD-2868] Preparations for OpenJDK 11 / RHEL8 / UBI image [CLOUD-2868] Preparations for OpenJDK 11 / RHEL8 / UBI image May 1, 2019
@jmtd jmtd merged commit 465a922 into jboss-openshift:master May 1, 2019
@jmtd jmtd deleted the rhel82k19 branch May 1, 2019 14:25
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

3 participants