Build out the docker environment a bit more

This commit is contained in:
Dane Everitt
2019-04-05 21:59:27 -07:00
parent 447dafc76d
commit 3b4555344c
2 changed files with 62 additions and 7 deletions

View File

@@ -173,9 +173,11 @@ func FromConfiguration(data []byte, cfg DockerConfiguration) (*Server, error) {
// this logic in. When we're ready to support other environment we'll need to make
// some modifications here obviously.
var env Environment
env = &DockerEnvironment{
Server: s,
Configuration: cfg,
if t, err := NewDockerEnvironment(cfg); err != nil {
t.Server = s
env = t
} else {
return nil, err
}
s.environment = env