@@ -25,17 +25,19 @@ weight: 998975000
25
25
PLATFORMS ? = linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
26
26
.PHONY: docker-buildx
27
27
docker-buildx: test # # Build and push docker image for the manager for cross-platform support
28
- # copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
29
- sed -e '1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
30
- - docker buildx create --name project-v3-builder
31
- docker buildx use project-v3-builder
32
- - docker buildx build --push --platform=$(PLATFORMS) --tag ${IMG} -f Dockerfile.cross
33
- - docker buildx rm project-v3-builder
34
- rm Dockerfile.cross
28
+ # copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
29
+ sed -e '1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
30
+ - docker buildx create --name project-v3-builder
31
+ docker buildx use project-v3-builder
32
+ - docker buildx build --push --platform=$(PLATFORMS) --tag ${IMG} -f Dockerfile.cross
33
+ - docker buildx rm project-v3-builder
34
+ rm Dockerfile.cross
35
35
` ` `
36
36
3. (go/v3) Bump dependencies in go.mod file
37
37
38
38
` ` ` go
39
+ go 1.19
40
+
39
41
github.com/onsi/ginkgo/v2 v2.1.4
40
42
github.com/onsi/gomega v1.19.0
41
43
github.com/prometheus/client_golang v1.12.2
@@ -52,7 +54,7 @@ _See [#6047](https://github.com/operator-framework/operator-sdk/pull/6047) for m
52
54
In the project ` Makefile` below the ` docker-push` target add the new ` docker-buildx`
53
55
target.
54
56
55
- ` ` ` yaml
57
+ ` ` ` sh
56
58
# PLATFORMS defines the target platforms for the manager image be build to provide support to multiple
57
59
# architectures. (i.e. make docker-buildx IMG=myregistry/mypoperator:0.0.1). To use this option you need to:
58
60
# - able to use docker buildx . More info: https://docs.docker.com/build/buildx/
0 commit comments