[FOLIO-2934] Build failed on 'Docker build' step Created: 04/Jan/21  Updated: 04/Jan/21  Resolved: 04/Jan/21

Status: Closed
Project: FOLIO
Components: Continuous Integration
Affects versions: None
Fix versions: None

Type: Bug Priority: TBD
Reporter: Bohdan Suprun (Inactive) Assignee: Bohdan Suprun (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified
Environment:

Jenkins CI/CD pipeline


Issue links:
Blocks
blocks MSEARCH-10 Indexing of instances Closed
Sprint:
Development Team: FOLIO DevOps

 Description   

CI/CD builds for the new mod-search module (see feature/MSEARCH-10 branch) constantly fails on the Docker build step:

docker build --pull=true --no-cache=true -t mod-search:1.0.0-SNAPSHOT.24 .
Sending build context to Docker daemon  63.42MB

Step 1/16 : FROM adoptopenjdk/openjdk11:alpine-jre as builder
alpine-jre: Pulling from adoptopenjdk/openjdk11
Digest: sha256:b6ab039066382d39cfc843914ef1fc624aa60e2a16ede433509ccadd6d995b1f
Status: Image is up to date for adoptopenjdk/openjdk11:alpine-jre
 ---> 28ad0c276865
Step 2/16 : ARG JAR_FILE=target/*.jar
 ---> Running in ecc99cbc9814
Removing intermediate container ecc99cbc9814
 ---> e0e2283fd229
Step 3/16 : COPY ${JAR_FILE} application.jar
 ---> 341af35d4af5
Step 4/16 : RUN java -Djarmode=layertools -jar application.jar extract
 ---> Running in 9bf062dfea94
Removing intermediate container 9bf062dfea94
 ---> 5a65d193d011
Step 5/16 : FROM adoptopenjdk/openjdk11:alpine-jre
alpine-jre: Pulling from adoptopenjdk/openjdk11
Digest: sha256:b6ab039066382d39cfc843914ef1fc624aa60e2a16ede433509ccadd6d995b1f
Status: Image is up to date for adoptopenjdk/openjdk11:alpine-jre
 ---> 28ad0c276865
Step 6/16 : ENV JAVA_APP_DIR=/opt/folio
 ---> Running in 63f4a048ff30
Removing intermediate container 63f4a048ff30
 ---> 309e9689b54e
Step 7/16 : RUN mkdir -p ${JAVA_APP_DIR}
 ---> Running in 7cd7ef3b640a
Removing intermediate container 7cd7ef3b640a
 ---> 2424ea22893a
Step 8/16 : COPY --from=builder dependencies/ ${JAVA_APP_DIR}/
 ---> 7d929252a3a0
Step 9/16 : COPY --from=builder snapshot-dependencies/ ${JAVA_APP_DIR}/
 ---> e27a654c5d49
Step 10/16 : COPY --from=builder spring-boot-loader/ ${JAVA_APP_DIR}/
 ---> a2bb4774d6dd
Step 11/16 : COPY --from=builder application/ ${JAVA_APP_DIR}/
 ---> 0ceb1a234217
Step 12/16 : COPY run.sh ${JAVA_APP_DIR}/
COPY failed: stat /var/lib/docker/tmp/docker-builder563070742/run.sh: no such file or directory

However, I'm able to build it locally and the run.sh file does exist.

CC: Oleksii Petrenko, Pavel Filippov, Mikhail Fokanov.



 Comments   
Comment by Bohdan Suprun (Inactive) [ 04/Jan/21 ]

Fixed now. I've replaced buildJavaDocker with buildDocker in the Jenkinsfile.

Generated at Thu Feb 08 23:24:20 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.