mirror of https://github.com/status-im/consul.git
chore: fix remote docker make target (#15870)
This commit is contained in:
parent
b3bd3a6586
commit
8607eb2f82
|
@ -176,7 +176,10 @@ remote-docker: check-remote-dev-image-env
|
||||||
@echo "Pulling consul container image - $(CONSUL_IMAGE_VERSION)"
|
@echo "Pulling consul container image - $(CONSUL_IMAGE_VERSION)"
|
||||||
@docker pull consul:$(CONSUL_IMAGE_VERSION) >/dev/null
|
@docker pull consul:$(CONSUL_IMAGE_VERSION) >/dev/null
|
||||||
@echo "Building and Pushing Consul Development container - $(REMOTE_DEV_IMAGE)"
|
@echo "Building and Pushing Consul Development container - $(REMOTE_DEV_IMAGE)"
|
||||||
@docker buildx use default && docker buildx build -t '$(REMOTE_DEV_IMAGE)' \
|
@if ! docker buildx inspect consul-builder; then \
|
||||||
|
docker buildx create --name consul-builder --driver docker-container --bootstrap; \
|
||||||
|
fi;
|
||||||
|
@docker buildx use consul-builder && docker buildx build -t '$(REMOTE_DEV_IMAGE)' \
|
||||||
--platform linux/amd64,linux/arm64 \
|
--platform linux/amd64,linux/arm64 \
|
||||||
--build-arg CONSUL_IMAGE_VERSION=$(CONSUL_IMAGE_VERSION) \
|
--build-arg CONSUL_IMAGE_VERSION=$(CONSUL_IMAGE_VERSION) \
|
||||||
--push \
|
--push \
|
||||||
|
|
Loading…
Reference in New Issue