1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 05:45:22 +02:00

feat(compose): upgrade to docker compose v2 EE-2096 (#6994)

Upgrade to compose v2 + new helm + new kubectl
This commit is contained in:
Matt Hook 2022-06-03 13:50:37 +12:00 committed by GitHub
parent aea62723c0
commit e8a8b71daa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 93 additions and 114 deletions

View file

@ -1,15 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ $# -ne 3 ]]; then
echo "Illegal number of parameters" >&2
exit 1
fi
PLATFORM=$1
ARCH=$2
KOMPOSE_VERSION=$3
if [ "${PLATFORM}" == 'windows' ]; then
if [[ ${PLATFORM} == "windows" ]]; then
wget -O "dist/kompose.exe" "https://github.com/kubernetes/kompose/releases/download/${KOMPOSE_VERSION}/kompose-windows-amd64.exe"
chmod +x "dist/kompose.exe"
else
wget -O "dist/kompose" "https://github.com/kubernetes/kompose/releases/download/${KOMPOSE_VERSION}/kompose-${PLATFORM}-${ARCH}"
chmod +x "dist/kompose"
fi
exit 0