Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit d992736

Browse files
Install the correct docker-compose-switch architecture
1 parent 7dbbb40 commit d992736

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

builder-circleci/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,12 @@ ARG COMPOSE_SWITCH_VERSION=1.0.5
103103
RUN \
104104
apt-get update && \
105105
apt-get install --yes --no-install-recommends docker-compose-plugin=${COMPOSE_VER}~ubuntu-$( lsb_release -cs ) && \
106-
curl -fL https://github.com/docker/compose-switch/releases/download/v${COMPOSE_SWITCH_VERSION}/docker-compose-linux-amd64 -o /usr/local/bin/compose-switch && \
106+
case "$(uname -m)" in \
107+
aarch64) arch='arm64' ;; \
108+
x86_64) arch='amd64' ;; \
109+
*) echo >&2 "error: unsupported architecture: $(uname -m)"; exit 1 ;; \
110+
esac && \
111+
curl -fL https://github.com/docker/compose-switch/releases/download/v${COMPOSE_SWITCH_VERSION}/docker-compose-linux-$arch -o /usr/local/bin/compose-switch && \
107112
docker compose version && \
108113
chmod +x /usr/local/bin/compose-switch && \
109114
update-alternatives --install /usr/local/bin/docker-compose docker-compose /usr/local/bin/compose-switch 99 && \

0 commit comments

Comments
 (0)