Fix installation of docker-compose on armv7l
This commit is contained in:
parent
b48f28d8bc
commit
ffa0515cd6
2 changed files with 9 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,6 @@
|
||||||
|
*.swo
|
||||||
|
*.swp
|
||||||
|
|
||||||
.pnpm-debug.log
|
.pnpm-debug.log
|
||||||
.env*
|
.env*
|
||||||
github.secrets
|
github.secrets
|
||||||
|
|
|
@ -113,8 +113,12 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v docker-compose >/dev/null; then
|
if ! docker-compose --version >/dev/null; then
|
||||||
sudo curl -L "https://github.com/docker/compose/releases/download/v2.3.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
arch="$(uname -m)"
|
||||||
|
if [[ "$arch" == "armv7l" ]]; then
|
||||||
|
arch="armv7"
|
||||||
|
fi
|
||||||
|
sudo curl -L "https://github.com/docker/compose/releases/download/v2.3.4/docker-compose-$(uname -s)-${arch}" -o /usr/local/bin/docker-compose
|
||||||
sudo chmod +x /usr/local/bin/docker-compose
|
sudo chmod +x /usr/local/bin/docker-compose
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue