-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug/Issue
When running, Docker Compose, it fails to install Python packages
What was the problem?
Expected: Running docker compose up successfully builds the system
Actual: SSL certificate errors prevent installation
My hunch is that this is caused by ZScaler, and that the root pems need to be installed in the Docker container specified by ./Dockerfile.
Reproduction steps
- Create a new project
docker compose up
Environment
- Device: laptop
- OS: Mac OS Sonoma 14.7.2 (23H311)
Docker build log
[+] Running 0/0
[+] Running 0/1 Building 0.1s
[+] Building 56.1s (11/11) FINISHED docker:desktop-linux
=> [app internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 264B 0.0s
=> [app internal] load metadata for docker.io/library/python:3.10 1.3s
=> [app auth] library/python:pull token for registry-1.docker.io 0.0s
=> [app internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [app 1/6] FROM docker.io/library/python:3.10@sha256:76f22e4ce53774c1f5eb0ba145edb57b908e7aa329fee75eca69b511c1d0 29.5s
=> => resolve docker.io/library/python:3.10@sha256:76f22e4ce53774c1f5eb0ba145edb57b908e7aa329fee75eca69b511c1d0cd8a 0.0s
=> => sha256:f0bfc6dccbd6287f20f0f2c5a71effd31bae07c15a51f52bc55f049d6a474bcd 20.82MB / 20.82MB 29.2s
=> => sha256:2294d027aed43e387984409a3982ced57306e2a78e4b3345bade54a6e0b29ad7 250B / 250B 0.4s
=> => sha256:7d49e4574da2d8f2419ffdbd2cfc65c6be873a05dab52159fb02b63d8be816fe 6.24MB / 6.24MB 6.0s
=> => extracting sha256:7d49e4574da2d8f2419ffdbd2cfc65c6be873a05dab52159fb02b63d8be816fe 0.1s
=> => extracting sha256:f0bfc6dccbd6287f20f0f2c5a71effd31bae07c15a51f52bc55f049d6a474bcd 0.2s
=> => extracting sha256:2294d027aed43e387984409a3982ced57306e2a78e4b3345bade54a6e0b29ad7 0.0s
=> [app internal] load build context 0.0s
=> => transferring context: 46.85kB 0.0s
=> [app 2/6] RUN apt-get update && apt-get install -y postgresql-client 12.4s
=> [app 3/6] COPY Pipfile Pipfile 0.0s
=> [app 4/6] COPY Pipfile.lock Pipfile.lock 0.0s
=> [app 5/6] RUN pip install pipenv 4.1s
=> ERROR [app 6/6] RUN pipenv install --system --dev 8.7s
------
> [app 6/6] RUN pipenv install --system --dev:
0.237 Installing dependencies from Pipfile.lock (cd9269)...
8.605 Looking in indexes: https://pypi.python.org/simple
8.605 Ignoring greenlet: markers 'python_version >= "3.11" and
8.605 platform_python_implementation == "CPython"' don't match your environment
8.606 Could not fetch URL https://pypi.python.org/simple/asgiref/: There was a problem
8.606 confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org',
8.606 port=443): Max retries exceeded with url: /simple/asgiref/ (Caused by
8.606 SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
8.606 certificate verify failed: unable to get local issuer certificate
8.606 (_ssl.c:1007)'))) - skipping
8.606 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None,
8.606 status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1,
8.606 '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local
8.606 issuer certificate (_ssl.c:1007)'))': /simple/asgiref/
8.607 WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None,
8.607 status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1,
8.607 '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local
8.607 issuer certificate (_ssl.c:1007)'))': /simple/asgiref/
8.607 WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None,
8.607 status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1,
8.607 '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local
8.607 issuer certificate (_ssl.c:1007)'))': /simple/asgiref/
8.608 WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None,
8.608 status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1,
8.608 '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local
8.608 issuer certificate (_ssl.c:1007)'))': /simple/asgiref/
8.609 WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None,
8.609 status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1,
8.609 '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local
8.609 issuer certificate (_ssl.c:1007)'))': /simple/asgiref/
8.609 ERROR: Could not find a version that satisfies the requirement asgiref==3.8.1
8.609 (from versions: none)
8.609 ERROR: No matching distribution found for asgiref==3.8.1
8.609 ERROR: Couldn't install package: {}
[+] Running 0/1installation failed...
⠸ Service app Building 56.3s
failed to solve: process "/bin/sh -c pipenv install --system --dev" did not complete successfully: exit code: 1Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working