Use isolated docker config in test sandbox#700
Conversation
|
The idea behind the mount is to achieve the opposite of an isolated config: in CI the host's credentials need to propagate into the container (which is running Docker in Docker) so that pulls are authenticated and builds don't get rate limited (which happens when Dependabot opens multiple PRs at once). Merging this PR would break that behavior. If you wanted to make this more versatile, it would still need to support the option of mounting the config file as it's done right now. |
|
This PR now adds the option to overwrite the docker config. I am not 100% happy with the approach, but I think its a good start for a discussion |
|
I was wondering if it's simpler to flip the logic, i.e. default to not mounting the host config and only do that when requested (it's mostly needed for CI in any case). There's no hard requirement to keep the existing behavior, it's fine to add configuration to CI get what is needed. In that case, one could introduce a |
|
That sounds like a great approach and would make the project easier for new developers to navigate and contribute to. Do you want to take over or should I implement this? |
Whatever you prefer. I won't get around to doing it before next year though, but I guess that's fine too. |
0d5fedb to
38d0749
Compare
38d0749 to
14b0e1e
Compare
63996ec to
eecaae1
Compare
|
I added another commit that applies the correct value in CI still, which seems to work. Thanks again. |
|
Number 700 🥳 |
The test sandbox was mounting
${HOME}/.docker/config.jsoninto the manager/worker containers. That made the tests depend on my local Docker config, which was not compatible with the test suite.This change sets
DOCKER_CONFIG=/tmp/docker-configand mounts an empty named volume, keeping the test environment hermetic and consistent across machines.