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

Add devfile for the Vert.x Java Stack with runtime ubi8/openjdk-11 image #295

Merged
merged 4 commits into from
Feb 13, 2024

Conversation

RomanNikitenko
Copy link
Contributor

@RomanNikitenko RomanNikitenko commented Feb 12, 2024

What does this PR do?:

At the moment quay.io/eclipse/che-java11-maven:7.37.2 is used as a runtime image for the Vert.x Java Stack.
The image was not updated about 2 years: https://quay.io/repository/eclipse/che-java11-maven?tab=tags.
Also, it's not possible to start Che-Code using that image - starting a workspace fails with the error: /checode/checode-linux-libc/node: error while loading shared libraries: libbrotlidec.so.1: cannot open shared object file: No such file or directory.

I propose to add a new version of the devfile with the runtime image registry.access.redhat.com/ubi8/openjdk-11:1.18-2.

Which issue(s) this PR fixes:

eclipse-che/che#22785
eclipse-che/che#22525

PR acceptance criteria:

  • Contributing guide
    Have you read the devfile registry contributing guide and followed its instructions?
  • Test automation
    Does this repository's tests pass with your changes?
  • Documentation
    Does any documentation need to be updated with your changes?
  • Check Tools Provider
    Have you tested the changes with existing tools, i.e. Odo, Che, Console? (See devfile registry contributing guide on how to test changes)

How to test changes / Special notes to the reviewer:

Copy link

openshift-ci bot commented Feb 12, 2024

Hi @RomanNikitenko. Thanks for your PR.

I'm waiting for a devfile member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Contributor

@thepetk thepetk left a comment

Choose a reason for hiding this comment

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

I think a better approach could be here to create a new version of the vert.x stack. We can take as an example the java-wildfly stack. WDYT?

@thepetk
Copy link
Contributor

thepetk commented Feb 12, 2024

/ok-to-test

@openshift-ci openshift-ci bot added the lgtm Looks good to me label Feb 12, 2024
Copy link
Member

@michael-valdron michael-valdron left a comment

Choose a reason for hiding this comment

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

I think a better approach could be here to create a new version of the vert.x stack. We can take as an example the java-wildfly stack. WDYT?

+1

@RomanNikitenko
Copy link
Contributor Author

RomanNikitenko commented Feb 12, 2024

I think a better approach could be here to create a new version of the vert.x stack. We can take as an example the java-wildfly stack. WDYT?

thank you for the quick feedback!

I'm going to provide the corresponding changes, but first I would like to confirm that I understand correctly what I should to do:

  • create folder 1.2.0 and move the current devfile without my changes to that folder (it has 1.2.0 version)
  • create folder 1.3.0 and place the devfile with my changes in that folder?
  • provide stack.yaml, 1.3.0 is default?

thanks in advance!

@michael-valdron
Copy link
Member

I'm going to provide the corresponding changes, but first I would like to confirm that I understand correctly what I should to do:

  • create folder 1.2.0 and move the current devfile without my changes to that folder (it has 1.2.0 version)
  • create folder 1.3.0 and place the devfile with my changes in that folder?
  • provide stack.yaml, 1.3.0 is default?

@RomanNikitenko These are the correct changes 👍

Additionally, with the versions defined in their devfiles as 1.2.0 version currently does.

@thepetk
Copy link
Contributor

thepetk commented Feb 12, 2024

I think a better approach could be here to create a new version of the vert.x stack. We can take as an example the java-wildfly stack. WDYT?

thank you for the quick feedback!

I'm going to provide the corresponding changes, but first I would like to confirm that I understand correctly what I should to do:

  • create folder 1.2.0 and move the current devfile without my changes to that folder (it has 1.2.0 version)
  • create folder 1.3.0 and place the devfile with my changes in that folder?
  • provide stack.yaml, 1.3.0 is default?

thanks in advance!

Yes I think this is correct!

@RomanNikitenko RomanNikitenko force-pushed the java-vertx-runtime-image branch from e5e3860 to 74302f0 Compare February 12, 2024 16:15
@openshift-ci openshift-ci bot removed the lgtm Looks good to me label Feb 12, 2024
@RomanNikitenko RomanNikitenko changed the title Change runtime image for the Vert.x Java Stack Add devfile for the Vert.x Java Stack with runtime ubi8/openjdk-11 image Feb 12, 2024
Copy link
Member

@michael-valdron michael-valdron left a comment

Choose a reason for hiding this comment

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

One correction needed:

- stacks/java-vertx/1.3..0/devfile.yaml
+ stacks/java-vertx/1.3.0/devfile.yaml

Copy link
Contributor

@thepetk thepetk left a comment

Choose a reason for hiding this comment

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

Other than @michael-valdron comment above looks good to me

/lgtm

@openshift-ci openshift-ci bot added lgtm Looks good to me approved labels Feb 12, 2024
Signed-off-by: Roman Nikitenko <[email protected]>
@openshift-ci openshift-ci bot removed the lgtm Looks good to me label Feb 12, 2024
Copy link
Member

@michael-valdron michael-valdron left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Looks good to me label Feb 12, 2024
@ibuziuk
Copy link
Collaborator

ibuziuk commented Feb 13, 2024

@thepetk @michael-valdron folks, could you please clarify who can provide guidance regarding the odo v3 failing PR check?

@RomanNikitenko
Copy link
Contributor Author

I've changed default version for the Vert.x Java stack.
Maybe 1.3.0 should be used here

@openshift-ci openshift-ci bot removed the lgtm Looks good to me label Feb 13, 2024
@michael-valdron
Copy link
Member

@thepetk @michael-valdron folks, could you please clarify who can provide guidance regarding the odo v3 failing PR check?

I've changed default version for the Vert.x Java stack.
Maybe 1.3.0 should be used here

@RomanNikitenko is right, we skip vertx stack starter projects in the odo checks because they exceed the resource limit of GitHub workflows, following are some past related PRs:

Comment on lines 9 to 22
--skip="stack: java-vertx version: 1.2.0 starter: vertx-cache-example-redhat" \
--skip="stack: java-vertx version: 1.2.0 starter: vertx-cache-example" \
--skip="stack: java-vertx version: 1.2.0 starter: vertx-circuit-breaker-example-redhat" \
--skip="stack: java-vertx version: 1.2.0 starter: vertx-circuit-breaker-example" \
--skip="stack: java-vertx version: 1.2.0 starter: vertx-crud-example-redhat" \
--skip="stack: java-vertx version: 1.2.0 starter: vertx-crud-example" \
--skip="stack: java-vertx version: 1.2.0 starter: vertx-configmap-example" \
--skip="stack: java-vertx version: 1.2.0 starter: vertx-http-example-redhat" \
--skip="stack: java-vertx version: 1.2.0 starter: vertx-secured-http-example" \
--skip="stack: java-vertx version: 1.2.0 starter: vertx-istio-circuit-breaker-booster" \
--skip="stack: java-vertx version: 1.2.0 starter: vertx-istio-distributed-tracing-booster" \
--skip="stack: java-vertx version: 1.2.0 starter: vertx-istio-routing-booster" \
--skip="stack: java-vertx version: 1.2.0 starter: vertx-istio-security-booster" \
--skip="stack: java-vertx version: 1.2.0 starter: vertx-messaging-work-queue-booster" \
Copy link
Member

Choose a reason for hiding this comment

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

We'll need to keep both versions here, mainly so that this PR can pass since 1.2.0 was refactored in these changes.

Copy link
Member

@michael-valdron michael-valdron left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Looks good to me label Feb 13, 2024
Copy link

openshift-ci bot commented Feb 13, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ibuziuk, michael-valdron, RomanNikitenko, thepetk

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [michael-valdron,thepetk]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@michael-valdron michael-valdron merged commit d748d7c into devfile:main Feb 13, 2024
10 checks passed
@RomanNikitenko RomanNikitenko deleted the java-vertx-runtime-image branch February 14, 2024 05:53
@RomanNikitenko
Copy link
Contributor Author

thank you all for your support and guidance to get the PR merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants