unzip command not found on rhel ubi 8.4
When using RUN unzip in the Docker file, I get the error that the command is not found. I then proceeded to dnf install unzip as you can see in the out BUT it still errors out that command unzip not found. @ortiz.jacob - can you please advise ?
Installed products updated.
Installed:
unzip-6.0-45.el8_4.x86_64
Complete!
STEP 6: ARG RELTAG
STEP 7: RUN mkdir /workspaces
STEP 8: WORKDIR /workspaces
STEP 9: WORKDIR /workspaces/missionlz
STEP 10: FROM registry1.dso.mil/ironbank/redhat/ubi/ubi8:8.4
STEP 11: ARG KEY_DEPENDENCY=microsoft.asc
STEP 12: COPY ["${KEY_DEPENDENCY}", "/tmp"]
STEP 13: RUN rpm --import /tmp/${KEY_DEPENDENCY}
STEP 14: COPY ./scripts/install-packages-final.sh /usr/local/bin
STEP 15: ARG TERRAFORM_DEPENDENCY=terraform.zip
STEP 16: COPY ["${TERRAFORM_DEPENDENCY}", "/tmp"]
STEP 17: RUN unzip /tmp/${TERRAFORM_DEPENDENCY} -d /usr/local/bin/ && rm /tmp/${TERRAFORM_DEPENDENCY}
/bin/sh: unzip: command not found
subprocess exited with status 127
subprocess exited with status 127
error building at STEP "RUN unzip /tmp/${TERRAFORM_DEPENDENCY} -d /usr/local/bin/ && rm /tmp/${TERRAFORM_DEPENDENCY}": exit status 127
level=error msg="exit status 127"
Uploading artifacts for failed job
00:02
Uploading artifacts...
ci-artifacts/build/: found 1 matching files and directories
Uploading artifacts as "archive" to coordinator... ok id=4797322 responseStatus=201 Created token=jZLDXgG8
Uploading artifacts...
WARNING: build.env: no matching files
ERROR: No files to upload
Cleaning up file based variables
00:00
ERROR: Job failed: command terminated with exit code 1