From 6b05aff2d3d22003ba60bc22745b74a0fdd1e450 Mon Sep 17 00:00:00 2001 From: mluu Date: Fri, 6 Nov 2015 10:42:29 -0800 Subject: [PATCH] work around https://github.com/docker/compose/issues/2289 we run into this bug when a project's docker-compose.yml tries to use relative directories. for example, in the BUILD directive --- helpers/docker-compose.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helpers/docker-compose.go b/helpers/docker-compose.go index c7a818c..303732b 100644 --- a/helpers/docker-compose.go +++ b/helpers/docker-compose.go @@ -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") }