Skip to content

Instantly share code, notes, and snippets.

@kostyll
Last active December 29, 2017 08:52
Show Gist options
  • Select an option

  • Save kostyll/53473c8c248659e0b1cdba2d92356c76 to your computer and use it in GitHub Desktop.

Select an option

Save kostyll/53473c8c248659e0b1cdba2d92356c76 to your computer and use it in GitHub Desktop.

Revisions

  1. kostyll revised this gist Dec 29, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion general_vps.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    #!/bin/bash

    echo "general install ..."
    apt-get update && apt-get install tmux mosh wget curl -y
    apt-get update && apt-get install rsync tmux mosh wget curl -y
    apt-get install \
    apt-transport-https \
    ca-certificates \
  2. kostyll revised this gist Dec 29, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion general_vps.sh
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,7 @@ add-apt-repository \
    stable"
    apt-get update
    echo "installing docker ...."
    apt-get install docker-ce
    apt-get install docker-ce -y
    echo "running hello-world ..."
    docker run hello-world

  3. kostyll created this gist Dec 29, 2017.
    33 changes: 33 additions & 0 deletions general_vps.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    #!/bin/bash

    echo "general install ..."
    apt-get update && apt-get install tmux mosh wget curl -y
    apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg2 \
    software-properties-common \
    -y

    echo "preparing docker install..."
    curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | apt-key add -
    apt-key fingerprint 0EBFCD88
    add-apt-repository \
    "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
    $(lsb_release -cs) \
    stable"
    apt-get update
    echo "installing docker ...."
    apt-get install docker-ce
    echo "running hello-world ..."
    docker run hello-world

    echo "installing docker-compose ...."
    curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
    chmod +x /usr/local/bin/docker-compose

    docker-compose --version

    echo "installed!"
    exit 0