generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
When execute the command make build.all
on a linux arch amd64 machine it tries to build the cross container pipeline.
19:47:33 [ OK ] go build linux_amd64
19:47:33 [ OK ] Skipping image build for unsupported platform darwin/amd64
19:47:33 [ OK ] Skipping xpkg build for unsupported platform darwin/amd64
19:47:33 [ .. ] docker build build-a6fbffd1/provider-oci-arm64
[+] Building 9.5s (8/14) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.19kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/alpine:3.16.2 1.6s
=> [1/8] FROM docker.io/library/alpine:3.16.2@sha256:65a2763f593ae85fab3b5406dc9e80f744ec5b449f269b699b5efd37a07ad32e 0.8s
=> => resolve docker.io/library/alpine:3.16.2@sha256:65a2763f593ae85fab3b5406dc9e80f744ec5b449f269b699b5efd37a07ad32e 0.0s
=> => sha256:65a2763f593ae85fab3b5406dc9e80f744ec5b449f269b699b5efd37a07ad32e 1.64kB / 1.64kB 0.0s
=> => sha256:922df7f9352943c7447dbc07c53563e6971fce3100d2ef2b8368b1ba9aac605d 528B / 528B 0.0s
=> => sha256:16d65c69c39d32f07bf75fdecca40ed6486e0cd37890fc9e5ac37f316b4f78c4 1.49kB / 1.49kB 0.0s
=> => sha256:9b18e9b68314027565b90ff6189d65942c0f7986da80df008b8431276885218e 2.71MB / 2.71MB 0.3s
=> => extracting sha256:9b18e9b68314027565b90ff6189d65942c0f7986da80df008b8431276885218e 0.4s
=> https://releases.hashicorp.com/terraform/1.4.6/terraform_1.4.6_linux_arm64.zip 0.5s
=> [internal] load build context 1.1s
=> => transferring context: 55.20MB 1.1s
=> https://releases.hashicorp.com/terraform-provider-oci/4.120.0/terraform-provider-oci_4.120.0_linux_arm64.zip 0.8s
=> ERROR [2/8] RUN apk --no-cache add ca-certificates bash 6.9s
------
> [2/8] RUN apk --no-cache add ca-certificates bash:
0.566 exec /bin/sh: exec format error
------
ERROR: failed to solve: executor failed running [/bin/sh -c apk --no-cache add ca-certificates bash]: exit code: 1
19:47:43 [FAIL]
make[4]: *** [Makefile:28: img.build.shared] Error 1
make[3]: *** [Makefile:16: img.build] Error 2
make[2]: *** [build/makelib/imagelight.mk:114: do.build.image.provider-oci] Error 2
make[1]: *** [build/makelib/common.mk:337: do.build.artifacts.linux_arm64] Error 2
make: *** [build/makelib/common.mk:347: build.all] Error 2
It should just build for linux/amd64 or display a error message that you should only deploy on linux/arm64.
Metadata
Metadata
Assignees
Labels
No labels