Hi!
First of all thanks for all your work, absolutely love Dagger (although I only have basic knowledge of CI).
I'm trying to convert our corporate project pipeline which mainly consists of building and runnning C# projects and running python integration tests to Dagger.
Everything works perfectly when run locally, but I'm running into an issue when triggering the pipeline in GitLab CI.
I set up the following simplified pipeline for debugging purposes:
import os
import anyio
import dagger
import logging
import httpx
logging.basicConfig(
format="%(levelname)s [%(asctime)s] %(name)s - %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
level=logging.DEBUG,
)
async def test():
async with dagger.Connection(
dagger.Config(log_output=sys.stderr)
) as client:
secret_password = client.set_secret("password", os.getenv(SECRET_FOO)
python = (
client.container()
.with_registry_auth(
os.getenv(REGISTRY_URL), os.getenv(REGISTRY_USER), secret_password
)
.from_(
"https://artifactory.COMPANY.com/foo/bar/foobar:3.0"
)
.with_exec(["python", "-V"])
)
# execute
version = await python.stdout()
print(f"Hello from Dagger and {version}")
which leads to the following error:
dagger.exceptions.QueryError: DeadlineExceeded: failed to do request: Head "https://artifactory.COMPANY.com/v2/foo/bar/foobar/manifests/3.0": dial tcp 80.72.131.83:443: i/o timeout
Proxy is properly set via HTTP_PROXY Envs, and httpx logs lead me to believe that it works as expected.
I'm not even sure I need the .with_registry_auth() call.
I can pull the desired just fine before running the dagger pipeline.
I know about the open issues on GitHub regarding private registries, could it be that this is the issue I'm also running into?
I'm happy to provide more information as necessary!
Thanks!
