mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
20 lines
529 B
Bash
Executable file
20 lines
529 B
Bash
Executable file
#!/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
|
|
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
|