Skip to content

Commit

Permalink
Docker compose, support cli plugin format
Browse files Browse the repository at this point in the history
  • Loading branch information
olljanat committed Dec 15, 2023
1 parent c963bcc commit 5114838
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions images/20-dockercompose/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
VERSION=$(jq -r 'map(select(.prerelease == false)) | first | .tag_name' <<< $(wget -q -O - https://api.github.com/repos/docker/compose/releases))
DOCKERARCH=$(uname -m)
COMPOSE_URL="https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-linux-${DOCKERARCH}"
wget -q -O /var/lib/rancher/compose/docker-compose $COMPOSE_URL
chmod 0755 /var/lib/rancher/compose/docker-compose
mkdir -p /home/rancher/.docker/cli-plugins
wget -q -O /home/rancher/.docker/cli-plugins/docker-compose $COMPOSE_URL
chmod 0755 /home/rancher/.docker/cli-plugins/docker-compose
ln -s /home/rancher/.docker/cli-plugins/docker-compose /var/lib/rancher/compose/docker-compose

0 comments on commit 5114838

Please sign in to comment.