This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch fix-docker-compose-incompatibilities in repository https://gitbox.apache.org/repos/asf/airflow-ci-infra.git
commit bde7bc28f022031c75d103c8bae242fb62668210 Author: Jarek Potiuk <[email protected]> AuthorDate: Tue Oct 5 01:35:32 2021 +0200 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 https://github.com/docker/compose/issues/8742 is solved --- github-runner-ami/packer/files/docker-compose.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/github-runner-ami/packer/files/docker-compose.sh b/github-runner-ami/packer/files/docker-compose.sh index d158ac8..6731124 100644 --- a/github-runner-ami/packer/files/docker-compose.sh +++ b/github-runner-ami/packer/files/docker-compose.sh @@ -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
