Open shreyakajbaje opened 10 months ago
@shreyakajbaje Yes, i believe so. @ppalaga FYI
thanks for confirmation @llowinge. I tried building the image with this dockerfile facing issue. is there anything that I'm missing? logs -
[+] Building 1.8s (6/9) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.98kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/eclipse-temurin:11 1.5s
=> [internal] load build context 0.1s
=> => transferring context: 2B 0.0s
=> CANCELED [1/5] FROM docker.io/library/eclipse-temurin:11@sha256:1f62aaa9b6947e96189b4dbd14a7fc2a768914df3aefc9b0a1f7ec8a4dce8d6b 0.1s
=> => resolve docker.io/library/eclipse-temurin:11@sha256:1f62aaa9b6947e96189b4dbd14a7fc2a768914df3aefc9b0a1f7ec8a4dce8d6b 0.0s
=> => sha256:1f62aaa9b6947e96189b4dbd14a7fc2a768914df3aefc9b0a1f7ec8a4dce8d6b 1.70kB / 1.70kB 0.0s
=> => sha256:0661a8e09ee8ff26037b22def9d0dbd5ae065211baeab4263e702a33ad3e0fa9 1.37kB / 1.37kB 0.0s
=> => sha256:f92218dcd5c45520247abfd10cb8ecb36bf9437e746c679ad48588deebc62cc4 6.76kB / 6.76kB 0.0s
=> ERROR [2/5] COPY target/server /opt/jboss/wildfly
== > [2/5] COPY target/server /opt/jboss/wildfly:
Dockerfile:19
17 |
18 | FROM eclipse-temurin:11
19 | >>> COPY target/server /opt/jboss/wildfly
20 | # While building the calculator-ws module locally, it will set local file handler for logging
21 | RUN sed -i "s#handler.FILE.fileName=.*#handler.FILE.fileName=/opt/jboss/wildfly/standalone/log/server.log#g" /opt/jboss/wildfly/standalone/configuration/logging.properties
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref b7e64581-5a61-4c6d-b3ed-b1bf1b9c41d7::nlt5xqe995gihib6g3fqygyt6: failed to walk /var/lib/docker/tmp/buildkit-mount3312477859/target: lstat /var/lib/docker/tmp/buildkit-mount3312477859/target: no such file or directory
@shreyakajbaje Unfortunately i don't know. I've tried to build it locally on MacOS, and it works. I'm not sure what are prerequisites on PPC64le. @ppalaga Any ideas ?
@llowinge I even tried on x86 faced same error
I've run on commit 20dbd66 and log output
docker build . 1.3
[+] Building 30.0s (10/10) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.02kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/eclipse-temurin:11 2.6s
=> [internal] load build context 3.5s
=> => transferring context: 258.71MB 3.5s
=> [1/5] FROM docker.io/library/eclipse-temurin:11@sha256:1f62aaa9b6947e96189b4dbd14a7fc2a768914df3aefc9b0a1f7ec8a4dce8d6b 19.0s
=> => resolve docker.io/library/eclipse-temurin:11@sha256:1f62aaa9b6947e96189b4dbd14a7fc2a768914df3aefc9b0a1f7ec8a4dce8d6b 0.0s
=> => sha256:7f82deb1f5c2799e6072f16051cc057277e3140e35ef1187bb6707695fccca72 12.90MB / 12.90MB 3.1s
=> => sha256:bc98c8b03a9fa155944d2939d37f11f99554864629c959f4e47f8eed9a4bb5e2 145.27MB / 145.27MB 16.7s
=> => sha256:1f62aaa9b6947e96189b4dbd14a7fc2a768914df3aefc9b0a1f7ec8a4dce8d6b 1.70kB / 1.70kB 0.0s
=> => sha256:0661a8e09ee8ff26037b22def9d0dbd5ae065211baeab4263e702a33ad3e0fa9 1.37kB / 1.37kB 0.0s
=> => sha256:f92218dcd5c45520247abfd10cb8ecb36bf9437e746c679ad48588deebc62cc4 6.76kB / 6.76kB 0.0s
=> => sha256:43f89b94cd7df92a2f7e565b8fb1b7f502eff2cd225508cbd7ea2d36a9a3a601 30.44MB / 30.44MB 10.8s
=> => sha256:f548f3a34fdadd19eb45798fd93863d109f2cedea130639506811039099fbbcc 178B / 178B 3.3s
=> => sha256:04aabdf752cbc946547cf748a684218803bef371bb6ea214c1ffa3e8e392a23f 734B / 734B 3.6s
=> => extracting sha256:43f89b94cd7df92a2f7e565b8fb1b7f502eff2cd225508cbd7ea2d36a9a3a601 1.8s
=> => extracting sha256:7f82deb1f5c2799e6072f16051cc057277e3140e35ef1187bb6707695fccca72 1.0s
=> => extracting sha256:bc98c8b03a9fa155944d2939d37f11f99554864629c959f4e47f8eed9a4bb5e2 1.9s
=> => extracting sha256:f548f3a34fdadd19eb45798fd93863d109f2cedea130639506811039099fbbcc 0.0s
=> => extracting sha256:04aabdf752cbc946547cf748a684218803bef371bb6ea214c1ffa3e8e392a23f 0.0s
=> [2/5] COPY target/server /opt/jboss/wildfly 1.2s
=> [3/5] RUN sed -i "s#handler\.FILE\.fileName=.*#handler.FILE.fileName=/opt/jboss/wildfly/standalone/log/server.log#g" /opt/jboss/wildf 0.3s
=> [4/5] RUN chgrp -R 0 /opt/jboss/wildfly 2.8s
=> [5/5] RUN chmod -R g=u /opt/jboss/wildfly 2.8s
=> exporting to image 1.1s
=> => exporting layers 1.1s
=> => writing image sha256:7340a95128a4238ae55ed66ce76eed00fce720eff5252cda28354ee3931b18a4 0.0s
=> ERROR [2/5] COPY target/server /opt/jboss/wildfly
target/server
perhaps does not exist in your source tree? If so, you just need to build the project with Maven before building the docker image:
./mvnw clean package -ntp
We build the image on Github Actions using this job:
https://github.com/l2x6/calculator-ws/blob/1.3/.github/workflows/deploy.yaml#L41-L65
Hi @llowinge, is this the correct dockerfile https://github.com/l2x6/calculator-ws/blob/1.3/Dockerfile I'm referring to to create l2x6/calculator-ws:1.3 image ?