2 Commits

Author SHA1 Message Date
29971c36a0
refactor: moved all fatal errors to logrus
All checks were successful
continuous-integration/drone/push Build is passing
This will allow us to test commands that would normally exit
2021-07-21 09:04:34 +01:00
5e1b076bf9
feat: very basic context management
All checks were successful
continuous-integration/drone/push Build is passing
Taken from this gist by github.com/agbaraka

https://gist.github.com/agbaraka/654a218f8ea13b3da8a47d47595f5d05

There is no in-built way of dealing with contexts using the golang sdk.

This means we have to make our own Dial helper borrowing from Docker CLI

This means all Docker API calls are made within the ssh connection

This uses `docker system dial-stdio`
2021-07-16 09:32:24 +01:00