Skip to content
Snippets Groups Projects

WIP: Use docker networks for connecting to services

5 unresolved threads

What does this MR do?

This MR is build on the previous work on !451 by @dooferlad, to use Docker networks instead of links for inter-container communication.

I added a function connectToBuildNetwork to connect the created containers to a special build network, that is removed after the job finishes.

Question: do we want to support both legacy links and network based on the API version of Docker? See here for the conditional switch between the two.

I saw this commit 226ecfe0, so if it is merged we can safely deprecate links, given that with that minimum API of Docker we assume to have networking available.

Why was this MR needed?

Container links are deprecated and discouraged by Docker

Are there points in the code the reviewer needs to double check?

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Tests
    • Added for this feature/bug
    • All builds are passing
  • Branch has no merge conflicts with master (if you do - rebase it please)

What are the relevant issue numbers?

#1042 #2511

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Thanks @mion00 - i've made a bunch of style comments but there are a couple of architectural ones that should probably be resolved before worrying about that. https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/merge_requests/609#note_32408860 and https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/merge_requests/609#note_32409027 especially.

  • @nick.thomas does anything else need to be done here? I think @mion00 has addressed those 2 comments you wanted to discuss but might be missing something.

    Would be really good to get this in at some point because we've been playing with some truly horrible hacks to try to get services talking across each other that we could drop once this is shipped.

  • Sorry, this one completely fell off my radar. @tmaczukin can you adopt?

  • Please register or sign in to reply
    Loading