WASdev/ci.docker

Running configure.sh fails with podman build

Crosswind opened this issue · 1 comments

Hey. We upgraded one of hour Linux on Z LPARs to RHEL 8 which removes Docker support and moves to podman. I wanted to build my images with podman now and one of the images is based on websphere-liberty:kernel. The build fails on the configure.sh step with the message:

Error: error building at STEP "RUN configure.sh": stat /etc/resolv.conf: no such file or directory

The rest of the Dockerfile consists of a couple of COPY statements. I am using the container image with the tag ab4fe7318aca. Building the Dockerfile on a MacBook the build runs just fine and doesn't have any problems with the resolv.conf file.

I am able to start a plain websphere-liberty:kernel container in podman and the resolv.conf is definitely there. What options do I have in sorting this out? The podman version is lower than what I have on my Mac. I couldn't find any open issues either in this or in the podman repository that would bring me to the conclusion that I needed a different podman version.

Note: I am building the image behind a corporate proxy. I have included the proxy settings in the repositories.properties. In the past if I didn't have them the build would simply happen without the feature installation.

Podman Version:
Version: 3.2.3
API Version: 3.2.3
Go Version: go1.15.7
Built: Thu Jul 29 17:02:48 2021
OS/Arch: linux/s390x

Since this was a newly setup Linux on Z LPAR it didn't have everything configured. The resolv.conf of the local system was missing and thus the build failing. Closing this..