Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

images: Build go-runner:buster-v2.0.0 using go1.15 #1499

Merged
merged 5 commits into from
Aug 21, 2020

Conversation

justaugustus
Copy link
Member

@justaugustus justaugustus commented Aug 19, 2020

What type of PR is this?

/kind feature
/area dependency

What this PR does / why we need it:

images: Build go-runner:buster-v2.0.0 using go1.15
(Continuation of #1498.)

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

- images: Build go-runner:buster-v2.0.0 using go1.15
- images/go-runner: Allow PLATFORMS to be configurable
- images/go-runner: Echo platform value before starting build
- images/go-runner: Use multiarch/qemu-user-static
- images/go-runner: Allow fallback to 'direct' for GOPROXY

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. area/dependency Issues or PRs related to dependency changes cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority area/release-eng Issues or PRs related to the Release Engineering subproject size/S Denotes a PR that changes 10-29 lines, ignoring generated files. sig/release Categorizes an issue or PR as relevant to SIG Release. labels Aug 19, 2020
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 19, 2020
@justaugustus justaugustus changed the title [WIP] images/go-runner: Build using go1.15 [WIP] images: Build go-runner:buster-v2.0.0 using go1.15 Aug 19, 2020
@justaugustus
Copy link
Member Author

Testing locally:

$ PLATFORMS="linux/amd64" make manifest 
docker run --rm --privileged linuxkit/binfmt:4ea3b9b0938cbd19834c096aa31ff475cc75d281
docker buildx create --name multiarch-go-runner --use || true
existing instance for multiarch-go-runner but no append mode, specify --node to make changes for existing instances
docker buildx inspect --bootstrap
Name:   multiarch-go-runner
Driver: docker-container

Nodes:
Name:      multiarch-go-runner0
Endpoint:  unix:///var/run/docker.sock
Status:    running
Platforms: linux/amd64, linux/arm64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
# https://github.com/docker/buildx/issues/59
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --load --progress plain --platform linux/amd64 --tag gcr.io/k8s-staging-build-image/go-runner-linux/amd64:buster-v2.0.0 --tag gcr.io/k8s-staging-build-image/go-runner-linux/amd64:v0.4.0-23-g909d7dda0-dirty-buster --tag gcr.io/k8s-staging-build-image/go-runner-linux/amd64:latest-buster --build-arg=GO_VERSION=1.15 --build-arg=DISTROLESS_IMAGE=static-debian10 .;
#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 32B done
#1 DONE 0.0s

#4 [internal] load metadata for docker.io/library/golang:1.15
#4 ...

#3 [internal] load metadata for gcr.io/distroless/static-debian10:latest
#3 DONE 0.3s

#4 [internal] load metadata for docker.io/library/golang:1.15
#4 DONE 0.8s

#5 [stage-1 1/3] FROM gcr.io/distroless/static-debian10:latest@sha256:5586f...
#5 resolve gcr.io/distroless/static-debian10:latest@sha256:5586fbcf517be0d9bf84df3e127aa1ba029183712cece7213b0616ce5a27a7b8 done
#5 DONE 0.0s

#6 [builder 1/6] FROM docker.io/library/golang:1.15@sha256:f92b2f06e4dbda38...
#6 resolve docker.io/library/golang:1.15@sha256:f92b2f06e4dbda381b142d63b009cf5117bb3c487617d4695808fce05a808ebe done
#6 DONE 0.0s

#8 [internal] load build context
#8 transferring context: 85B done
#8 DONE 0.0s

#11 [builder 5/6] RUN go build .
#11 CACHED

#10 [builder 4/6] COPY ./go.* ./
#10 CACHED

#12 [builder 6/6] RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH}     go build -...
#12 CACHED

#7 [builder 2/6] WORKDIR /workspace
#7 CACHED

#9 [builder 3/6] COPY ./go-runner.go ./
#9 CACHED

#13 [stage-1 2/3] COPY --from=builder /workspace/go-runner .
#13 CACHED

#14 exporting to oci image format
#14 exporting layers done
#14 exporting manifest sha256:157e46f1dda5899e47ae2842e6dc6d5d14b5bf9ea931330d6bf733d5ae7d9519
#14 exporting manifest sha256:157e46f1dda5899e47ae2842e6dc6d5d14b5bf9ea931330d6bf733d5ae7d9519 0.0s done
#14 exporting config sha256:c8fa6e3d1352f110b4b844e740260e68a7e1b1c9b6347969d6805b000112f4bc done
#14 sending tarball 0.0s done
#14 DONE 0.1s

#15 importing to docker
#15 DONE 0.0s
docker push gcr.io/k8s-staging-build-image/go-runner-linux/amd64:buster-v2.0.0;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/amd64]
3f02d821e6ae: Layer already exists 
79d541cda6cb: Layer already exists 
buster-v2.0.0: digest: sha256:088493e478eed3570d0c7bbc129737048033a931d8821ed4617db71b22618fed size: 737
docker push gcr.io/k8s-staging-build-image/go-runner-linux/amd64:v0.4.0-23-g909d7dda0-dirty-buster;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/amd64]
3f02d821e6ae: Layer already exists 
79d541cda6cb: Layer already exists 
v0.4.0-23-g909d7dda0-dirty-buster: digest: sha256:088493e478eed3570d0c7bbc129737048033a931d8821ed4617db71b22618fed size: 737
docker push gcr.io/k8s-staging-build-image/go-runner-linux/amd64:latest-buster;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/amd64]
3f02d821e6ae: Layer already exists 
79d541cda6cb: Layer already exists 
latest-buster: digest: sha256:088493e478eed3570d0c7bbc129737048033a931d8821ed4617db71b22618fed size: 737
docker manifest create --amend gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0 gcr.io/k8s-staging-build-image/go-runner-linux/amd64:buster-v2.0.0
Created manifest list gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0
docker manifest push --purge gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0
Pushed ref gcr.io/k8s-staging-build-image/go-runner@sha256:088493e478eed3570d0c7bbc129737048033a931d8821ed4617db71b22618fed with digest: sha256:088493e478eed3570d0c7bbc129737048033a931d8821ed4617db71b22618fed
sha256:7a00783230698adf4d4775ce85b9a1d24ea6384473c6820de9d49c707680729d
$ PLATFORMS="linux/arm64" make manifest 
docker run --rm --privileged linuxkit/binfmt:4ea3b9b0938cbd19834c096aa31ff475cc75d281
docker buildx create --name multiarch-go-runner --use || true
existing instance for multiarch-go-runner but no append mode, specify --node to make changes for existing instances
docker buildx inspect --bootstrap
Name:   multiarch-go-runner
Driver: docker-container

Nodes:
Name:      multiarch-go-runner0
Endpoint:  unix:///var/run/docker.sock
Status:    running
Platforms: linux/amd64, linux/arm64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
# https://github.com/docker/buildx/issues/59
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --load --progress plain --platform linux/arm64 --tag gcr.io/k8s-staging-build-image/go-runner-linux/arm64:buster-v2.0.0 --tag gcr.io/k8s-staging-build-image/go-runner-linux/arm64:v0.4.0-23-g909d7dda0-dirty-buster --tag gcr.io/k8s-staging-build-image/go-runner-linux/arm64:latest-buster --build-arg=GO_VERSION=1.15 --build-arg=DISTROLESS_IMAGE=static-debian10 .;
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 32B done
#2 DONE 0.0s

#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#4 [internal] load metadata for docker.io/library/golang:1.15
#4 ...

#3 [internal] load metadata for gcr.io/distroless/static-debian10:latest
#3 DONE 0.3s

#4 [internal] load metadata for docker.io/library/golang:1.15
#4 DONE 0.4s

#6 [builder 1/6] FROM docker.io/library/golang:1.15@sha256:f92b2f06e4dbda38...
#6 resolve docker.io/library/golang:1.15@sha256:f92b2f06e4dbda381b142d63b009cf5117bb3c487617d4695808fce05a808ebe done
#6 DONE 0.0s

#5 [stage-1 1/3] FROM gcr.io/distroless/static-debian10:latest@sha256:5586f...
#5 resolve gcr.io/distroless/static-debian10:latest@sha256:5586fbcf517be0d9bf84df3e127aa1ba029183712cece7213b0616ce5a27a7b8 done
#5 DONE 0.0s

#8 [internal] load build context
#8 transferring context: 85B done
#8 DONE 0.0s

#9 [builder 3/6] COPY ./go-runner.go ./
#9 CACHED

#7 [builder 2/6] WORKDIR /workspace
#7 CACHED

#11 [builder 5/6] RUN go build .
#11 CACHED

#12 [builder 6/6] RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH}     go build -...
#12 CACHED

#10 [builder 4/6] COPY ./go.* ./
#10 CACHED

#13 [stage-1 2/3] COPY --from=builder /workspace/go-runner .
#13 CACHED

#15 importing to docker
#15 DONE 0.0s

#14 exporting to oci image format
#14 exporting layers done
#14 exporting manifest sha256:e0cf9419f6a19fdd45fda60bc083118e7c97c5d4fb5fb2aca17c417756ec081b 0.0s done
#14 exporting config sha256:90061fcbb87eb6b4438badd7dafea3d7581a61c84c7d553ce4e16df71a81b6dc 0.0s done
#14 sending tarball 0.1s done
#14 DONE 0.1s
docker push gcr.io/k8s-staging-build-image/go-runner-linux/arm64:buster-v2.0.0;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/arm64]
9bb9f57a0991: Layer already exists 
79d541cda6cb: Layer already exists 
buster-v2.0.0: digest: sha256:37e64e25a8a2c11aa536acf80c5bac8d397bcd1d2b885bcd0bfc769a23f6d177 size: 737
docker push gcr.io/k8s-staging-build-image/go-runner-linux/arm64:v0.4.0-23-g909d7dda0-dirty-buster;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/arm64]
9bb9f57a0991: Layer already exists 
79d541cda6cb: Layer already exists 
v0.4.0-23-g909d7dda0-dirty-buster: digest: sha256:37e64e25a8a2c11aa536acf80c5bac8d397bcd1d2b885bcd0bfc769a23f6d177 size: 737
docker push gcr.io/k8s-staging-build-image/go-runner-linux/arm64:latest-buster;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/arm64]
9bb9f57a0991: Layer already exists 
79d541cda6cb: Layer already exists 
latest-buster: digest: sha256:37e64e25a8a2c11aa536acf80c5bac8d397bcd1d2b885bcd0bfc769a23f6d177 size: 737
docker manifest create --amend gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0 gcr.io/k8s-staging-build-image/go-runner-linux/arm64:buster-v2.0.0
Created manifest list gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0
docker manifest push --purge gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0
Pushed ref gcr.io/k8s-staging-build-image/go-runner@sha256:37e64e25a8a2c11aa536acf80c5bac8d397bcd1d2b885bcd0bfc769a23f6d177 with digest: sha256:37e64e25a8a2c11aa536acf80c5bac8d397bcd1d2b885bcd0bfc769a23f6d177
sha256:be9fed37ed3a7bff4dcb5248668ce3b9ce36e0638891f8321f8fa9594cc100ac
$ PLATFORMS="linux/arm" make manifest 
docker run --rm --privileged linuxkit/binfmt:4ea3b9b0938cbd19834c096aa31ff475cc75d281
docker buildx create --name multiarch-go-runner --use || true
existing instance for multiarch-go-runner but no append mode, specify --node to make changes for existing instances
docker buildx inspect --bootstrap
Name:   multiarch-go-runner
Driver: docker-container

Nodes:
Name:      multiarch-go-runner0
Endpoint:  unix:///var/run/docker.sock
Status:    running
Platforms: linux/amd64, linux/arm64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
# https://github.com/docker/buildx/issues/59
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --load --progress plain --platform linux/arm --tag gcr.io/k8s-staging-build-image/go-runner-linux/arm:buster-v2.0.0 --tag gcr.io/k8s-staging-build-image/go-runner-linux/arm:v0.4.0-23-g909d7dda0-dirty-buster --tag gcr.io/k8s-staging-build-image/go-runner-linux/arm:latest-buster --build-arg=GO_VERSION=1.15 --build-arg=DISTROLESS_IMAGE=static-debian10 .;
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 32B done
#2 DONE 0.0s

#4 [internal] load metadata for docker.io/library/golang:1.15
#4 ...

#3 [internal] load metadata for gcr.io/distroless/static-debian10:latest
#3 DONE 0.3s

#4 [internal] load metadata for docker.io/library/golang:1.15
#4 DONE 1.1s

#6 [builder 1/6] FROM docker.io/library/golang:1.15@sha256:f92b2f06e4dbda38...
#6 resolve docker.io/library/golang:1.15@sha256:f92b2f06e4dbda381b142d63b009cf5117bb3c487617d4695808fce05a808ebe done
#6 DONE 0.0s

#5 [stage-1 1/3] FROM gcr.io/distroless/static-debian10:latest@sha256:5586f...
#5 resolve gcr.io/distroless/static-debian10:latest@sha256:5586fbcf517be0d9bf84df3e127aa1ba029183712cece7213b0616ce5a27a7b8 done
#5 DONE 0.0s

#8 [internal] load build context
#8 transferring context: 85B done
#8 DONE 0.0s

#7 [builder 2/6] WORKDIR /workspace
#7 CACHED

#12 [builder 6/6] RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH}     go build -...
#12 CACHED

#10 [builder 4/6] COPY ./go.* ./
#10 CACHED

#9 [builder 3/6] COPY ./go-runner.go ./
#9 CACHED

#11 [builder 5/6] RUN go build .
#11 CACHED

#13 [stage-1 2/3] COPY --from=builder /workspace/go-runner .
#13 CACHED

#15 importing to docker
#15 DONE 0.0s

#14 exporting to oci image format
#14 exporting layers done
#14 exporting manifest sha256:4b1b02c1fc80dc7024dcc2e52c33b815352479d2ee84653e806931df17eb48bc 0.0s done
#14 exporting config sha256:fb244b8807ce418bb289d87085272540632991bd3ba7c844ad3425a7020e79f6 0.0s done
#14 sending tarball 0.1s done
#14 DONE 0.1s
docker push gcr.io/k8s-staging-build-image/go-runner-linux/arm:buster-v2.0.0;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/arm]
729cfee173d8: Layer already exists 
79d541cda6cb: Layer already exists 
buster-v2.0.0: digest: sha256:4dea1d5e0f7b7f16290331b99d62b240174e90ecfc562363db23d3fe11380a5e size: 737
docker push gcr.io/k8s-staging-build-image/go-runner-linux/arm:v0.4.0-23-g909d7dda0-dirty-buster;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/arm]
729cfee173d8: Layer already exists 
79d541cda6cb: Layer already exists 
v0.4.0-23-g909d7dda0-dirty-buster: digest: sha256:4dea1d5e0f7b7f16290331b99d62b240174e90ecfc562363db23d3fe11380a5e size: 737
docker push gcr.io/k8s-staging-build-image/go-runner-linux/arm:latest-buster;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/arm]
729cfee173d8: Layer already exists 
79d541cda6cb: Layer already exists 
latest-buster: digest: sha256:4dea1d5e0f7b7f16290331b99d62b240174e90ecfc562363db23d3fe11380a5e size: 737
docker manifest create --amend gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0 gcr.io/k8s-staging-build-image/go-runner-linux/arm:buster-v2.0.0
Created manifest list gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0
docker manifest push --purge gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0
Pushed ref gcr.io/k8s-staging-build-image/go-runner@sha256:4dea1d5e0f7b7f16290331b99d62b240174e90ecfc562363db23d3fe11380a5e with digest: sha256:4dea1d5e0f7b7f16290331b99d62b240174e90ecfc562363db23d3fe11380a5e
sha256:679fc0c2de95c67b6d814fa975a84918478a2de374169f49214d92610dbefd62
$ PLATFORMS="linux/ppc64le" make manifest 
docker run --rm --privileged linuxkit/binfmt:4ea3b9b0938cbd19834c096aa31ff475cc75d281
docker buildx create --name multiarch-go-runner --use || true
existing instance for multiarch-go-runner but no append mode, specify --node to make changes for existing instances
docker buildx inspect --bootstrap
Name:   multiarch-go-runner
Driver: docker-container

Nodes:
Name:      multiarch-go-runner0
Endpoint:  unix:///var/run/docker.sock
Status:    running
Platforms: linux/amd64, linux/arm64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
# https://github.com/docker/buildx/issues/59
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --load --progress plain --platform linux/ppc64le --tag gcr.io/k8s-staging-build-image/go-runner-linux/ppc64le:buster-v2.0.0 --tag gcr.io/k8s-staging-build-image/go-runner-linux/ppc64le:v0.4.0-23-g909d7dda0-dirty-buster --tag gcr.io/k8s-staging-build-image/go-runner-linux/ppc64le:latest-buster --build-arg=GO_VERSION=1.15 --build-arg=DISTROLESS_IMAGE=static-debian10 .;
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 32B done
#2 DONE 0.0s

#4 [internal] load metadata for docker.io/library/golang:1.15
#4 ...

#3 [internal] load metadata for gcr.io/distroless/static-debian10:latest
#3 DONE 0.3s

#4 [internal] load metadata for docker.io/library/golang:1.15
#4 ERROR: no match for platform in manifest sha256:f92b2f06e4dbda381b142d63b009cf5117bb3c487617d4695808fce05a808ebe: not found

#8 [internal] load build context
#8 DONE 0.0s

#5 [stage-1 1/3] FROM gcr.io/distroless/static-debian10:latest@sha256:5586f...
#5 resolve gcr.io/distroless/static-debian10:latest@sha256:5586fbcf517be0d9bf84df3e127aa1ba029183712cece7213b0616ce5a27a7b8 done
#5 DONE 0.0s

#6 [builder 1/6] FROM docker.io/library/golang:1.15
#6 resolve docker.io/library/golang:1.15
#6 resolve docker.io/library/golang:1.15 0.6s done
#6 ERROR: no match for platform in manifest sha256:f92b2f06e4dbda381b142d63b009cf5117bb3c487617d4695808fce05a808ebe: not found
------
 > [internal] load metadata for docker.io/library/golang:1.15:
------
------
 > [builder 1/6] FROM docker.io/library/golang:1.15:
------
failed to solve: rpc error: code = Unknown desc = failed to load cache key: no match for platform in manifest sha256:f92b2f06e4dbda381b142d63b009cf5117bb3c487617d4695808fce05a808ebe: not found
make: *** [Makefile:52: container] Error 1
$ PLATFORMS="linux/s390x" make manifest 
docker run --rm --privileged linuxkit/binfmt:4ea3b9b0938cbd19834c096aa31ff475cc75d281
docker buildx create --name multiarch-go-runner --use || true
existing instance for multiarch-go-runner but no append mode, specify --node to make changes for existing instances
docker buildx inspect --bootstrap
Name:   multiarch-go-runner
Driver: docker-container

Nodes:
Name:      multiarch-go-runner0
Endpoint:  unix:///var/run/docker.sock
Status:    running
Platforms: linux/amd64, linux/arm64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
# https://github.com/docker/buildx/issues/59
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --load --progress plain --platform linux/s390x --tag gcr.io/k8s-staging-build-image/go-runner-linux/s390x:buster-v2.0.0 --tag gcr.io/k8s-staging-build-image/go-runner-linux/s390x:v0.4.0-23-g909d7dda0-dirty-buster --tag gcr.io/k8s-staging-build-image/go-runner-linux/s390x:latest-buster --build-arg=GO_VERSION=1.15 --build-arg=DISTROLESS_IMAGE=static-debian10 .;
#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 32B done
#1 DONE 0.0s

#4 [internal] load metadata for docker.io/library/golang:1.15
#4 ...

#3 [internal] load metadata for gcr.io/distroless/static-debian10:latest
#3 DONE 0.2s

#4 [internal] load metadata for docker.io/library/golang:1.15
#4 DONE 0.4s

#6 [builder 1/6] FROM docker.io/library/golang:1.15@sha256:f92b2f06e4dbda38...
#6 resolve docker.io/library/golang:1.15@sha256:f92b2f06e4dbda381b142d63b009cf5117bb3c487617d4695808fce05a808ebe done
#6 DONE 0.0s

#5 [stage-1 1/3] FROM gcr.io/distroless/static-debian10:latest@sha256:5586f...
#5 resolve gcr.io/distroless/static-debian10:latest@sha256:5586fbcf517be0d9bf84df3e127aa1ba029183712cece7213b0616ce5a27a7b8 done
#5 DONE 0.0s

#8 [internal] load build context
#8 transferring context: 85B done
#8 DONE 0.0s

#9 [builder 3/6] COPY ./go-runner.go ./
#9 CACHED

#7 [builder 2/6] WORKDIR /workspace
#7 CACHED

#10 [builder 4/6] COPY ./go.* ./
#10 CACHED

#11 [builder 5/6] RUN go build .
#11 0.392 go: github.com/pkg/[email protected]: Get "https://proxy.golang.org/github.com/pkg/errors/@v/v0.9.1.mod": local error: tls: bad record MAC
#11 ERROR: executor failed running [/bin/sh -c go build .]: buildkit-runc did not terminate successfully
------
 > [builder 5/6] RUN go build .:
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c go build .]: buildkit-runc did not terminate successfully
make: *** [Makefile:52: container] Error 1

Seeing some fairly consistent errors with the ppc and s390x issues.
Still investigating...

@justaugustus
Copy link
Member Author

Trying with go1.14.7:

$ PLATFORMS="linux/amd64" make manifest 
docker run --rm --privileged linuxkit/binfmt:4ea3b9b0938cbd19834c096aa31ff475cc75d281
docker buildx create --name multiarch-go-runner --use || true
existing instance for multiarch-go-runner but no append mode, specify --node to make changes for existing instances
docker buildx inspect --bootstrap
Name:   multiarch-go-runner
Driver: docker-container

Nodes:
Name:      multiarch-go-runner0
Endpoint:  unix:///var/run/docker.sock
Status:    running
Platforms: linux/amd64, linux/arm64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
# https://github.com/docker/buildx/issues/59
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --load --progress plain --platform linux/amd64 --tag gcr.io/k8s-staging-build-image/go-runner-linux/amd64:buster-v2.0.0 --tag gcr.io/k8s-staging-build-image/go-runner-linux/amd64:v0.4.0-22-g13bef12ae-buster --tag gcr.io/k8s-staging-build-image/go-runner-linux/amd64:latest-buster --build-arg=GO_VERSION=1.14.7 --build-arg=DISTROLESS_IMAGE=static-debian10 .;
#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 1.32kB done
#1 DONE 0.0s

#4 [internal] load metadata for docker.io/library/golang:1.14.7
#4 ...

#3 [internal] load metadata for gcr.io/distroless/static-debian10:latest
#3 DONE 0.3s

#4 [internal] load metadata for docker.io/library/golang:1.14.7
#4 DONE 1.3s

#5 [stage-1 1/3] FROM gcr.io/distroless/static-debian10:latest@sha256:5586f...
#5 resolve gcr.io/distroless/static-debian10:latest@sha256:5586fbcf517be0d9bf84df3e127aa1ba029183712cece7213b0616ce5a27a7b8 done
#5 DONE 0.0s

#8 [internal] load build context
#8 transferring context: 85B done
#8 DONE 0.0s

#6 [builder 1/6] FROM docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f...
#6 resolve docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e done
#6 sha256:dc6eeb787bb4a7d58d011d6a73b6d9e947a27fd76f3cd56d47d7840abd9c7675 1.79kB / 1.79kB done
#6 sha256:813643441356759e9202aeebde31d45192b5e5e6218cd8d2ad216304bf415551 68.67MB / 68.67MB done
#6 sha256:baaca3151cdbea458395a09ea37ad67fdf83ce383c85548ee98217b7f884f622 6.19kB / 6.19kB done
#6 sha256:80931cf6881673fd161a3fd73e8971fe4a569fd7fbb44e956d261ca58d97dfab 51.83MB / 51.83MB done
#6 sha256:c958d65b3090aefea91284d018b2a86530a3c8174b72616c4e76993c696a5797 7.81MB / 7.81MB done
#6 sha256:d6ff36c9ec4822c9ff8953560f7ba41653b348a9c1136755e653575f58fbded7 50.40MB / 50.40MB done
#6 sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e 2.36kB / 2.36kB done
#6 sha256:edaf0a6b092f5673ec05b40edb606ce58881b2f40494251117d31805225ef064 10.00MB / 10.00MB done
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 0B / 123.75MB 0.1s
#6 sha256:31748c757dd478dfde3f21f4161458aea8a93f788899c8c28aa7aaa5cc883c95 0B / 126B 0.1s
#6 sha256:31748c757dd478dfde3f21f4161458aea8a93f788899c8c28aa7aaa5cc883c95 126B / 126B 0.9s done
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 7.22MB / 123.75MB 1.8s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 14.45MB / 123.75MB 2.4s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 22.78MB / 123.75MB 3.0s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 29.22MB / 123.75MB 3.4s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 36.10MB / 123.75MB 4.0s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 43.97MB / 123.75MB 4.6s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 52.02MB / 123.75MB 5.2s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 59.65MB / 123.75MB 5.8s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 67.48MB / 123.75MB 6.4s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 73.89MB / 123.75MB 7.0s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 81.44MB / 123.75MB 7.3s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 90.37MB / 123.75MB 7.6s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 98.83MB / 123.75MB 7.9s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 107.49MB / 123.75MB 8.2s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 116.30MB / 123.75MB 8.5s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 123.75MB / 123.75MB 8.8s
#6 sha256:a54c81388677755336be862d67b7e2d1ce3c0896a8151ca071ced9b458bd7cec 123.75MB / 123.75MB 9.6s done
#6 unpacking docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e
#6 unpacking docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e 3.6s done
#6 DONE 14.1s

#7 [builder 2/6] WORKDIR /workspace
#7 DONE 4.0s

#9 [builder 3/6] COPY ./go-runner.go ./
#9 DONE 0.0s

#10 [builder 4/6] COPY ./go.* ./
#10 DONE 0.0s

#11 [builder 5/6] RUN go build .
#11 0.593 go: downloading github.com/pkg/errors v0.9.1
#11 DONE 1.1s

#12 [builder 6/6] RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH}     go build -...
#12 DONE 0.3s

#5 [stage-1 1/3] FROM gcr.io/distroless/static-debian10:latest@sha256:5586f...
#5 CACHED

#13 [stage-1 2/3] COPY --from=builder /workspace/go-runner .
#13 DONE 0.1s

#14 exporting to oci image format
#14 exporting layers
#14 exporting layers 0.2s done
#14 exporting manifest sha256:c1a860ed79f7b3c3e230b5801bfd53572f08a2a444b3697590e165dd44a7816b done
#14 exporting config sha256:5d6b5a09100faa680e2bb578f834bae849039025366e356e2902e0f48ceb8d3c done
#14 sending tarball 0.0s done
#14 DONE 0.3s

#15 importing to docker
#15 DONE 0.1s
docker push gcr.io/k8s-staging-build-image/go-runner-linux/amd64:buster-v2.0.0;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/amd64]
4a70ef37074e: Pushed 
79d541cda6cb: Layer already exists 
buster-v2.0.0: digest: sha256:002e02371092ae418cfde6d87f7e32edd75c9d7188d63a8d85e991d9f21704cb size: 737
docker push gcr.io/k8s-staging-build-image/go-runner-linux/amd64:v0.4.0-22-g13bef12ae-buster;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/amd64]
4a70ef37074e: Layer already exists 
79d541cda6cb: Layer already exists 
v0.4.0-22-g13bef12ae-buster: digest: sha256:002e02371092ae418cfde6d87f7e32edd75c9d7188d63a8d85e991d9f21704cb size: 737
docker push gcr.io/k8s-staging-build-image/go-runner-linux/amd64:latest-buster;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/amd64]
4a70ef37074e: Layer already exists 
79d541cda6cb: Layer already exists 
latest-buster: digest: sha256:002e02371092ae418cfde6d87f7e32edd75c9d7188d63a8d85e991d9f21704cb size: 737
docker manifest create --amend gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0 gcr.io/k8s-staging-build-image/go-runner-linux/amd64:buster-v2.0.0
Created manifest list gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0
docker manifest push --purge gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0
Pushed ref gcr.io/k8s-staging-build-image/go-runner@sha256:002e02371092ae418cfde6d87f7e32edd75c9d7188d63a8d85e991d9f21704cb with digest: sha256:002e02371092ae418cfde6d87f7e32edd75c9d7188d63a8d85e991d9f21704cb
sha256:1fbdeb459cc0ff548018c3321f4de2918bba1c7ce25872cb049042c47411740c
$ PLATFORMS="linux/arm64" make manifest 
docker run --rm --privileged linuxkit/binfmt:4ea3b9b0938cbd19834c096aa31ff475cc75d281
docker buildx create --name multiarch-go-runner --use || true
existing instance for multiarch-go-runner but no append mode, specify --node to make changes for existing instances
docker buildx inspect --bootstrap
Name:   multiarch-go-runner
Driver: docker-container

Nodes:
Name:      multiarch-go-runner0
Endpoint:  unix:///var/run/docker.sock
Status:    running
Platforms: linux/amd64, linux/arm64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
# https://github.com/docker/buildx/issues/59
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --load --progress plain --platform linux/arm64 --tag gcr.io/k8s-staging-build-image/go-runner-linux/arm64:buster-v2.0.0 --tag gcr.io/k8s-staging-build-image/go-runner-linux/arm64:v0.4.0-22-g13bef12ae-buster --tag gcr.io/k8s-staging-build-image/go-runner-linux/arm64:latest-buster --build-arg=GO_VERSION=1.14.7 --build-arg=DISTROLESS_IMAGE=static-debian10 .;
#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 32B done
#1 DONE 0.0s

#4 [internal] load metadata for docker.io/library/golang:1.14.7
#4 ...

#3 [internal] load metadata for gcr.io/distroless/static-debian10:latest
#3 DONE 0.5s

#4 [internal] load metadata for docker.io/library/golang:1.14.7
#4 DONE 2.2s

#5 [stage-1 1/3] FROM gcr.io/distroless/static-debian10:latest@sha256:5586f...
#5 resolve gcr.io/distroless/static-debian10:latest@sha256:5586fbcf517be0d9bf84df3e127aa1ba029183712cece7213b0616ce5a27a7b8 done
#5 DONE 0.0s

#8 [internal] load build context
#8 transferring context: 85B done
#8 DONE 0.0s

#6 [builder 1/6] FROM docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f...
#6 resolve docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e done
#6 sha256:25489ec3d5132e315903033d5a22d74253938c069a0cdde792cb21e6dab6ff8f 0B / 101.07MB 0.1s
#6 sha256:f86b5fabb62f79acd92186da3c02d23bd8c15d79603a700959b582bd9e62854c 52.16MB / 52.16MB done
#6 sha256:3c491f7371bfaf9f9e1a7be221279698882ab15846d863e4becf9faa362a1b39 0B / 155B 0.1s
#6 sha256:d5517ee72007172d5b814636405254dea459120ce08f85777bb287d106a6a240 49.18MB / 49.18MB done
#6 sha256:3feb40d9f5fecfa098b8f7ece6c287c6fd61b114043c8b4647359120a7d943a3 9.98MB / 9.98MB done
#6 sha256:148568a75afa3ea152fa01ebb9d37c3961febeb11cc25160ee3bb3ec866a62ff 6.19kB / 6.19kB done
#6 sha256:37c836803dd1977ffe173b42414e8c2ae2e147cee2e1ee34a383f4251cf15a44 62.53MB / 62.53MB done
#6 sha256:0283897ad4463628bd259e1cbb5eb788e7df554b42ae17fc6f5d02c4a56035c2 7.68MB / 7.68MB done
#6 sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e 2.36kB / 2.36kB done
#6 sha256:c4b907453417b91a75733631e0da3a3aeb9ba0fb6f7a7b62eda20c75220a6115 1.79kB / 1.79kB done
#6 sha256:3c491f7371bfaf9f9e1a7be221279698882ab15846d863e4becf9faa362a1b39 155B / 155B 0.6s done
#6 sha256:25489ec3d5132e315903033d5a22d74253938c069a0cdde792cb21e6dab6ff8f 6.93MB / 101.07MB 1.3s
#6 sha256:25489ec3d5132e315903033d5a22d74253938c069a0cdde792cb21e6dab6ff8f 13.78MB / 101.07MB 1.8s
#6 sha256:25489ec3d5132e315903033d5a22d74253938c069a0cdde792cb21e6dab6ff8f 23.93MB / 101.07MB 2.4s
#6 sha256:25489ec3d5132e315903033d5a22d74253938c069a0cdde792cb21e6dab6ff8f 30.99MB / 101.07MB 2.8s
#6 sha256:25489ec3d5132e315903033d5a22d74253938c069a0cdde792cb21e6dab6ff8f 39.24MB / 101.07MB 3.3s
#6 sha256:25489ec3d5132e315903033d5a22d74253938c069a0cdde792cb21e6dab6ff8f 48.09MB / 101.07MB 3.6s
#6 sha256:25489ec3d5132e315903033d5a22d74253938c069a0cdde792cb21e6dab6ff8f 55.68MB / 101.07MB 3.9s
#6 sha256:25489ec3d5132e315903033d5a22d74253938c069a0cdde792cb21e6dab6ff8f 64.25MB / 101.07MB 4.2s
#6 sha256:25489ec3d5132e315903033d5a22d74253938c069a0cdde792cb21e6dab6ff8f 72.98MB / 101.07MB 4.5s
#6 sha256:25489ec3d5132e315903033d5a22d74253938c069a0cdde792cb21e6dab6ff8f 80.87MB / 101.07MB 4.8s
#6 sha256:25489ec3d5132e315903033d5a22d74253938c069a0cdde792cb21e6dab6ff8f 90.70MB / 101.07MB 5.1s
#6 sha256:25489ec3d5132e315903033d5a22d74253938c069a0cdde792cb21e6dab6ff8f 98.85MB / 101.07MB 5.4s
#6 sha256:25489ec3d5132e315903033d5a22d74253938c069a0cdde792cb21e6dab6ff8f 101.07MB / 101.07MB 6.1s done
#6 unpacking docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e
#6 unpacking docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e 3.2s done
#6 DONE 10.0s

#7 [builder 2/6] WORKDIR /workspace
#7 DONE 3.8s

#9 [builder 3/6] COPY ./go-runner.go ./
#9 DONE 0.0s

#10 [builder 4/6] COPY ./go.* ./
#10 DONE 0.1s

#11 [builder 5/6] RUN go build .
#11 0.883 go: downloading github.com/pkg/errors v0.9.1
#11 DONE 4.4s

#12 [builder 6/6] RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH}     go build -...
#12 DONE 1.9s

#5 [stage-1 1/3] FROM gcr.io/distroless/static-debian10:latest@sha256:5586f...
#5 CACHED

#13 [stage-1 2/3] COPY --from=builder /workspace/go-runner .
#13 DONE 0.1s

#14 exporting to oci image format
#14 exporting layers
#14 exporting layers 0.2s done
#14 exporting manifest sha256:5a3978a23312488cfc62ce602cebc38e47c0fca9c207270ab00d028739ac0d7c 0.0s done
#14 exporting config sha256:a307c494bb284957c9600e99ccf84ec80f5144c6e41499ff07cc23608681e32c 0.0s done
#14 sending tarball
#14 sending tarball 0.1s done
#14 DONE 0.3s

#15 importing to docker
#15 DONE 0.1s
docker push gcr.io/k8s-staging-build-image/go-runner-linux/arm64:buster-v2.0.0;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/arm64]
cd2b044e1fb1: Pushed 
79d541cda6cb: Layer already exists 
buster-v2.0.0: digest: sha256:73c666970d6d2e6a3747f6f8f3415cb532a730f6a2332439329655b26ad273be size: 737
docker push gcr.io/k8s-staging-build-image/go-runner-linux/arm64:v0.4.0-22-g13bef12ae-buster;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/arm64]
cd2b044e1fb1: Layer already exists 
79d541cda6cb: Layer already exists 
v0.4.0-22-g13bef12ae-buster: digest: sha256:73c666970d6d2e6a3747f6f8f3415cb532a730f6a2332439329655b26ad273be size: 737
docker push gcr.io/k8s-staging-build-image/go-runner-linux/arm64:latest-buster;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/arm64]
cd2b044e1fb1: Layer already exists 
79d541cda6cb: Layer already exists 
latest-buster: digest: sha256:73c666970d6d2e6a3747f6f8f3415cb532a730f6a2332439329655b26ad273be size: 737
docker manifest create --amend gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0 gcr.io/k8s-staging-build-image/go-runner-linux/arm64:buster-v2.0.0
Created manifest list gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0
docker manifest push --purge gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0
Pushed ref gcr.io/k8s-staging-build-image/go-runner@sha256:73c666970d6d2e6a3747f6f8f3415cb532a730f6a2332439329655b26ad273be with digest: sha256:73c666970d6d2e6a3747f6f8f3415cb532a730f6a2332439329655b26ad273be
sha256:53c2e46f76dd90c3d4ee0a0b784cac8e5c3b6829f1b02a15d0769994820089a4
$ PLATFORMS="linux/arm" make manifest 
docker run --rm --privileged linuxkit/binfmt:4ea3b9b0938cbd19834c096aa31ff475cc75d281
docker buildx create --name multiarch-go-runner --use || true
existing instance for multiarch-go-runner but no append mode, specify --node to make changes for existing instances
docker buildx inspect --bootstrap
Name:   multiarch-go-runner
Driver: docker-container

Nodes:
Name:      multiarch-go-runner0
Endpoint:  unix:///var/run/docker.sock
Status:    running
Platforms: linux/amd64, linux/arm64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
# https://github.com/docker/buildx/issues/59
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --load --progress plain --platform linux/arm --tag gcr.io/k8s-staging-build-image/go-runner-linux/arm:buster-v2.0.0 --tag gcr.io/k8s-staging-build-image/go-runner-linux/arm:v0.4.0-22-g13bef12ae-buster --tag gcr.io/k8s-staging-build-image/go-runner-linux/arm:latest-buster --build-arg=GO_VERSION=1.14.7 --build-arg=DISTROLESS_IMAGE=static-debian10 .;
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 32B done
#2 DONE 0.0s

#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#4 [internal] load metadata for docker.io/library/golang:1.14.7
#4 ...

#3 [internal] load metadata for gcr.io/distroless/static-debian10:latest
#3 DONE 0.3s

#4 [internal] load metadata for docker.io/library/golang:1.14.7
#4 ERROR: failed to copy: httpReaderSeeker: failed open: failed to do request: Get https://registry-1.docker.io/v2/library/golang/manifests/sha256:5be5d17fc3bd51a70fd2b8bd893e25622c4dabc1279f1bc27d5cc307796aabb7: EOF

#8 [internal] load build context
#8 DONE 0.0s

#5 [stage-1 1/3] FROM gcr.io/distroless/static-debian10:latest@sha256:5586f...
#5 resolve gcr.io/distroless/static-debian10:latest@sha256:5586fbcf517be0d9bf84df3e127aa1ba029183712cece7213b0616ce5a27a7b8 done
#5 DONE 0.0s

#6 [builder 1/6] FROM docker.io/library/golang:1.14.7
#6 resolve docker.io/library/golang:1.14.7
#6 resolve docker.io/library/golang:1.14.7 0.8s done
#6 DONE 0.8s

#6 [builder 1/6] FROM docker.io/library/golang:1.14.7
#6 DONE 1.5s

#8 [internal] load build context
#8 transferring context: 85B done
#8 DONE 0.0s

#6 [builder 1/6] FROM docker.io/library/golang:1.14.7
#6 sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e 2.36kB / 2.36kB done
#6 sha256:e48f5852a753b7731e5d374567ae9b64e309805758f336c76d5f13bb67c94e20 9.34MB / 9.34MB done
#6 sha256:cff6bd4a89fc21d80ca6924320f86708f35ddea71c7aa34a408a5b64257c764e 7.10MB / 7.10MB done
#6 sha256:d5a553a9a71e4ad89c4a617f9dd1748d2b72711061e7e84b1f4ae13b4bd7744f 6.15kB / 6.15kB done
#6 sha256:5be5d17fc3bd51a70fd2b8bd893e25622c4dabc1279f1bc27d5cc307796aabb7 1.79kB / 1.79kB done
#6 sha256:23890d661de3db737c92b62a0280db54b7d20c61d511e3428e94fd8be5ece239 0B / 156B 0.1s
#6 sha256:0fb05471d9930e275bf9cac0b1bb0b93b8dde80ac8dd073dcb65c384d6d9e2ad 53.14MB / 53.14MB done
#6 sha256:e7cf402ee4b1ba67e92813d50297a082bbdbdd4d47f6aeb62f2316b81d5dc843 45.87MB / 45.87MB done
#6 sha256:e58a93b33dd4d533cc1e04eab8045940d69cb287134aa90c982e3d248739044e 47.36MB / 47.36MB done
#6 sha256:7bad795d276084dc551c5d33c064e80dec4325b4ae1cdb8966fc23edfa7d107b 0B / 101.81MB 0.1s
#6 sha256:23890d661de3db737c92b62a0280db54b7d20c61d511e3428e94fd8be5ece239 156B / 156B 0.4s done
#6 sha256:7bad795d276084dc551c5d33c064e80dec4325b4ae1cdb8966fc23edfa7d107b 6.96MB / 101.81MB 0.9s
#6 sha256:7bad795d276084dc551c5d33c064e80dec4325b4ae1cdb8966fc23edfa7d107b 14.60MB / 101.81MB 1.2s
#6 sha256:7bad795d276084dc551c5d33c064e80dec4325b4ae1cdb8966fc23edfa7d107b 23.28MB / 101.81MB 1.5s
#6 sha256:7bad795d276084dc551c5d33c064e80dec4325b4ae1cdb8966fc23edfa7d107b 31.89MB / 101.81MB 1.8s
#6 sha256:7bad795d276084dc551c5d33c064e80dec4325b4ae1cdb8966fc23edfa7d107b 40.77MB / 101.81MB 2.1s
#6 sha256:7bad795d276084dc551c5d33c064e80dec4325b4ae1cdb8966fc23edfa7d107b 53.26MB / 101.81MB 2.5s
#6 sha256:7bad795d276084dc551c5d33c064e80dec4325b4ae1cdb8966fc23edfa7d107b 61.23MB / 101.81MB 2.8s
#6 sha256:7bad795d276084dc551c5d33c064e80dec4325b4ae1cdb8966fc23edfa7d107b 66.70MB / 101.81MB 3.1s
#6 sha256:7bad795d276084dc551c5d33c064e80dec4325b4ae1cdb8966fc23edfa7d107b 75.20MB / 101.81MB 3.7s
#6 sha256:7bad795d276084dc551c5d33c064e80dec4325b4ae1cdb8966fc23edfa7d107b 86.66MB / 101.81MB 4.3s
#6 sha256:7bad795d276084dc551c5d33c064e80dec4325b4ae1cdb8966fc23edfa7d107b 93.63MB / 101.81MB 4.8s
#6 sha256:7bad795d276084dc551c5d33c064e80dec4325b4ae1cdb8966fc23edfa7d107b 100.59MB / 101.81MB 5.2s
#6 sha256:7bad795d276084dc551c5d33c064e80dec4325b4ae1cdb8966fc23edfa7d107b 101.81MB / 101.81MB 5.9s done
#6 unpacking docker.io/library/golang:1.14.7
#6 unpacking docker.io/library/golang:1.14.7 3.2s done
#6 DONE 9.1s

#7 [builder 2/6] WORKDIR /workspace
#7 DONE 4.9s

#9 [builder 3/6] COPY ./go-runner.go ./
#9 DONE 0.1s

#10 [builder 4/6] COPY ./go.* ./
#10 DONE 0.1s

#11 [builder 5/6] RUN go build .
#11 0.157 /bin/sh: 1: go: not found
#11 ERROR: executor failed running [/bin/sh -c go build .]: buildkit-runc did not terminate successfully
------
 > [internal] load metadata for docker.io/library/golang:1.14.7:
------
------
 > [builder 5/6] RUN go build .:
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c go build .]: buildkit-runc did not terminate successfully
make: *** [Makefile:52: container] Error 1
$ PLATFORMS="linux/ppc64le" make manifest 
docker run --rm --privileged linuxkit/binfmt:4ea3b9b0938cbd19834c096aa31ff475cc75d281
docker buildx create --name multiarch-go-runner --use || true
existing instance for multiarch-go-runner but no append mode, specify --node to make changes for existing instances
docker buildx inspect --bootstrap
Name:   multiarch-go-runner
Driver: docker-container

Nodes:
Name:      multiarch-go-runner0
Endpoint:  unix:///var/run/docker.sock
Status:    running
Platforms: linux/amd64, linux/arm64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
# https://github.com/docker/buildx/issues/59
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --load --progress plain --platform linux/ppc64le --tag gcr.io/k8s-staging-build-image/go-runner-linux/ppc64le:buster-v2.0.0 --tag gcr.io/k8s-staging-build-image/go-runner-linux/ppc64le:v0.4.0-22-g13bef12ae-buster --tag gcr.io/k8s-staging-build-image/go-runner-linux/ppc64le:latest-buster --build-arg=GO_VERSION=1.14.7 --build-arg=DISTROLESS_IMAGE=static-debian10 .;
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 32B done
#2 DONE 0.0s

#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#4 [internal] load metadata for docker.io/library/golang:1.14.7
#4 ...

#3 [internal] load metadata for gcr.io/distroless/static-debian10:latest
#3 DONE 0.3s

#4 [internal] load metadata for docker.io/library/golang:1.14.7
#4 DONE 1.7s

#5 [stage-1 1/3] FROM gcr.io/distroless/static-debian10:latest@sha256:5586f...
#5 resolve gcr.io/distroless/static-debian10:latest@sha256:5586fbcf517be0d9bf84df3e127aa1ba029183712cece7213b0616ce5a27a7b8 done
#5 DONE 0.0s

#8 [internal] load build context
#8 transferring context: 85B done
#8 DONE 0.0s

#6 [builder 1/6] FROM docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f...
#6 resolve docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e done
#6 sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e 2.36kB / 2.36kB done
#6 sha256:ce5bd01cbd6b75bc0f155b52413624254ce94e65d6421e501c2e301517cf3283 1.79kB / 1.79kB done
#6 sha256:5d8f1d1f9197bf1817cda35a89da9bd2544ceb7bf0c7b92fba5977ab2b2ab9e6 0B / 10.73MB 0.1s
#6 sha256:52fd5572e37dc1cc4fac294ef60586bd8e1b9bfd0ccc518346d75710d3e43309 6.19kB / 6.19kB done
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 0B / 73.58MB 0.1s
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 0B / 99.93MB 0.1s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 0B / 57.46MB 0.1s
#6 sha256:2d03c7a4093ad1dd2871192ca8305c891572b6125edd265c72ec7b46b47f5524 0B / 156B 0.1s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 0B / 54.14MB 0.1s
#6 sha256:dfe2d012519ce68bcd2414835909fb4784fd4eb5bea2c88916fdea0c661c872e 0B / 8.25MB 0.1s
#6 sha256:2d03c7a4093ad1dd2871192ca8305c891572b6125edd265c72ec7b46b47f5524 156B / 156B 0.5s done
#6 sha256:5d8f1d1f9197bf1817cda35a89da9bd2544ceb7bf0c7b92fba5977ab2b2ab9e6 1.08MB / 10.73MB 0.7s
#6 sha256:dfe2d012519ce68bcd2414835909fb4784fd4eb5bea2c88916fdea0c661c872e 1.05MB / 8.25MB 0.7s
#6 sha256:5d8f1d1f9197bf1817cda35a89da9bd2544ceb7bf0c7b92fba5977ab2b2ab9e6 1.90MB / 10.73MB 0.9s
#6 sha256:dfe2d012519ce68bcd2414835909fb4784fd4eb5bea2c88916fdea0c661c872e 1.81MB / 8.25MB 0.9s
#6 sha256:5d8f1d1f9197bf1817cda35a89da9bd2544ceb7bf0c7b92fba5977ab2b2ab9e6 2.51MB / 10.73MB 1.0s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 2.85MB / 54.14MB 1.0s
#6 sha256:dfe2d012519ce68bcd2414835909fb4784fd4eb5bea2c88916fdea0c661c872e 2.51MB / 8.25MB 1.0s
#6 sha256:5d8f1d1f9197bf1817cda35a89da9bd2544ceb7bf0c7b92fba5977ab2b2ab9e6 3.54MB / 10.73MB 1.2s
#6 sha256:dfe2d012519ce68bcd2414835909fb4784fd4eb5bea2c88916fdea0c661c872e 3.25MB / 8.25MB 1.2s
#6 sha256:5d8f1d1f9197bf1817cda35a89da9bd2544ceb7bf0c7b92fba5977ab2b2ab9e6 4.29MB / 10.73MB 1.3s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 4.04MB / 73.58MB 1.3s
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 5.48MB / 99.93MB 1.3s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 3.51MB / 57.46MB 1.3s
#6 sha256:dfe2d012519ce68bcd2414835909fb4784fd4eb5bea2c88916fdea0c661c872e 4.00MB / 8.25MB 1.3s
#6 sha256:5d8f1d1f9197bf1817cda35a89da9bd2544ceb7bf0c7b92fba5977ab2b2ab9e6 5.13MB / 10.73MB 1.5s
#6 sha256:dfe2d012519ce68bcd2414835909fb4784fd4eb5bea2c88916fdea0c661c872e 4.86MB / 8.25MB 1.5s
#6 sha256:5d8f1d1f9197bf1817cda35a89da9bd2544ceb7bf0c7b92fba5977ab2b2ab9e6 5.94MB / 10.73MB 1.6s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 5.56MB / 54.14MB 1.6s
#6 sha256:dfe2d012519ce68bcd2414835909fb4784fd4eb5bea2c88916fdea0c661c872e 5.70MB / 8.25MB 1.6s
#6 sha256:5d8f1d1f9197bf1817cda35a89da9bd2544ceb7bf0c7b92fba5977ab2b2ab9e6 6.85MB / 10.73MB 1.8s
#6 sha256:dfe2d012519ce68bcd2414835909fb4784fd4eb5bea2c88916fdea0c661c872e 6.67MB / 8.25MB 1.8s
#6 sha256:5d8f1d1f9197bf1817cda35a89da9bd2544ceb7bf0c7b92fba5977ab2b2ab9e6 7.74MB / 10.73MB 1.9s
#6 sha256:dfe2d012519ce68bcd2414835909fb4784fd4eb5bea2c88916fdea0c661c872e 7.58MB / 8.25MB 1.9s
#6 sha256:5d8f1d1f9197bf1817cda35a89da9bd2544ceb7bf0c7b92fba5977ab2b2ab9e6 8.76MB / 10.73MB 2.1s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 6.38MB / 57.46MB 2.1s
#6 sha256:dfe2d012519ce68bcd2414835909fb4784fd4eb5bea2c88916fdea0c661c872e 8.25MB / 8.25MB 2.1s done
#6 sha256:5d8f1d1f9197bf1817cda35a89da9bd2544ceb7bf0c7b92fba5977ab2b2ab9e6 9.85MB / 10.73MB 2.2s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 8.76MB / 54.14MB 2.2s
#6 sha256:5d8f1d1f9197bf1817cda35a89da9bd2544ceb7bf0c7b92fba5977ab2b2ab9e6 10.73MB / 10.73MB 2.4s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 8.46MB / 73.58MB 2.4s
#6 sha256:5d8f1d1f9197bf1817cda35a89da9bd2544ceb7bf0c7b92fba5977ab2b2ab9e6 10.73MB / 10.73MB 2.4s done
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 10.57MB / 99.93MB 2.5s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 10.13MB / 57.46MB 2.7s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 12.34MB / 54.14MB 2.7s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 12.65MB / 73.58MB 3.1s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 15.17MB / 54.14MB 3.4s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 13.43MB / 57.46MB 3.6s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 16.55MB / 73.58MB 3.9s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 18.17MB / 54.14MB 3.9s
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 15.85MB / 99.93MB 4.2s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 16.53MB / 57.46MB 4.2s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 20.95MB / 54.14MB 4.3s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 20.68MB / 73.58MB 4.6s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 19.92MB / 57.46MB 4.8s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 23.81MB / 54.14MB 4.8s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 24.96MB / 73.58MB 5.2s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 26.63MB / 54.14MB 5.2s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 23.39MB / 57.46MB 5.4s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 29.55MB / 54.14MB 5.7s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 29.56MB / 73.58MB 5.8s
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 21.26MB / 99.93MB 6.0s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 27.25MB / 57.46MB 6.0s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 32.60MB / 54.14MB 6.0s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 33.77MB / 73.58MB 6.3s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 35.36MB / 54.14MB 6.3s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 30.83MB / 57.46MB 6.4s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 38.13MB / 54.14MB 6.6s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 38.47MB / 73.58MB 6.7s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 34.09MB / 57.46MB 6.9s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 41.02MB / 54.14MB 6.9s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 43.22MB / 73.58MB 7.2s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 43.83MB / 54.14MB 7.2s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 37.41MB / 57.46MB 7.3s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 46.62MB / 54.14MB 7.5s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 47.82MB / 73.58MB 7.6s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 40.43MB / 57.46MB 7.9s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 49.45MB / 54.14MB 8.1s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 52.92MB / 73.58MB 8.7s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 43.39MB / 57.46MB 8.7s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 52.38MB / 54.14MB 8.7s
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 26.34MB / 99.93MB 9.3s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 56.87MB / 73.58MB 9.4s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 46.30MB / 57.46MB 9.4s
#6 sha256:db4e2d8d5901311f959f0a2271be587f91ea2826238f2a17347ffab142413f53 54.14MB / 54.14MB 9.3s done
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 61.18MB / 73.58MB 9.9s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 49.39MB / 57.46MB 9.9s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 65.80MB / 73.58MB 10.3s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 52.63MB / 57.46MB 10.3s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 70.62MB / 73.58MB 10.6s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 56.82MB / 57.46MB 10.9s
#6 sha256:dc5c6edc9cffc52d437053d5b7d8f834d50534c930afa90b1b3aff08912cddad 73.58MB / 73.58MB 11.0s done
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 31.47MB / 99.93MB 11.2s
#6 sha256:1301750ffb48db80c63d6d21adae9f88f4f4aaf4f561ab3512287683a04c04c0 57.46MB / 57.46MB 11.3s done
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 36.99MB / 99.93MB 11.8s
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 44.16MB / 99.93MB 12.3s
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 51.26MB / 99.93MB 12.6s
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 60.16MB / 99.93MB 12.9s
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 69.00MB / 99.93MB 13.2s
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 77.86MB / 99.93MB 13.5s
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 86.73MB / 99.93MB 13.8s
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 95.54MB / 99.93MB 14.1s
#6 sha256:278f5672d3fc234a1d7d6ccc52e34b21d26e8f936444ab371aabd58de5968164 99.93MB / 99.93MB 14.6s done
#6 unpacking docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e
#6 unpacking docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e 9.4s done
#6 DONE 24.4s

#7 [builder 2/6] WORKDIR /workspace
#7 DONE 4.8s

#9 [builder 3/6] COPY ./go-runner.go ./
#9 DONE 0.0s

#10 [builder 4/6] COPY ./go.* ./
#10 DONE 0.0s

#11 [builder 5/6] RUN go build .
#11 2.019 go: downloading github.com/pkg/errors v0.9.1
#11 DONE 5.0s

#12 [builder 6/6] RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH}     go build -...
#12 DONE 1.9s

#5 [stage-1 1/3] FROM gcr.io/distroless/static-debian10:latest@sha256:5586f...
#5 CACHED

#13 [stage-1 2/3] COPY --from=builder /workspace/go-runner .
#13 DONE 0.1s

#14 exporting to oci image format
#14 exporting layers
#14 exporting layers 0.2s done
#14 exporting manifest sha256:c20018a7638f6a4a53872f8f95edf73c094c2885455f1654f96b778489af42bd 0.0s done
#14 exporting config sha256:b769b8ea106839e2df06a64642735e0ba8ecfc44d9177b28bfbc03c737168730 done
#14 sending tarball
#14 sending tarball 0.0s done
#14 DONE 0.3s

#15 importing to docker
#15 DONE 0.1s
docker push gcr.io/k8s-staging-build-image/go-runner-linux/ppc64le:buster-v2.0.0;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/ppc64le]
58097c0400b3: Pushed 
79d541cda6cb: Layer already exists 
buster-v2.0.0: digest: sha256:fb5195feceb59f64a8418110f81a843e2227b7bb4304986d113646a006be7b8d size: 737
docker push gcr.io/k8s-staging-build-image/go-runner-linux/ppc64le:v0.4.0-22-g13bef12ae-buster;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/ppc64le]
58097c0400b3: Layer already exists 
79d541cda6cb: Layer already exists 
v0.4.0-22-g13bef12ae-buster: digest: sha256:fb5195feceb59f64a8418110f81a843e2227b7bb4304986d113646a006be7b8d size: 737
docker push gcr.io/k8s-staging-build-image/go-runner-linux/ppc64le:latest-buster;
The push refers to repository [gcr.io/k8s-staging-build-image/go-runner-linux/ppc64le]
58097c0400b3: Layer already exists 
79d541cda6cb: Layer already exists 
latest-buster: digest: sha256:fb5195feceb59f64a8418110f81a843e2227b7bb4304986d113646a006be7b8d size: 737
docker manifest create --amend gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0 gcr.io/k8s-staging-build-image/go-runner-linux/ppc64le:buster-v2.0.0
Created manifest list gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0
docker manifest push --purge gcr.io/k8s-staging-build-image/go-runner:buster-v2.0.0
Pushed ref gcr.io/k8s-staging-build-image/go-runner@sha256:fb5195feceb59f64a8418110f81a843e2227b7bb4304986d113646a006be7b8d with digest: sha256:fb5195feceb59f64a8418110f81a843e2227b7bb4304986d113646a006be7b8d
sha256:2b13de154762f28522a5d3aace796e7acfcb7c326bc01914c56ab7738a672103
$ PLATFORMS="linux/s390x" make manifest 
docker run --rm --privileged linuxkit/binfmt:4ea3b9b0938cbd19834c096aa31ff475cc75d281
docker buildx create --name multiarch-go-runner --use || true
existing instance for multiarch-go-runner but no append mode, specify --node to make changes for existing instances
docker buildx inspect --bootstrap
Name:   multiarch-go-runner
Driver: docker-container

Nodes:
Name:      multiarch-go-runner0
Endpoint:  unix:///var/run/docker.sock
Status:    running
Platforms: linux/amd64, linux/arm64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
# https://github.com/docker/buildx/issues/59
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --load --progress plain --platform linux/s390x --tag gcr.io/k8s-staging-build-image/go-runner-linux/s390x:buster-v2.0.0 --tag gcr.io/k8s-staging-build-image/go-runner-linux/s390x:v0.4.0-22-g13bef12ae-buster --tag gcr.io/k8s-staging-build-image/go-runner-linux/s390x:latest-buster --build-arg=GO_VERSION=1.14.7 --build-arg=DISTROLESS_IMAGE=static-debian10 .;
#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 32B done
#1 DONE 0.0s

#4 [internal] load metadata for docker.io/library/golang:1.14.7
#4 ...

#3 [internal] load metadata for gcr.io/distroless/static-debian10:latest
#3 DONE 0.3s

#4 [internal] load metadata for docker.io/library/golang:1.14.7
#4 DONE 1.4s

#5 [stage-1 1/3] FROM gcr.io/distroless/static-debian10:latest@sha256:5586f...
#5 resolve gcr.io/distroless/static-debian10:latest@sha256:5586fbcf517be0d9bf84df3e127aa1ba029183712cece7213b0616ce5a27a7b8 done
#5 DONE 0.0s

#8 [internal] load build context
#8 transferring context: 85B done
#8 DONE 0.0s

#6 [builder 1/6] FROM docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f...
#6 resolve docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e done
#6 sha256:e060fbdc544cffa8f72ebc5c629d0fd77e9f0ea787a2eec80f4a77dd0833d747 56.74MB / 56.74MB done
#6 sha256:44e2ce491a55134d5e4118405670fcc19b140898dc8ac62156e47a49f52e9f2d 51.38MB / 51.38MB done
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 0B / 105.36MB 0.1s
#6 sha256:64eefea902234e4e19ee9d8a33195d6ce13a8f6e586355c9099aac0634c3742f 0B / 156B 0.1s
#6 sha256:23ffecb808bd421be3db88ff08f67b19f28c1ffe0d4c157be3fcff3360f527bc 9.88MB / 9.88MB done
#6 sha256:f2b199a6d9adcfa5f879ec8042306ab2f919623f8018d0d7a6f4e9dade5e1a71 48.97MB / 48.97MB done
#6 sha256:5615f13ce6c82698ac5df02b39113e3a8949db1a7a7f7f5d07c9265ee15b79d0 7.39MB / 7.39MB done
#6 sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e 2.36kB / 2.36kB done
#6 sha256:f27bc3d81794709f8103fa79f37e06360653d70edb440b0f7d718af5b7f289cf 1.79kB / 1.79kB done
#6 sha256:e433e715f8d142b1496e2765bd02ebb9e2819ec9431372d4e68dd6810eee938e 6.19kB / 6.19kB done
#6 sha256:64eefea902234e4e19ee9d8a33195d6ce13a8f6e586355c9099aac0634c3742f 156B / 156B 1.0s done
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 6.59MB / 105.36MB 1.8s
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 11.59MB / 105.36MB 6.9s
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 16.96MB / 105.36MB 9.0s
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 23.31MB / 105.36MB 9.9s
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 29.65MB / 105.36MB 10.5s
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 37.05MB / 105.36MB 10.9s
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 42.76MB / 105.36MB 11.2s
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 48.99MB / 105.36MB 11.5s
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 56.35MB / 105.36MB 11.8s
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 64.90MB / 105.36MB 12.1s
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 72.73MB / 105.36MB 12.4s
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 81.41MB / 105.36MB 12.7s
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 90.19MB / 105.36MB 13.0s
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 99.07MB / 105.36MB 13.3s
#6 sha256:1ef13c448bc2ffc9c6a977038f2004be2b7045f4957cd5bc2955f80a108ec281 105.36MB / 105.36MB 13.7s done
#6 unpacking docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e
#6 unpacking docker.io/library/golang:1.14.7@sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e 3.1s done
#6 DONE 17.8s

#7 [builder 2/6] WORKDIR /workspace
#7 DONE 2.4s

#9 [builder 3/6] COPY ./go-runner.go ./
#9 DONE 0.0s

#10 [builder 4/6] COPY ./go.* ./
#10 DONE 0.0s

#11 [builder 5/6] RUN go build .
#11 1.116 go: github.com/pkg/[email protected]: Get "https://proxy.golang.org/github.com/pkg/errors/@v/v0.9.1.mod": tls: invalid signature by the server certificate: ECDSA verification failure
#11 ERROR: executor failed running [/bin/sh -c go build .]: buildkit-runc did not terminate successfully
------
 > [builder 5/6] RUN go build .:
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c go build .]: buildkit-runc did not terminate successfully
make: *** [Makefile:52: container] Error 1

linux/arm and linux/s390x fail here.

@justaugustus justaugustus force-pushed the go-runner-115 branch 2 times, most recently from 7d2b940 to 650caa1 Compare August 20, 2020 02:43
@justaugustus
Copy link
Member Author

Build passes at e9b8005 after setting:

RUN cat ./go.sum
ENV GOPROXY="direct"

RUN go clean -modcache
RUN go mod tidy
RUN cat ./go.sum

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 20, 2020
@justaugustus
Copy link
Member Author

Okay, this is failing again?

#13 2.694 go: downloading github.com/pkg/errors v0.9.1
#13 3.036 k8s.io/release/images/build/go-runner imports
#13 3.036 	github.com/pkg/errors: zip: checksum error
#13 ERROR: executor failed running [/bin/sh -c go mod tidy]: buildkit-runc did not terminate successfully
------
 > [builder  7/10] RUN go mod tidy:
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c go mod tidy]: buildkit-runc did not terminate successfully
make: *** [Makefile:52: container] Error 1
ERROR
ERROR: build step 0 "gcr.io/k8s-testimages/gcb-docker-gcloud:v20200422-b25d964" failed: step exited with non-zero status: 2

I'm a bit stumped.

@dims
Copy link
Member

dims commented Aug 20, 2020

Can you please try CGO_ENABLED=0?

@justaugustus
Copy link
Member Author

Can you please try CGO_ENABLED=0?

Already enabled here:

RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} \

(Dims and I are discussing here: https://kubernetes.slack.com/archives/C2C40FMNF/p1597931681010100)

@justaugustus
Copy link
Member Author

justaugustus commented Aug 21, 2020

I'm consistently getting failures on s390x related to checksums.
These failure snippets are in reverse chronological order.

6a8bd21 (HEAD -> go-runner-115, a/go-runner-115) [DROP] images/go-runner: Add debug 'go version' for filing Golang issue
5340b57 images/go-runner: Allow fallback to 'direct' for GOPROXY
https://console.cloud.google.com/cloud-build/builds/f1d289b3-9136-4ae4-a8e3-4b0411cd9dd1?project=k8s-staging-build-image

#16 [builder 10/15] RUN go mod tidy
#16 3.694 go: github.com/pkg/[email protected]/go.mod: verifying module: github.com/pkg/[email protected]/go.mod: Get "https://sum.golang.org/lookup/github.com/pkg/[email protected]": tls: invalid signature by the server certificate: ECDSA verification failure
#16 ERROR: executor failed running [/bin/sh -c go mod tidy]: buildkit-runc did not terminate successfully
------
 > [builder 10/15] RUN go mod tidy:
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c go mod tidy]: buildkit-runc did not terminate successfully
make: *** [Makefile:53: container] Error 1
ERROR
ERROR: build step 0 "gcr.io/k8s-testimages/gcb-docker-gcloud:v20200422-b25d964" failed: step exited with non-zero status: 2

6f7c0fe (HEAD -> go-runner-115, a/go-runner-115) images/go-runner: Run go mod tidy to source go.sum
https://console.cloud.google.com/cloud-build/builds/8e9c4c8b-f70e-4b6a-b71c-297a10c28f08?project=k8s-staging-build-image

#13 [builder  7/12] RUN go mod tidy
#13 3.219 go: github.com/pkg/[email protected]/go.mod: verifying module: github.com/pkg/[email protected]/go.mod: Get "https://sum.golang.org/lookup/github.com/pkg/[email protected]": tls: invalid signature by the server certificate: ECDSA verification failure
#13 ERROR: executor failed running [/bin/sh -c go mod tidy]: buildkit-runc did not terminate successfully
------
 > [builder  7/12] RUN go mod tidy:
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c go mod tidy]: buildkit-runc did not terminate successfully
make: *** [Makefile:53: container] Error 1
ERROR
ERROR: build step 0 "gcr.io/k8s-testimages/gcb-docker-gcloud:v20200422-b25d964" failed: step exited with non-zero status: 2

3d54f50 (HEAD -> go-runner-115, a/go-runner-115) images/go-runner/Dockerfile: Explicitly set 'direct' as GOPROXY
https://console.cloud.google.com/cloud-build/builds/fa65c84f-e92e-4533-af49-ddb0bd8fd12d?project=k8s-staging-build-image

Failure on s390x: go mod download -json

Using GOPROXY="direct", a partial json from go mod actually pulls with zip: checksum error
Notably missing the Zip, Dir, Sum fields

#13 [builder  7/11] RUN go mod download -json
#13 2.719 {
#13 2.719 	"Path": "github.com/pkg/errors",
#13 2.719 	"Version": "v0.9.1",
#13 2.719 	"Error": "zip: checksum error",
#13 2.719 	"Info": "/go/pkg/mod/cache/download/github.com/pkg/errors/@v/v0.9.1.info",
#13 2.719 	"GoMod": "/go/pkg/mod/cache/download/github.com/pkg/errors/@v/v0.9.1.mod",
#13 2.719 	"GoModSum": "h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0="
#13 2.719 }
#13 ERROR: executor failed running [/bin/sh -c go mod download -json]: buildkit-runc did not terminate successfully
------
 > [builder  7/11] RUN go mod download -json:
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c go mod download -json]: buildkit-runc did not terminate successfully
make: *** [Makefile:53: container] Error 1
ERROR
ERROR: build step 0 "gcr.io/k8s-testimages/gcb-docker-gcloud:v20200422-b25d964" failed: step exited with non-zero status: 2

7f20960 (HEAD -> go-runner-115) images/go-runner: Add go mod download debugs
https://console.cloud.google.com/cloud-build/builds/1a8ee878-8fa3-4a20-aa41-1531daf734c1?project=k8s-staging-build-image

Failures on s390x: go mod download -json

#12 [builder  6/10] RUN go mod download -json
#12 1.338 go: github.com/pkg/[email protected]: Get "https://proxy.golang.org/github.com/pkg/errors/@v/v0.9.1.mod": tls: invalid signature by the server certificate: ECDSA verification failure
#12 ERROR: executor failed running [/bin/sh -c go mod download -json]: buildkit-runc did not terminate successfully
------
 > [builder  6/10] RUN go mod download -json:
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c go mod download -json]: buildkit-runc did not terminate successfully
make: *** [Makefile:53: container] Error 1
ERROR
ERROR: build step 0 "gcr.io/k8s-testimages/gcb-docker-gcloud:v20200422-b25d964" failed: step exited with non-zero status: 2

797b99b (HEAD -> go-runner-115) images/go-runner: Echo platform value before starting build
https://console.cloud.google.com/cloud-build/builds/ba9bd74a-165b-40c6-9a95-b2a138589359?project=k8s-staging-build-image

Failure on s390x

#10 [builder 5/6] RUN go build .
#10 1.469 go: github.com/pkg/[email protected]: Get "https://proxy.golang.org/github.com/pkg/errors/@v/v0.9.1.mod": tls: invalid signature by the server certificate: ECDSA verification failure
#10 ERROR: executor failed running [/bin/sh -c go build .]: buildkit-runc did not terminate successfully
------
 > [builder 5/6] RUN go build .:
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c go build .]: buildkit-runc did not terminate successfully
make: *** [Makefile:53: container] Error 1

@justaugustus
Copy link
Member Author

Filed an issue upstream: golang/go#40949

From https://golang.org/doc/go1.15#go-command:

The GOPROXY environment variable now supports skipping proxies that
return errors. Proxy URLs may now be separated with either commas (,) or
pipe characters (|). If a proxy URL is followed by a comma, the go
command will only try the next proxy in the list after a 404 or 410 HTTP
response. If a proxy URL is followed by a pipe character, the go command
will try the next proxy in the list after any error. Note that the
default value of GOPROXY remains https://proxy.golang.org,direct, which
does not fall back to direct in case of errors.

Signed-off-by: Stephen Augustus <[email protected]>
@justaugustus
Copy link
Member Author

@justaugustus justaugustus changed the title [WIP] images: Build go-runner:buster-v2.0.0 using go1.15 images: Build go-runner:buster-v2.0.0 using go1.15 Aug 21, 2020
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 21, 2020
@justaugustus
Copy link
Member Author

Success, with stdlib-only!

/assign @dims @liggitt @hasheddan
cc: @kubernetes/release-engineering

Copy link
Contributor

@hasheddan hasheddan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 21, 2020
Copy link

@markjacksonfishing markjacksonfishing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hasheddan, justaugustus, markyjackson-taulia, saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/dependency Issues or PRs related to dependency changes area/release-eng Issues or PRs related to the Release Engineering subproject cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/release Categorizes an issue or PR as relevant to SIG Release. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants