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

Container Image/Build does not consider Build Type in Dev UI #15688

Closed
ghost opened this issue Mar 12, 2021 · 0 comments · Fixed by #15750
Closed

Container Image/Build does not consider Build Type in Dev UI #15688

ghost opened this issue Mar 12, 2021 · 0 comments · Fixed by #15750
Labels
kind/bug Something isn't working triage/needs-triage
Milestone

Comments

@ghost
Copy link

ghost commented Mar 12, 2021

Describe the bug
If you want to build a Docker image via the Dev UI then a "Build Type" different to "Jar" ("Native", "Legacy Jar", "Mutable Jar") is not considered.

Expected behavior
The "Build Type" should be considered and a build for the desired type being triggered.

Actual behavior
It always builds an image with the following log entries:

2021-03-12 17:49:21,928 INFO  [io.qua.con.ima.doc.dep.DockerProcessor] (build-19) Building docker image for jar.                                                                                                  
2021-03-12 17:49:21,929 INFO  [io.qua.con.ima.doc.dep.DockerProcessor] (build-19) Executing the following command to build docker image: 'docker build -f /home/belu/git/quarkus-quickstarts/getting-started/src/main/docker/Dockerfile.jvm -t belu/getting-started:1.0.0-SNAPSHOT /home/belu/git/quarkus-quickstarts/getting-started'

To Reproduce

Steps to reproduce the behavior:

  1. Use e.g. the Quarkus Quickstart project 'getting-started'
  2. Add the following dependency: quarkus-container-image-docker
  3. mvn clean quarkus:dev
  4. Open Dev UI for Container Image/Build: http://localhost:8080/q/dev/io.quarkus.quarkus-container-image/build
  5. Select "Build Type" different to "Jar", e.g. "Native"
  6. Click "Build"
  7. Verify in logfile that no Docker image with native runnable has been created.

Environment

  • Output of uname -a or ver: Linux
  • Output of java -version: OpenJDK 64-Bit Server VM GraalVM CE 21.1.0-dev
  • Quarkus version or git rev: 1.12.2.Final
  • Build tool (ie. output of mvnw --version or gradlew --version): Maven 3.6.3
@ghost ghost added the kind/bug Something isn't working label Mar 12, 2021
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Mar 16, 2021
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Mar 16, 2021
@quarkus-bot quarkus-bot bot added this to the 1.13 - main milestone Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/needs-triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants