mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2024-11-21 23:53:10 +01:00
KASM-2688 install latest compose pulin in dind images
This commit is contained in:
parent
beb70e161f
commit
b3221647b3
@ -44,7 +44,10 @@ docker --version
|
||||
|
||||
echo "Installing Docker Compose"
|
||||
mkdir -p /usr/local/lib/docker/cli-plugins
|
||||
curl -L https://github.com/docker/compose/releases/download/v2.0.1/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/lib/docker/cli-plugins/docker-compose
|
||||
COMPOSE_RELEASE=$(curl -sX GET "https://api.github.com/repos/docker/compose/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]');
|
||||
COMPOSE_OS=$(uname -s)
|
||||
curl -L https://github.com/docker/compose/releases/download/${COMPOSE_RELEASE}/docker-compose-${COMPOSE_OS,,}-$(uname -m) -o /usr/local/lib/docker/cli-plugins/docker-compose
|
||||
chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
|
||||
|
||||
echo 'kasm-user:kasm-user' | chpasswd
|
||||
|
@ -42,5 +42,8 @@ docker --version
|
||||
|
||||
echo "Installing Docker Compose"
|
||||
mkdir -p /usr/local/lib/docker/cli-plugins
|
||||
curl -L https://github.com/docker/compose/releases/download/v2.0.1/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/lib/docker/cli-plugins/docker-compose
|
||||
COMPOSE_RELEASE=$(curl -sX GET "https://api.github.com/repos/docker/compose/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]');
|
||||
COMPOSE_OS=$(uname -s)
|
||||
curl -L https://github.com/docker/compose/releases/download/${COMPOSE_RELEASE}/docker-compose-${COMPOSE_OS,,}-$(uname -m) -o /usr/local/lib/docker/cli-plugins/docker-compose
|
||||
chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
|
||||
|
Loading…
Reference in New Issue
Block a user