Hello,
I am unable to run dagger develop anymore. uv does not seem to respect the custom ca certificate I put in the dagger engine, nor does it respect our internal registry configuration configured in a custom python base image.
python -m codegen generate -i /schema.json -o /gen.py" did not complete successfully: exit code: 2
Stderr:
error: Failed to prepare distributions
Caused by: Failed to fetch wheel: graphql-core==3.2.3
Caused by: Request failed after 3 retries
Caused by: error sending request for url (https://files.pythonhosted.org/packages/f8/39/e5143e7ec70939d2076c1165ae9d4a3815597019c4d797b7f959cf778600/graphql_core-3.2.3-py3-none-any.whl)
Caused by: client error (Connect)
Caused by: invalid peer certificate: UnknownIssuer
engine.Dockerfile
FROM debian:bookworm-slim as cacert
RUN apt-get update && apt-get install -y curl \
&& curl -sSL https://nexus.company.com/repository/raw/ldnca-rca.crt -o \
/usr/local/share/ca-certificates/ldnca-rca.crt
FROM registry.dagger.io/engine:v0.12.4
COPY --from=cacert /usr/local/share/ca-certificates/ldnca-rca.crt \
/usr/local/share/ca-certificates/ldnca-rca.pem
COPY engine.toml /etc/dagger/engine.toml
python.Dockerfile
FROM python:3.11-slim
COPY --from=cacert /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
ENV PIP_INDEX_URL=https://nexus.company.com/repository/pypi-group/simple \
UV_INDEX_URL=https://nexus.company.com/repository/pypi-group/simple \
REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt \
SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
[project]
name = "main"
version = "0.0.0"
dependencies = []
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.dagger]
base-image = "nexus.company.com/docker/dagger-python-base:0.2.2"
use-uv = false
[tool.uv.pip]
index-url = "https://nexus.company.com/repository/pypi-group/simple"