Skip to content

Instantly share code, notes, and snippets.

@allbinmani
Last active June 15, 2016 10:00
Show Gist options
  • Select an option

  • Save allbinmani/d4b18b6c956ee19178c23d8c4dcc570a to your computer and use it in GitHub Desktop.

Select an option

Save allbinmani/d4b18b6c956ee19178c23d8c4dcc570a to your computer and use it in GitHub Desktop.

Revisions

  1. origo revised this gist Jun 15, 2016. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion setup_debian_docker.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,10 @@
    #!/bin/sh

    if [ -z $COMPOSE_VERSION ]; then
    #1.8.0-rc1 exists
    COMPOSE_VERSION=1.7.0
    fi

    if [ `whoami` = "root" ]; then
    echo "Do not run as root!"
    exit 2
    @@ -15,7 +20,7 @@ curl -sSL https://get.docker.com/ | sh
    sudo usermod -aG docker `whoami`

    # docker-compose
    sudo curl -o /usr/local/bin/docker-compose -L https://github.com/docker/compose/releases/download/1.7.0/docker-compose-`uname -s`-`uname -m`
    sudo curl -o /usr/local/bin/docker-compose -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m`
    sudo chmod +x /usr/local/bin/docker-compose

    # set timezone
  2. origo revised this gist Apr 27, 2016. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions setup_debian_docker.sh
    Original file line number Diff line number Diff line change
    @@ -17,3 +17,9 @@ sudo usermod -aG docker `whoami`
    # docker-compose
    sudo curl -o /usr/local/bin/docker-compose -L https://github.com/docker/compose/releases/download/1.7.0/docker-compose-`uname -s`-`uname -m`
    sudo chmod +x /usr/local/bin/docker-compose

    # set timezone
    sudo timedatectl set-timezone Europe/Stockholm

    # nice to have nslookup..
    sudo apt-get install dnsutils -yqq
  3. origo created this gist Apr 26, 2016.
    19 changes: 19 additions & 0 deletions setup_debian_docker.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    #!/bin/sh

    if [ `whoami` = "root" ]; then
    echo "Do not run as root!"
    exit 2
    fi

    sudo apt-get update -yq
    sudo apt-get install apt-transport-https ca-certificates -yq
    sudo apt-get upgrade -yq
    sudo apt-get install curl -yq

    # docker
    curl -sSL https://get.docker.com/ | sh
    sudo usermod -aG docker `whoami`

    # docker-compose
    sudo curl -o /usr/local/bin/docker-compose -L https://github.com/docker/compose/releases/download/1.7.0/docker-compose-`uname -s`-`uname -m`
    sudo chmod +x /usr/local/bin/docker-compose