[Ubuntu] Revert hardcoded docker-compose version (#2588)

This commit is contained in:
Aleksandr Chebotov
2021-01-29 17:05:44 +03:00
committed by GitHub
parent f5b6afebd0
commit 45d672739e

View File

@@ -3,14 +3,9 @@
## File: docker-compose.sh
## Desc: Installs Docker Compose
################################################################################
source $HELPER_SCRIPTS/os.sh
# Install latest docker-compose from releases
URL=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.assets[].browser_download_url | select(endswith("docker-compose-Linux-x86_64"))')
if isUbuntu16 || isUbuntu18 ; then
# https://github.com/docker/compose/issues/8048
URL="https://github.com/docker/compose/releases/download/1.27.4/docker-compose-Linux-x86_64"
fi
curl -L $URL -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose