Move DindVolumeSize to playground opts
This commit is contained in:
6
api.go
6
api.go
@@ -47,12 +47,12 @@ func main() {
|
||||
|
||||
sch.Start()
|
||||
|
||||
d, err := time.ParseDuration(config.DefaultSessionDuration)
|
||||
d, err := time.ParseDuration("4h")
|
||||
if err != nil {
|
||||
log.Fatalf("Cannot parse duration %s. Got: %v", config.DefaultSessionDuration, err)
|
||||
log.Fatalf("Cannot parse duration Got: %v", err)
|
||||
}
|
||||
|
||||
playground := types.Playground{Domain: config.PlaygroundDomain, DefaultDinDInstanceImage: config.DefaultDinDImage, AllowWindowsInstances: config.NoWindows, DefaultSessionDuration: d, AvailableDinDInstanceImages: []string{config.DefaultDinDImage}, Tasks: []string{".*"}}
|
||||
playground := types.Playground{Domain: config.PlaygroundDomain, DefaultDinDInstanceImage: "franela/dind", AllowWindowsInstances: config.NoWindows, DefaultSessionDuration: d, Tasks: []string{".*"}, DockerClientID: "cec293c0-f9dd-4f0b-8c3e-e29df7b956b7", DockerClientSecret: "fdf6f091-3766-44ef-b0be-ab3946e45ec3", DockerHost: "id-stage.docker.com", Extras: map[string]interface{}{"LoginRedirect": "http://localhost:3000"}}
|
||||
if _, err := core.PlaygroundNew(playground); err != nil {
|
||||
log.Fatalf("Cannot create default playground. Got: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user