Skip to content

Commit

Permalink
chore(yaml): set detach for services (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockopp committed May 5, 2020
1 parent c497661 commit 3d1e3e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions yaml/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions yaml/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3d1e3e1

Please sign in to comment.