-
Notifications
You must be signed in to change notification settings - Fork 330
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Continuation of #1236. I cannot re-open the issue, but I am facing the same exact issue.
The eclipselink getting-started instructs users to run the following command:
./gradlew clean :polaris-quarkus-server:assemble :polaris-quarkus-admin:assemble \
-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4 \
-Dquarkus.container-image.tag=postgres-latest \
-Dquarkus.container-image.build=true \
--no-build-cache
But after running, the command fails with the following error:
Execution failed for task ':polaris-quarkus-admin:quarkusAppPartsBuild'.
> There was a failure while executing work items
> A failure occurred while executing io.quarkus.gradle.tasks.worker.BuildWorker
> 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/ahemani/Development/polaris/quarkus/admin/src/main/docker/Dockerfile.jvm -t docker.io/apache/polaris-admin-tool:postgres-latest /Users/ahemani/Development/polaris/quarkus/admin' failed. See docker output for more details
at io.quarkus.container.image.docker.common.deployment.CommonProcessor.containerRuntimeException(CommonProcessor.java:261)
at io.quarkus.container.image.docker.common.deployment.CommonProcessor.buildImage(CommonProcessor.java:249)
at io.quarkus.container.image.docker.deployment.DockerProcessor.createContainerImage(DockerProcessor.java:125)
at io.quarkus.container.image.docker.deployment.DockerProcessor.createContainerImage(DockerProcessor.java:31)
at io.quarkus.container.image.docker.common.deployment.CommonProcessor.buildFromJar(CommonProcessor.java:87)
at io.quarkus.container.image.docker.deployment.DockerProcessor.dockerBuildFromJar(DockerProcessor.java:62)
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733)
at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)
at io.quarkus.builder.BuildContext.run(BuildContext.java:255)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2675)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2654)
at org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1627)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1594)
at java.base/java.lang.Thread.run(Thread.java:1583)
at org.jboss.threads.JBossThread.run(JBossThread.java:499)
Upon running the Docker command that was failing, we see that there is a build directory that is expected to exist in the image - but it does not exist:
ahemani@F7Q5C90CJX polaris % docker build -f /Users/ahemani/Development/polaris/quarkus/admin/src/main/docker/Dockerfile.jvm -t docker.io/apache/polaris-admin-tool:postgres-latest /Users/ahemani/Development/polaris/quarkus/admin
[+] Building 0.5s (8/8) FINISHED docker:desktop-linux
=> [internal] load build definition from Dockerfile.jvm 0.0s
=> => transferring dockerfile: 1.66kB 0.0s
=> [internal] load metadata for registry.access.redhat.com/ubi9/openjdk-21-runtime:1.21-1.1741781258 0.4s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [1/4] FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.21-1.1741781258@sha256:360822c35c5741f542ab78fe123e6c4d9b68e0113a88d6e0250bb1f377b17f29 0.0s
=> => resolve registry.access.redhat.com/ubi9/openjdk-21-runtime:1.21-1.1741781258@sha256:360822c35c5741f542ab78fe123e6c4d9b68e0113a88d6e0250bb1f377b17f29 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 2B 0.0s
=> CACHED [2/4] RUN groupadd --gid 10001 polaris && useradd --uid 10000 --gid polaris polaris && chown -R polaris:polaris /opt/jboss/container && chown -R polaris:polaris /deployments 0.0s
=> CACHED [3/4] WORKDIR /deployments 0.0s
=> ERROR [4/4] COPY --chown=polaris:polaris build/*-runner.jar /deployments/polaris-server-admin-tool.jar 0.0s
------
> [4/4] COPY --chown=polaris:polaris build/*-runner.jar /deployments/polaris-server-admin-tool.jar:
------
Dockerfile.jvm:40
--------------------
38 | ENV PWD=/deployments
39 |
40 | >>> COPY --chown=polaris:polaris build/*-runner.jar /deployments/polaris-server-admin-tool.jar
41 |
42 | ENTRYPOINT [ "java", "-jar", "/deployments/polaris-server-admin-tool.jar" ]
--------------------
ERROR: failed to solve: lstat /build: no such file or directory
To Reproduce
No response
Actual Behavior
No response
Expected Behavior
No response
Additional context
No response
System information
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working