update docker-compose installer (#966)

update the URL for use the latest version.
This commit is contained in:
Fernando Guisso
2020-06-01 15:29:57 -03:00
committed by GitHub
parent 578458522a
commit d2a9559ba0

View File

@@ -7,10 +7,10 @@
source $HELPER_SCRIPTS/apt.sh
source $HELPER_SCRIPTS/document.sh
version="1.25.4"
URL=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.assets[].browser_download_url | select(contains("docker-compose-Linux-x86_64"))' | head -1)
# Install latest docker-compose from releases
curl -L "https://github.com/docker/compose/releases/download/$version/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
curl -L $URL -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
# Run tests to determine that the software installed as expected