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

Improve s2i properties to use the standard ones #309

Merged
merged 1 commit into from
Oct 18, 2021

Conversation

Sgitario
Copy link
Contributor

The properties ts.global.s2i.quarkus.jvm.builder.image and ts.global.s2i.quarkus.native.builder.image properties have been deleted in favour of the Quarkus official ones:

  • quarkus.s2i.base-jvm-image
  • quarkus.s2i.base-native-image

Moreover, when using the OpenShift extension, if the user does not supply the quarkus.openshift.base-xxx-image, the framework will use the ones from quarkus.s2i.base-xxx-image.

@Sgitario Sgitario requested a review from pjgg October 15, 2021 09:14
@Sgitario
Copy link
Contributor Author

run tests

Copy link
Contributor

@pjgg pjgg left a comment

Choose a reason for hiding this comment

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

Just a single cosmetic change

private void withBaseImageProperties(List<String> args) {
// Resolve s2i property
boolean isNativeTest = isNativeTest();
PropertyLookup s2iImageProperty = isNativeTest ? QUARKUS_NATIVE_S2I : QUARKUS_JVM_S2I;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you move on this PropertyLookup s2iImageProperty = ... to a private String getS2iImage() as you did in
BuildOpenShiftQuarkusApplicationManagedResource

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In BuildOpenShiftQuarkusApplicationManagedResource, we only need the image value, but here we need the image value + the property key, so we can't do this.

@Sgitario Sgitario force-pushed the improve_s2i_properties branch from 7d4c951 to 4b7c376 Compare October 15, 2021 13:47
@Sgitario
Copy link
Contributor Author

run tests

@Sgitario Sgitario force-pushed the improve_s2i_properties branch from 4b7c376 to 4d6b282 Compare October 18, 2021 06:10
@Sgitario
Copy link
Contributor Author

run tests

The properties `ts.global.s2i.quarkus.jvm.builder.image` and `ts.global.s2i.quarkus.native.builder.image` properties have been deleted in favour of the Quarkus official ones:
- quarkus.s2i.base-jvm-image
- quarkus.s2i.base-native-image

Moreover, when using the OpenShift extension, if the user does not supply the `quarkus.openshift.base-xxx-image`, the framework will use the ones from `quarkus.s2i.base-xxx-image`.
@Sgitario Sgitario force-pushed the improve_s2i_properties branch from 4d6b282 to e04adbd Compare October 18, 2021 08:59
@Sgitario
Copy link
Contributor Author

run tests

@Sgitario Sgitario merged commit 56d0c36 into quarkus-qe:main Oct 18, 2021
@Sgitario Sgitario deleted the improve_s2i_properties branch October 18, 2021 11:27
fedinskiy added a commit to fedinskiy/quarkus-test-suite that referenced this pull request Jul 26, 2023
fedinskiy added a commit to fedinskiy/quarkus-test-suite that referenced this pull request Jul 26, 2023
fedinskiy added a commit to fedinskiy/quarkus-test-suite that referenced this pull request Jul 26, 2023
fedinskiy added a commit to fedinskiy/quarkus-test-suite that referenced this pull request Jul 31, 2023
and use recommended image[2] as a base for s2i

[1] quarkus-qe/quarkus-test-framework#309
[2] https://github.com/quarkusio/quarkus-images#quarkus-images-1:
```
ubi-quarkus-native-binary-s2i - S2I builder image for OpenShift taking a pre-built native executable as input
```
fedinskiy added a commit to fedinskiy/quarkus-test-suite that referenced this pull request Aug 1, 2023
- Rename properties
- use recommended image[2] as a base for native s2i
- use the same base jvm image as in framework[3]

[1] quarkus-qe/quarkus-test-framework#309
[2] https://github.com/quarkusio/quarkus-images#quarkus-images-1:
```
ubi-quarkus-native-binary-s2i - S2I builder image for OpenShift taking a pre-built native executable as input
```
[3] https://github.com/quarkus-qe/quarkus-test-framework/blob/main/quarkus-test-core/src/main/java/io/quarkus/test/services/quarkus/model/QuarkusProperties.java#L26
fedinskiy added a commit to fedinskiy/quarkus-test-suite that referenced this pull request Aug 8, 2023
- Rename properties
- use recommended image[2] as a base for native s2i
- use the same base jvm image as in framework[3]

[1] quarkus-qe/quarkus-test-framework#309
[2] https://github.com/quarkusio/quarkus-images#quarkus-images-1:
```
ubi-quarkus-native-binary-s2i - S2I builder image for OpenShift taking a pre-built native executable as input
```
[3] https://github.com/quarkus-qe/quarkus-test-framework/blob/main/quarkus-test-core/src/main/java/io/quarkus/test/services/quarkus/model/QuarkusProperties.java#L26
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.

2 participants