Separate out docker dep into package (#482)

This also then removes support for docker-based containing starting (for
now) from platforms other than windows/darwin/linux as there are build
issues on several.
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-09-28 16:05:15 -04:00
1 parent fde96924af
commit c1a1f8bb1b
10 files changed
+142 -145

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
package docker
import (
"errors"
"sync"
)
var (
StartDbInDocker func(string) (func() error, string, string, error) = startDbInDockerUnsupported
ErrDockerUnsupported = errors.New("docker is not currently supported on this platform")
mx = sync.Mutex{}
)
func startDbInDockerUnsupported(dialect string) (cleanup func() error, retURL, container string, err error) {
return nil, "", "", ErrDockerUnsupported
}