Skip to content

Commit

Permalink
work around docker/compose#2289
Browse files Browse the repository at this point in the history
we run into this bug when a project's docker-compose.yml tries to use relative directories. for example, in the BUILD directive
  • Loading branch information
mluu committed Nov 6, 2015
1 parent 678fde6 commit 6b05aff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helpers/docker-compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ package helpers

import (
"io/ioutil"
"os"
)

func CreateTempDockerComposeFile(yaml string) string {
fh, err := ioutil.TempFile("", "lc_docker_compose_template")
cwd, _ := os.Getwd()
fh, err := ioutil.TempFile(cwd, "lc_docker_compose_template")
if err != nil {
panic("could not create temporary yaml file")
}
Expand Down

0 comments on commit 6b05aff

Please sign in to comment.