You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
(Describe the problem clearly and concisely.)
Run quarkusBuild would be failed when specifying the docker file path to the sub-module.
Expected behavior
The application project and image would build successfully.
Actual behavior
Execution failed for task ':application:quarkusBuild'.
> io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.container.image.docker.deployment.DockerProcessor#dockerBuildFromJar threw an exception: java.lang.IllegalArgumentException: Specified Dockerfile path /Users/bob/work/personal projects/quakusio/my-artifactId/application/src/main/docker/Dockerfile.local does not exist
at io.quarkus.container.image.docker.deployment.DockerProcessor$ProvidedDockerfile.get(DockerProcessor.java:342)
at io.quarkus.container.image.docker.deployment.DockerProcessor.getDockerfilePaths(DockerProcessor.java:227)
at io.quarkus.container.image.docker.deployment.DockerProcessor.createContainerImage(DockerProcessor.java:134)
at io.quarkus.container.image.docker.deployment.DockerProcessor.dockerBuildFromJar(DockerProcessor.java:86)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:932)
at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2046)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1578)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
at java.base/java.lang.Thread.run(Thread.java:834)
at org.jboss.threads.JBossThread.run(JBossThread.java:479)
But the docker file does exist in the specified path. I tried to update the path to quarkus.docker.dockerfile-jvm-path=application/src/main/docker/Dockerfile.local
still get error:
Execution failed for task ':application:quarkusBuild'.
> io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.container.image.docker.deployment.DockerProcessor#dockerBuildFromJar threw an exception: java.lang.RuntimeException: Execution of 'docker build -f /Users/bob/work/personal projects/quakusio/my-artifactId/application/application/src/main/docker/Dockerfile.local -t bob/application:unspecified /Users/bob/work/personal projects/quakusio/my-artifactId/application' failed. See docker output for more details
at io.quarkus.container.image.docker.deployment.DockerProcessor.dockerException(DockerProcessor.java:184)
at io.quarkus.container.image.docker.deployment.DockerProcessor.createContainerImage(DockerProcessor.java:130)
at io.quarkus.container.image.docker.deployment.DockerProcessor.dockerBuildFromJar(DockerProcessor.java:79)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
Because the path /application is duplicated. docker build -f /Users/bob/work/personal projects/quakusio/my-artifactId/application/application/src/main/docker/Dockerfile.local -t bob/application:unspecified /Users/bob/work/personal projects/quakusio/my-artifactId/application
Describe the bug
(Describe the problem clearly and concisely.)
Run quarkusBuild would be failed when specifying the docker file path to the sub-module.
Expected behavior
The application project and image would build successfully.
Actual behavior
But the docker file does exist in the specified path. I tried to update the path to
quarkus.docker.dockerfile-jvm-path=application/src/main/docker/Dockerfile.local
still get error:
Because the path /application is duplicated.
docker build -f /Users/bob/work/personal projects/quakusio/my-artifactId/application/application/src/main/docker/Dockerfile.local -t bob/application:unspecified /Users/bob/work/personal projects/quakusio/my-artifactId/application
To Reproduce
Steps to reproduce the behavior:
./gradlew application:quarkusBuild
Configuration
# Add your application.properties here, if applicable.
Screenshots

The screenshot is the multi-module gradle project structure
Environment (please complete the following information):
Quarkus version: 1.5.2.Final
JDK version: 11.0.9
The text was updated successfully, but these errors were encountered: