From 3d1e3e116c4dac671a3ffb128122ea4228b19959 Mon Sep 17 00:00:00 2001 From: Jordan Brockopp Date: Tue, 5 May 2020 14:13:03 -0500 Subject: [PATCH] chore(yaml): set detach for services (#64) --- yaml/service.go | 1 + yaml/service_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/yaml/service.go b/yaml/service.go index 8849b8ee..8dd1cf94 100644 --- a/yaml/service.go +++ b/yaml/service.go @@ -36,6 +36,7 @@ func (s *ServiceSlice) ToPipeline() *pipeline.ContainerSlice { for _, service := range *s { // append the element to the pipeline container slice *serviceSlice = append(*serviceSlice, &pipeline.Container{ + Detach: true, Image: service.Image, Name: service.Name, Entrypoint: service.Entrypoint, diff --git a/yaml/service_test.go b/yaml/service_test.go index 6880fa83..8d7b2729 100644 --- a/yaml/service_test.go +++ b/yaml/service_test.go @@ -22,6 +22,7 @@ func TestYaml_ServiceSlice_ToPipeline(t *testing.T) { slice := []string{"8000:8000"} want := &pipeline.ContainerSlice{ &pipeline.Container{ + Detach: true, Ports: slice, Entrypoint: slice, Environment: mapp,