Terraform UBI agent fails to build with latest base image
BraisVQ opened this issue · 1 comments
BraisVQ commented
Describe the bug
Terraform build with Dockerfile.ubi8 fails to build due to the latest changes in Jenkins base agent
To Reproduce
Steps to reproduce the behavior:
- Build Terraform with Dockerfile.ubi8
- See error
Expected behavior
The agent should build successfully
Affected version:
- OpenDevStack: master and 4.x
Log Output
Step 45/47 : RUN ls $JAVA_HOME/lib/security/cacerts && chown 1001:0 $JAVA_HOME/lib/security/cacerts && chmod g+w $JAVA_HOME/lib/security/cacerts
---> Running in 8e6914fc3ede
ls: cannot access '/lib/security/cacerts': No such file or directory
The command '/bin/bash -o pipefail -c ls $JAVA_HOME/lib/security/cacerts && chown 1001:0 $JAVA_HOME/lib/security/cacerts && chmod g+w $JAVA_HOME/lib/security/cacerts' returned a non-zero code: 2
Error: Process completed with exit code 2.
Additional context
This is due to JAVA_HOME being removed in base image
Related to opendevstack/ods-core#1181
nichtraunzer commented
will fix it !