Files
runner-images/images/linux/scripts/installers/docker-compose.sh
Aleksandr Chebotov 4f6ab057d8 [Ubuntu] Install 1.27.4 on ubuntu16/18 (#2520)
* install 1.27.4 on ubuntu16/18

* add link to the issue

* replace contains to endswith
2021-01-22 22:12:57 +03:00

18 lines
794 B
Bash

#!/bin/bash -e
################################################################################
## 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
invoke_tests "Tools" "Docker-compose"