python icon indicating copy to clipboard operation
python copied to clipboard

Can't connect to HTTPS URL because the SSL module is not available from Buildah

Open anutator opened this issue 1 year ago • 3 comments
trafficstars

Please add openssl package (not only openssl-dev) to python3-alpine

We have errors if we try to use this images (for example add ansible and pip modules):

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")'

If I test it on virtual machine it works, but it doesn't work from Gitlab. We use Kubernetes gitlab-runner with buildah image to build images from Dockerfile. We didn't have any problems with previous python images (based on Alpine) near 6 months ago. I checked that I found openssl command in the old image and I didn't find it in the new image. We use python image as BASE IMAGE (FROM) in Dockerfile.

If I use your Dockerfile and add openssl, I can build ansible from strach (I add our commands for Ansible building in the end of Dockerfile) with requirements.

anutator avatar Jul 22 '24 22:07 anutator