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

Native build image configurations ignored - always falls back to 21.3-java11 #23988

Closed
mklueh opened this issue Feb 26, 2022 · 3 comments · Fixed by #24016
Closed

Native build image configurations ignored - always falls back to 21.3-java11 #23988

mklueh opened this issue Feb 26, 2022 · 3 comments · Fixed by #24016
Labels
kind/question Further information is requested
Milestone

Comments

@mklueh
Copy link
Contributor

mklueh commented Feb 26, 2022

Describe the bug

I'm trying to use the graal jdk17 image unsuccessfully.

What I've tried so far is

  1. Gradle DSL
quarkusBuild {
    nativeArgs {
        containerBuild = true
        buildImage = "quay.io/quarkus/ubi-quarkus-native-image:22.0.0-java17"
    }
}
  1. application.properties
quarkus.native.build-image=quay.io/quarkus/ubi-quarkus-native-image:22.0.0-java17

and running it with the command

./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true

and also even

./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true -Dquarkus.native.build-image=quay.io/quarkus/ubi-quarkus-native-image:22.0.0-java17

In addition, I've also deleted the docker directory with the images, because I was unsure if those are getting used by the docker extension.

No matter what I do, it always picks up 21.3-java11

21.3-java11: Pulling from quarkus/ubi-quarkus-native-image
Digest: sha256:6d5d0c1fdb58f8ba0a2fb7db58081a16c906450dfb5ff950446766a0f61767fc
Status: Image is up to date for quay.io/quarkus/ubi-quarkus-native-image:21.3-java11
quay.io/quarkus/ubi-quarkus-native-image:21.3-java11

What am I missing?

Expected behavior

To not ignore my configurations

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@mklueh mklueh added the kind/bug Something isn't working label Feb 26, 2022
@gsmet
Copy link
Member

gsmet commented Feb 26, 2022

It's builder-image not build-image: -Dquarkus.native.builder-image=....

@gsmet gsmet added kind/question Further information is requested and removed kind/bug Something isn't working triage/needs-triage labels Feb 26, 2022
@mklueh
Copy link
Contributor Author

mklueh commented Feb 27, 2022

@gsmet oh my god, thank you, this indeed works.

Was it previously "build-image"? Because the documentation here also says so for the Gradle DSL

https://quarkus.io/guides/gradle-tooling#building-a-native-executable

If I change that to builderImage as well, it also works.

quarkusBuild {
    nativeArgs {
        containerBuild = true
        builderImage = "quay.io/quarkus/ubi-quarkus-native-image:21.3.0-java17"
    }
}

And there it also states build-image for the properties

image

@gsmet
Copy link
Member

gsmet commented Feb 28, 2022

Ah, thanks, I created #24016 to fix it.

@quarkus-bot quarkus-bot bot added this to the 2.8 - main milestone Mar 1, 2022
@gsmet gsmet modified the milestones: 2.8 - main, 2.7.3.Final Mar 1, 2022
gsmet added a commit to gsmet/quarkus that referenced this issue Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants