Fix installation of docker-compose on armv7l
This commit is contained in:
parent
7f5acf1ac5
commit
42edfb33c9
2 changed files with 9 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,6 @@
|
|||
*.swo
|
||||
*.swp
|
||||
|
||||
.pnpm-debug.log
|
||||
.env*
|
||||
github.secrets
|
||||
|
|
|
@ -113,8 +113,12 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
if ! command -v docker-compose >/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
|
||||
if ! docker-compose --version >/dev/null; then
|
||||
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
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue