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

Use gradlew in native image docs #24969

Merged
merged 1 commit into from
Apr 21, 2022

Conversation

klemen-df
Copy link
Contributor

Updated version, updated sinstructions

Copy link
Member

@glefloch glefloch left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, I left few comments.

@@ -39,7 +39,7 @@
<!-- These properties are needed in order for them to be resolvable by the documentation -->
<!-- The Graal version we suggest using in documentation - as that's
what we work with by self downloading it: -->
<graal-sdk.version-for-documentation>22.0.0.2</graal-sdk.version-for-documentation>
<graal-sdk.version-for-documentation>22.0</graal-sdk.version-for-documentation>
Copy link
Member

Choose a reason for hiding this comment

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

Is that change necessary for documentation update?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted.

@@ -566,6 +566,8 @@ Sample Dockerfile for building with Gradle:
----
## Stage 1 : build with maven builder image with native capabilities
FROM quay.io/quarkus/ubi-quarkus-native-image:{graalvm-flavor} AS build
USER root
RUN microdnf install findutils
Copy link
Member

Choose a reason for hiding this comment

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

is find utils necessary for building the native artifact?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

gradlew ( https://github.com/gradle/gradle/blob/master/gradlew , line 235 ) uses xargs which are not in the image by default.

docs/pom.xml Outdated
@@ -2786,7 +2786,7 @@
<quarkus-version>${project.version}</quarkus-version>
<surefire-version>${version.surefire.plugin}</surefire-version>
<graalvm-version>${graal-sdk.version-for-documentation}</graalvm-version>
<graalvm-flavor>${graal-sdk.version-for-documentation}-java11</graalvm-flavor>
<graalvm-flavor>${graal-sdk.version-for-documentation}-java17</graalvm-flavor>
Copy link
Member

Choose a reason for hiding this comment

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

I know if we want to set all documentation reference to java 17 as quarkus is still based on Java 11

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted.

@glefloch glefloch requested review from gsmet and geoand April 15, 2022 14:59
@geoand
Copy link
Contributor

geoand commented Apr 18, 2022

Just a note that we'll need to have the commits squashed once everything else is addressed

Copy link
Member

@glefloch glefloch left a comment

Choose a reason for hiding this comment

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

LGTM, @KlemenDanfoss could you squash your commits and name it with the intent of the modification ?

@klemen-df klemen-df force-pushed the instructions-update branch from 3f5dc9e to 4785d6c Compare April 19, 2022 11:28
@klemen-df
Copy link
Contributor Author

Done.

@geoand geoand changed the title Instructions update Use gradlew in native image docs Apr 20, 2022
@geoand geoand requested a review from glefloch April 20, 2022 07:18
Copy link
Member

@glefloch glefloch left a comment

Choose a reason for hiding this comment

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

Thanks for those fix, the overall looks good to me. Could you just rephrase your commit message to something like "Use gradlew in native image docs", this will be used for the changelog.

@klemen-df klemen-df force-pushed the instructions-update branch from 5c87147 to 9486032 Compare April 21, 2022 12:02
@glefloch glefloch merged commit c887322 into quarkusio:main Apr 21, 2022
@quarkus-bot quarkus-bot bot added this to the 2.9 - main milestone Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependencies Pull requests that update a dependency file area/documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants