Skip to content
Permalink
Browse files
Temporary fix docker-compose to 1.29.2
Docker-compose 2 breaks kerberos integration and we need to
hard-code 1.29.2 temporarily until
docker/compose#8742 is solved
  • Loading branch information
potiuk committed Oct 4, 2021
1 parent 6c7a353 commit ccc7bd24fee3372a06cfa413fa7024254526a729
Showing 2 changed files with 12 additions and 3 deletions.
@@ -20,6 +20,15 @@
set -exu -o pipefail

# https://github.com/actions/virtual-environments/blob/525f79f479cca77aef4e0a680548b65534c64a18/images/linux/scripts/installers/docker-compose.sh
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"))')
curl --fail -L "$URL" -o /usr/local/bin/docker-compose

# disabled installing latest released version until https://github.com/docker/compose/issues/8742
# is solved (docker v2 breaks network management required to get kerberos integration working
# Switching temporary to latest released docker v2

#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"))')
#curl --fail -L "$URL" -o /usr/local/bin/docker-compose
#chmod +x /usr/local/bin/docker-compose

# Hard-code docker-compose 1.29.2
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
@@ -38,7 +38,7 @@ source "amazon-ebs" "runner_builder" {
#access_key = ""
#secret_key = ""
region = var.aws_regions[0]
ami_name = "${var.ami_name}-${var.runner_version}"
ami_name = "${var.ami_name}-${var.runner_version}-v2"
ami_regions = var.aws_regions
tag {
key = "Name"

0 comments on commit ccc7bd2

Please sign in to comment.