fmw-kubernetes
fmw-kubernetes copied to clipboard
ERROR WCSite image build with WebLogic Image Tool version 1.11.5
from build log: Step 1/43 : FROM ghcr.io/oracle/oraclelinux:8-slim as os_update 8-slim: Pulling from oracle/oraclelinux 051f419db9dd: Pulling fs layer 051f419db9dd: Download complete 051f419db9dd: Pull complete Digest: sha256:128890f01d9df4a209ff8ebcd3615d76d6219e904d82c95b419dde68c9b44bd0 Status: Downloaded newer image for ghcr.io/oracle/oraclelinux:8-slim
Step 35/43 : RUN yum install -y hostname && rm -rf /var/cache/yum ---> Running in f9b22ad987f5 /bin/sh: yum: command not found Removing intermediate container f9b22ad987f5 [SEVERE ] Build command failed with error: The command '/bin/sh -c yum install -y hostname && rm -rf /var/cache/yum' returned a non-zero code: 127
Error is clear: docker run -it ghcr.io/oracle/oraclelinux:8-slim bash bash-4.4# yum bash: yum: command not found The used oracle 8 image does't own yum command while oracle linux 7 has!!!! Can i modify generated docker file????
Can you please share the arguments used with WebLogic Image Tool?
Please try with the additional argument --fromImage ghcr.io/oracle/oraclelinux:7-slim
as WCSites is not supported yet in Oracle Linux 8.
If you are using buildargs file with WebLogic Image Tool then add --fromImage ghcr.io/oracle/oraclelinux:7-slim
in the file.