Error building the fc-service using Instruction in /docker
I am trying to build the fc-service locally on my system. I have all the required dependencies.
When run the commands in the instruction I get the following error:
1 .
docker-compose up
WARNING: The fc_demo_PORTAL_DOCKER_CONTEXT variable is not set. Defaulting to a blank string.
Building server
[+] Building 115.8s (18/19) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 833B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/maven:3.8.1-openjdk-17-slim 1.3s
=> [internal] load metadata for docker.io/library/openjdk:17 0.7s
=> CACHED [fc-service-server 1/2] FROM docker.io/library/openjdk:17@sha256:528707081fdb9562eb819128a9f85ae7fe000e2fbaeaf 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 105.55kB 0.1s
=> [build 1/12] FROM docker.io/library/maven:3.8.1-openjdk-17-slim@sha256:b33f2ce5438552e6c0d2f8e675319efdd5f5a318f3c9b 0.0s
=> CACHED [build 2/12] WORKDIR /app 0.0s
=> CACHED [build 3/12] COPY fc-service-api fc-service-api 0.0s
=> CACHED [build 4/12] COPY fc-service-client fc-service-client 0.0s
=> CACHED [build 5/12] COPY fc-test-support fc-test-support 0.0s
=> CACHED [build 6/12] COPY fc-service-core fc-service-core 0.0s
=> CACHED [build 7/12] COPY fc-service-server fc-service-server 0.0s
=> CACHED [build 8/12] COPY fc-demo-portal fc-demo-portal 0.0s
=> CACHED [build 9/12] COPY openapi openapi 0.0s
=> CACHED [build 10/12] COPY pom.xml pom.xml 0.0s
=> CACHED [build 11/12] COPY lombok.config lombok.config 0.0s
=> ERROR [build 12/12] RUN mvn clean install -DskipTests -Dcheckstyle.skip 114.2s
------
> [build 12/12] RUN mvn clean install -DskipTests -Dcheckstyle.skip:
1.618 [INFO] Scanning for projects...
1.917 Downloading from danubetech-maven-public: https://repo.danubetech.com/repository/maven-public/org/springframework/boot/spring-boot-starter-parent/3.1.2/spring-boot-starter-parent-3.1.2.pom
4.011 [3.561s][warning][jni,resolve] Re-registering of platform native method: java.lang.PanwHooksNs.HookArgs0()V from code in a different classloader
4.011 [3.561s][warning][jni,resolve] Re-registering of platform native method: java.lang.PanwHooksNs.HookArgs1(Ljava/lang/Object;)V from code in a different classloader
4.011 [3.561s][warning][jni,resolve] Re-registering of platform native method: java.lang.PanwHooksNs.HookArgs2(Ljava/lang/Object;Ljava/lang/Object;)V from code in a different classloader
4.011 [3.561s][warning][jni,resolve] Re-registering of platform native method: java.lang.PanwHooksNs.HookArgs3(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V from code in a different classloader
4.011 [3.561s][warning][jni,resolve] Re-registering of platform native method: java.lang.PanwHooksNs.HookArgs4(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V from code in a different classloader
58.05 Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/3.1.2/spring-boot-starter-parent-3.1.2.pom
114.1 [ERROR] [ERROR] Some problems were encountered while processing the POMs:
114.1 [FATAL] Non-resolvable parent POM for eu.xfsc.cat:fc-service:1.0.0.local: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:3.1.2 from/to danubetech-maven-public (https://repo.danubetech.com/repository/maven-public/): transfer failed for https://repo.danubetech.com/repository/maven-public/org/springframework/boot/spring-boot-starter-parent/3.1.2/spring-boot-starter-parent-3.1.2.pom and 'parent.relativePath' points at no local POM @ line 6, column 13
114.1 @
114.1 [ERROR] The build could not read 1 project -> [Help 1]
114.1 [ERROR]
114.1 [ERROR] The project eu.xfsc.cat:fc-service:1.0.0.local (/app/pom.xml) has 1 error
114.1 [ERROR] Non-resolvable parent POM for eu.xfsc.cat:fc-service:1.0.0.local: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:3.1.2 from/to danubetech-maven-public (https://repo.danubetech.com/repository/maven-public/): transfer failed for https://repo.danubetech.com/repository/maven-public/org/springframework/boot/spring-boot-starter-parent/3.1.2/spring-boot-starter-parent-3.1.2.pom and 'parent.relativePath' points at no local POM @ line 6, column 13: Unknown host repo.danubetech.com: Temporary failure in name resolution -> [Help 2]
114.1 [ERROR]
114.1 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
114.1 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
114.2 [ERROR]
114.2 [ERROR] For more information about the errors and possible solutions, please read the following articles:
114.2 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
114.2 [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
------
Dockerfile:16
--------------------
14 | COPY lombok.config lombok.config
15 |
16 | >>> RUN mvn clean install -DskipTests -Dcheckstyle.skip
17 |
18 |
--------------------
ERROR: failed to solve: process "/bin/sh -c mvn clean install -DskipTests -Dcheckstyle.skip" did not complete successfully: exit code: 1
ERROR: Service 'server' failed to build : Build failed
docker-compose --env-file dev.env up --build
WARNING: The fc_demo_PORTAL_DOCKER_CONTEXT variable is not set. Defaulting to a blank string.
Building server
[+] Building 1.3s (6/6) FINISHED docker:default
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 167B 0.0s
=> [internal] load metadata for docker.io/library/openjdk:17 1.1s
=> [internal] load build context 0.0s
=> => transferring context: 2B 0.0s
=> CACHED [1/2] FROM docker.io/library/openjdk:17@sha256:528707081fdb9562eb819128a9f85ae7fe000e2fbaeaf9f87662e7b3f38cb7d 0.0s
=> ERROR [2/2] COPY /target/fc-service-server-*.jar fc-service-server.jar 0.1s
------
> [2/2] COPY /target/fc-service-server-*.jar fc-service-server.jar:
------
Dockerfile:2
--------------------
1 | FROM openjdk:17
2 | >>> COPY /target/fc-service-server-*.jar fc-service-server.jar
3 | ENTRYPOINT ["java", "-jar","/fc-service-server.jar"]
4 |
--------------------
ERROR: failed to solve: lstat /var/lib/docker/tmp/buildkit-mount561107385/target: no such file or directory
ERROR: Service 'server' failed to build : Build failed
Kindly help with the issue.
Thanking you