Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --extra-host arguments to services #1086

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

PigeonF
Copy link
Collaborator

@PigeonF PigeonF commented Feb 5, 2024

When running a docker:dind service I realized that the --extra-host arguments passed to gitlab-ci-local get passed to the running image, but not to the services, which broke the resolution for my finagled $CI_REGISTRY_IMAGE in the docker in docker container (since the registry was resolved in the service container when using docker buildx build --push).

Since the services already get the same volumes as the main container, I think it makes sense to pass the extra-host args as well. What do you think? I don't know how controversial this change is, so if you think this is a bad idea, feel free to close the PR 馃槄 .

P.S. Is the test fine like this? I mostly cobbled it together by combining the existing add-host <test-job> test with the services <multie-job> test.

@firecow firecow merged commit a00b79f into firecow:master Feb 15, 2024
9 checks passed
@PigeonF PigeonF deleted the extra-hosts-in-services branch May 22, 2024 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants