Files
runner-images/images/ubuntu/scripts/build/docker-compose.sh
sergei-pyshnoi 50ae10289a [Ubuntu] Pin sha256 for docker-compose and Alibaba Cloud CLI (#8790)
* pin sha256 for docker-compose and Alibaba Cloud CLI

* fix syntax in condition
2023-11-17 16:31:49 +01:00

21 lines
870 B
Bash

#!/bin/bash -e
################################################################################
## File: docker-compose.sh
## Desc: Installs Docker Compose v1
## Supply chain security: Docker Compose v1 - checksum validation
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh
# Install docker-compose v1 from releases
URL="https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64"
curl -fsSL "${URL}" -o /tmp/docker-compose-v1
# Supply chain security - Docker Compose v1
external_hash="f3f10cf3dbb8107e9ba2ea5f23c1d2159ff7321d16f0a23051d68d8e2547b323"
use_checksum_comparison "/tmp/docker-compose-v1" "${external_hash}"
install /tmp/docker-compose-v1 /usr/local/bin/docker-compose
invoke_tests "Tools" "Docker-compose v1"