Skip to content
Snippets Groups Projects
Commit dbd7e7ee authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Refactor docker-machine calls

This reduces number of API calls using docker-machine, since some of the data are cached.

- Use `Exist` instead of `CanConnect` when acquiring machine
- Cache `DockerCredentials` to not call it every time, just check the machine state with `CanConnect` (consumes one request per build)
- Refactor `Use` to unconditionally allocate machine if we can't connect to existing one
parent 60890166
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment