Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dev/generate_helm_chart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function usage() {
cat << EOT
Script splits clickhouse-operator-install-bundle.yaml to separate files and adjusts them to conform the helm standards
NOTE script requires some pre-installed tools:
- yq ( https://mikefarah.gitbook.io/yq/ ) > v4.14.x
- yq ( https://mikefarah.gitbook.io/yq/ ) > v4.14.x. Do not use brew install yq in MacOS,Version is lower than it.
- jq ( https://github.com/stedolan/jq )
- helm-docs ( https://github.com/norwoodj/helm-docs )
- perl ( https://learn.perl.org/installing/ )
Expand Down
11 changes: 8 additions & 3 deletions dev/image_build_universal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,14 @@ if [[ "${MINIKUBE}" == "yes" ]]; then
eval "$(minikube docker-env)"
fi

if ! docker run --rm --privileged multiarch/qemu-user-static --reset -p yes; then
sudo apt-get install -y qemu binfmt-support qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
ARCHITECTURE=$(uname -m)
# Do nothing if architecture is arm,such as MacOS M1/M2

if [[ ! "${ARCHITECTURE}" =~ "arm" ]]; then
if ! docker run --rm --privileged multiarch/qemu-user-static --reset -p yes; then
sudo apt-get install -y qemu binfmt-support qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
fi
fi

if [[ "0" == $(docker buildx ls | grep -E 'linux/arm.+\*' | grep -E 'running|inactive') ]]; then
Expand Down