Skip to content

Commit

Permalink
fix empty build context
Browse files Browse the repository at this point in the history
  • Loading branch information
damoon committed Dec 8, 2021
1 parent 0f7fcc9 commit 42a650e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/d8s/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,9 @@ func executeCommand(args cli.Args, localAddr string) error {
cmd.Stdin = os.Stdin
cmd.Env = os.Environ()
cmd.Env = append(cmd.Env, "DOCKER_HOST=tcp://"+localAddr)
cmd.Env = append(cmd.Env, "DOCKER_BUILDKIT=0")

fmt.Printf("Execute command DOCKER_HOST=tcp://%s %v\n", localAddr, cmd)
fmt.Printf("Execute command DOCKER_HOST=tcp://%s DOCKER_BUILDKIT=0 %v\n", localAddr, cmd)

err := cmd.Run()
if err != nil {
Expand Down Expand Up @@ -419,8 +420,6 @@ func uploadContextHandlerFunc(proxy *httputil.ReverseProxy, localAddr string) ht
}
}

log.Println(chunksList.Bytes())

r.Body = io.NopCloser(bytes.NewReader(chunksList.Bytes()))
r.Header.Add("d8s-chunked", "true")

Expand Down
1 change: 1 addition & 0 deletions tests/docker-build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!bash
set -uexo pipefail
export DOCKER_HOST=tcp://127.0.0.1:12376
export DOCKER_BUILDKIT=0
until docker version; do sleep 1; done

docker build -t wedding-build-test-a -t wedding-build-test-b ./docker -f ./docker/dir/Dockerfile
Expand Down
1 change: 1 addition & 0 deletions tests/docker-inspect.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!bash
set -uexo pipefail
export DOCKER_HOST=tcp://127.0.0.1:12376
export DOCKER_BUILDKIT=0
until docker version; do sleep 1; done

docker pull alpine
Expand Down
1 change: 1 addition & 0 deletions tests/docker-max-memory.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!bash
set -uexo pipefail
export DOCKER_HOST=tcp://127.0.0.1:12376
export DOCKER_BUILDKIT=0
until docker version; do sleep 1; done

docker build ./2gi-build
Expand Down
1 change: 1 addition & 0 deletions tests/docker-pull-tag-push.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!bash
set -uexo pipefail
export DOCKER_HOST=tcp://127.0.0.1:12376
export DOCKER_BUILDKIT=0
until docker version; do sleep 1; done

docker pull alpine
Expand Down
1 change: 1 addition & 0 deletions tests/tilt-ci.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!bash
set -uexo pipefail
export DOCKER_HOST=tcp://127.0.0.1:12376
export DOCKER_BUILDKIT=0
until docker version; do sleep 1; done

cd tilt
Expand Down

0 comments on commit 42a650e

Please sign in to comment.