Skip to main content

Timeline for answer to Dockerfile with Airflow base image wont build in Gitlab by Daniel T

Current License: CC BY-SA 4.0

Post Revisions

11 events
when toggle format what by license comment
3 hours ago comment added Daniel T @MikeS dig deb.debian.org outside Docker, then attempt to ping -c1 that IP inside the Dockerfile. If it works, then add a Dockerfile command to edit /etc/hosts. If not, investigate whether that GitLab Runner has a proxy that you must use. Or ask the admin to disable Docker-in-Docker (DinD), and let you insecurely run the build on the host Docker, as described in my GitLab link
11 hours ago comment added Mike S However, I can curl from the Gitlab script. And confirmed that at least there the PGP SIGNATURE matches my local
12 hours ago comment added Mike S Yeah, with -v I'm now seeing "Could not resolve host: deb.debian.org". So there must be some DNS thing going on
12 hours ago comment added Daniel T @MikeS Does replacing http with https work? Use curl -v to debug. Otherwise, there might be a general networking problem with that GitLab Runner, and you should contact your organization's GitLab admin
12 hours ago comment added Mike S Also, yes, I am using my organization's Gitlab instance
12 hours ago comment added Mike S Hmm. Debug 1 worked as you indicated, but I couldn't even run curl for Debug 2 without an error: "#6 [3/8] RUN curl deb.debian.org/debian/dists/bookworm/InRelease #6 0.496 curl: (6) getaddrinfo() thread failed to start"
12 hours ago history edited Daniel T CC BY-SA 4.0
added 28 characters in body
12 hours ago comment added Daniel T @MikeS Edited. Compare the cURL inside the container to the GPG signature you see in a browser. If you are using your own GitLab instance and not Gitlab.com, then you might have a firewall blocking it
12 hours ago history edited Daniel T CC BY-SA 4.0
added 567 characters in body
12 hours ago comment added Mike S Thanks for your help. I used the image digest (and confirmed it still worked locally), used the docker version you suggested, added docker info to the before_script (which confirmed I'm using 24.0.5, not sure if there's anything else there I should note), and confirmed with cat that the Dockerfile Gitlab is using is correct version. The issue still persists.
13 hours ago history answered Daniel T CC BY-SA 4.0