Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
Release (#11)
Browse files Browse the repository at this point in the history
* Project import generated by Copybara.

PiperOrigin-RevId: 159017565

* Project import generated by Copybara.

PiperOrigin-RevId: 159017565

* Project import generated by Copybara.

PiperOrigin-RevId: 159017565

* Project import generated by Copybara.

PiperOrigin-RevId: 159017565

* Project import generated by Copybara.

PiperOrigin-RevId: 159017565

* Project import generated by Copybara.

PiperOrigin-RevId: 159017565

* Project import generated by Copybara.

PiperOrigin-RevId: 159017565

* Project import generated by Copybara.

PiperOrigin-RevId: 159017565

* Project import generated by Copybara.

PiperOrigin-RevId: 159017565

* Project import generated by Copybara.

PiperOrigin-RevId: 159017565

* Project import generated by Copybara.

PiperOrigin-RevId: 159017565

* Project import generated by Copybara.

PiperOrigin-RevId: 159017565

* Revendor (#6)

* remove old vendor dependencies

* re-vendor dependencies

* Revendor (#7)

* remove old vendor dependencies

* re-vendor dependencies

* Project import generated by Copybara.

PiperOrigin-RevId: 159017565

* Revendor (#8)

* remove old vendor dependencies

* re-vendor dependencies

* Project import generated by Copybara.

PiperOrigin-RevId: 159017565

* Project import generated by Copybara.

PiperOrigin-RevId: 162346017

* Project import generated by Copybara.

PiperOrigin-RevId: 162346017

* Project import generated by Copybara.

PiperOrigin-RevId: 162346017
  • Loading branch information
Philmod authored Jul 18, 2017
1 parent 395315c commit 24f892f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
11 changes: 0 additions & 11 deletions build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -654,17 +654,6 @@ func (b *Build) runBuildSteps() error {
// running containers.
defer b.cleanBuildSteps()

// Create the home volume.
vol := volume.New(homeVolume, b.Runner)
if err := vol.Setup(); err != nil {
return err
}
defer func() {
if err := vol.Close(); err != nil {
log.Printf("Failed to delete homevol: %v", err)
}
}()

b.HasMultipleSteps = len(b.Request.Steps) > 1
errors := make(chan error)
var finishedChannels []chan struct{}
Expand Down
3 changes: 0 additions & 3 deletions build/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,6 @@ func TestRunBuildSteps(t *testing.T) {
"docker inspect gcr.io/build-output-tag-1",
"docker inspect gcr.io/build-output-tag-2",
"docker inspect gcr.io/build-output-tag-no-digest",
"docker volume rm homevol",
"docker rm -f step_0 step_1",
"docker volume rm homevol",
},
Expand Down Expand Up @@ -1435,7 +1434,6 @@ func TestStart(t *testing.T) {
"docker run --volume homevol:/builder/home --env HOME=/builder/home --volume /var/run/docker.sock:/var/run/docker.sock gcr.io/cloud-builders/docker pull gcr.io/my-project/my-builder",
dockerRunString(0) + " gcr.io/my-project/my-builder a",
"docker inspect gcr.io/build",
"docker volume rm homevol",
"docker rm -f step_0",
"docker volume rm homevol",
"docker run --volume homevol:/builder/home --env HOME=/builder/home --volume /var/run/docker.sock:/var/run/docker.sock gcr.io/cloud-builders/docker push gcr.io/build",
Expand All @@ -1456,7 +1454,6 @@ func TestStart(t *testing.T) {
"docker run --volume homevol:/builder/home --env HOME=/builder/home --volume /var/run/docker.sock:/var/run/docker.sock gcr.io/cloud-builders/docker pull gcr.io/my-project/my-builder",
dockerRunString(0) + " gcr.io/my-project/my-builder a",
"docker inspect gcr.io/build",
"docker volume rm homevol",
"docker rm -f step_0",
"docker volume rm homevol",
},
Expand Down
2 changes: 1 addition & 1 deletion localbuilder_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func main() {
b := build.New(r, *buildConfig, nil, &buildlog.BuildLog{}, volumeName, true, *push)

if !*dryRun {

// Start the spoofed metadata server.
log.Println("Starting spoofed metadata server...")
if err := metadata.StartServer(r, metadataImageName); err != nil {
Expand Down Expand Up @@ -174,7 +175,6 @@ func main() {
}()

go supplyTokenToMetadata(metadataUpdater, r)

}

b.Start()
Expand Down

0 comments on commit 24f892f

Please sign in to comment.