File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
pkg/plugins/ansible/v1/scaffolds/internal/templates
testdata/memcached-molecule-operator Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -111,14 +111,11 @@ docker-push: ## Push docker image with the manager.
111
111
# To properly provided solutions that supports more than one platform you should use this option.
112
112
PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
113
113
.PHONY: docker-buildx
114
- docker-buildx: test ## Build and push docker image for the manager for cross-platform support
115
- # copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
116
- sed -e '1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
114
+ docker-buildx: ## Build and push docker image for the manager for cross-platform support
117
115
- docker buildx create --name project-v3-builder
118
116
docker buildx use project-v3-builder
119
- - docker buildx build --push --platform=$(PLATFORMS) --tag ${IMG} -f Dockerfile.cross .
117
+ - docker buildx build --push --platform=$(PLATFORMS) --tag ${IMG} -f Dockerfile .
120
118
- docker buildx rm project-v3-builder
121
- rm Dockerfile.cross
122
119
123
120
##@ Deployment
124
121
Original file line number Diff line number Diff line change @@ -45,14 +45,11 @@ docker-push: ## Push docker image with the manager.
45
45
# To properly provided solutions that supports more than one platform you should use this option.
46
46
PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
47
47
.PHONY : docker-buildx
48
- docker-buildx : test # # Build and push docker image for the manager for cross-platform support
49
- # copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
50
- sed -e ' 1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
48
+ docker-buildx : # # Build and push docker image for the manager for cross-platform support
51
49
- docker buildx create --name project-v3-builder
52
50
docker buildx use project-v3-builder
53
- - docker buildx build --push --platform=$(PLATFORMS ) --tag ${IMG} -f Dockerfile.cross .
51
+ - docker buildx build --push --platform=$(PLATFORMS ) --tag ${IMG} -f Dockerfile .
54
52
- docker buildx rm project-v3-builder
55
- rm Dockerfile.cross
56
53
57
54
# #@ Deployment
58
55
You can’t perform that action at this time.
0 commit comments