Skip to content

Instantly share code, notes, and snippets.

@tobiasmuehl
Last active August 11, 2023 07:44
Show Gist options
  • Select an option

  • Save tobiasmuehl/4de1f1c294f96441bec63c5bb0a97b21 to your computer and use it in GitHub Desktop.

Select an option

Save tobiasmuehl/4de1f1c294f96441bec63c5bb0a97b21 to your computer and use it in GitHub Desktop.

Revisions

  1. tobiasmuehl revised this gist Aug 11, 2023. No changes.
  2. tobiasmuehl revised this gist Feb 28, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-docker-compose2-ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #!/bin/sh
    #!/bin/bash
    apt install -y jq curl

    COMPOSE_VER=$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/docker/compose/releases/latest | jq -r '.name' | grep -oP "v[0-9]+(\.[0-9]+)+$")
  3. tobiasmuehl created this gist Feb 28, 2022.
    8 changes: 8 additions & 0 deletions install-docker-compose2-ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #!/bin/sh
    apt install -y jq curl

    COMPOSE_VER=$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/docker/compose/releases/latest | jq -r '.name' | grep -oP "v[0-9]+(\.[0-9]+)+$")
    mkdir -p ~/.docker/cli-plugins/
    OS=$(uname -s)
    curl -SL https://github.com/docker/compose/releases/download/$COMPOSE_VER/docker-compose-${OS,,}-$(uname -m) -o ~/.docker/cli-plugins/docker-compose
    chmod +x ~/.docker/cli-plugins/docker-compose