Skip to content

Commit f3073b3

Browse files
committed
update builder script
1 parent 209a203 commit f3073b3

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ PLATFORMS ?= linux/amd64
2020
# Alternatively, you can export the PLATFORMS variable like this:
2121
# export PLATFORMS=linux/arm64,linux/s390x,linux/amd64
2222
ARCH := $(shell uname -m | sed 's/x86_64/amd64/')
23-
DOCKER_BUILDER ?= docker-builder
23+
DOCKER_BUILDER ?= cnao-docker-builder
2424
OPERATOR_IMAGE_TAGGED := $(IMAGE_REGISTRY)/$(OPERATOR_IMAGE):$(IMAGE_TAG)
2525
NULL :=
2626
SPACE := $(NULL) #

hack/build-multiarch-operator.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
#!/bin/bash
22

33
check_buildx() {
4-
if ! docker buildx version > /dev/null 2>&1; then
5-
echo "Docker Buildx is not installed or not available."
6-
echo "Please ensure Docker 19.03+ and Buildx is available."
7-
exit 1
4+
export DOCKER_CLI_EXPERIMENTAL=enabled
5+
6+
# If there is no buildx let's install it
7+
if ! docker buildx > /dev/null 2>&1; then
8+
mkdir -p ~/.docker/cli-plugins
9+
curl -L https://github.com/docker/buildx/releases/download/v0.6.3/buildx-v0.6.3.linux-amd64 --output ~/.docker/cli-plugins/docker-buildx
10+
chmod a+x ~/.docker/cli-plugins/docker-buildx
811
fi
912
}
1013

0 commit comments

Comments
 (0)