Skip to content

Instantly share code, notes, and snippets.

@travis103
Last active December 24, 2019 07:45
Show Gist options
  • Select an option

  • Save travis103/7eae9cca317fe5887a893f85724fdbc4 to your computer and use it in GitHub Desktop.

Select an option

Save travis103/7eae9cca317fe5887a893f85724fdbc4 to your computer and use it in GitHub Desktop.

Revisions

  1. travis103 revised this gist Dec 24, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion v2ray-install-on-ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -15,5 +15,5 @@ chmod +x /opt/bin/docker-compose
    rm -rf v2ray
    git clone https://github.com/ushdjkfnf/v2ray
    cd v2ray/
    docker-compose up -d
    /opt/bin/docker-compose up -d
    cd ..
  2. travis103 revised this gist Dec 24, 2019. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion v2ray-install-on-ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,6 @@ add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bi
    apt update
    apt-cache policy docker-ce
    apt install docker-ce -y
    systemctl status docker
    export DOCKER_COMPOSE_VERSION=`git ls-remote --tags git://github.com/docker/compose.git | awk '{print $2}' |grep -v "docs\|rc" |awk -F'/' '{print $3}' |sort -V |tail -n1`
    mkdir -p /opt/bin/
    curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
  3. travis103 revised this gist Dec 24, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions v2ray-install-on-ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -2,12 +2,12 @@

    timedatectl set-timezone Asia/Hong_Kong
    apt update
    apt install apt-transport-https ca-certificates curl software-properties-common
    apt install apt-transport-https ca-certificates curl software-properties-common -y
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
    add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
    apt update
    apt-cache policy docker-ce
    apt install docker-ce
    apt install docker-ce -y
    systemctl status docker
    export DOCKER_COMPOSE_VERSION=`git ls-remote --tags git://github.com/docker/compose.git | awk '{print $2}' |grep -v "docs\|rc" |awk -F'/' '{print $3}' |sort -V |tail -n1`
    mkdir -p /opt/bin/
  4. travis103 renamed this gist Dec 24, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. travis103 revised this gist Dec 24, 2019. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions v2ray-install-coreos.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,14 @@
    #!/bin/bash

    timedatectl set-timezone Asia/Hong_Kong
    apt update
    apt install apt-transport-https ca-certificates curl software-properties-common
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
    add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
    apt update
    apt-cache policy docker-ce
    apt install docker-ce
    systemctl status docker
    export DOCKER_COMPOSE_VERSION=`git ls-remote --tags git://github.com/docker/compose.git | awk '{print $2}' |grep -v "docs\|rc" |awk -F'/' '{print $3}' |sort -V |tail -n1`
    mkdir -p /opt/bin/
    curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
  6. travis103 revised this gist Dec 5, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions v2ray-install-coreos.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    #!/bin/bash

    timedatectl set-timezone Asia/Hong_Kong
    export DOCKER_COMPOSE_VERSION=`git ls-remote --tags git://github.com/docker/compose.git | awk '{print $2}' |grep -v "docs\|rc" |awk -F'/' '{print $3}' |sort -V |tail -n1`
    mkdir -p /opt/bin/
  7. travis103 revised this gist Dec 4, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions v2ray-install-coreos.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    timedatectl set-timezone Asia/Hong_Kong
    export DOCKER_COMPOSE_VERSION=`git ls-remote --tags git://github.com/docker/compose.git | awk '{print $2}' |grep -v "docs\|rc" |awk -F'/' '{print $3}' |sort -V |tail -n1`
    mkdir -p /opt/bin/
    curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
  8. travis103 revised this gist Dec 4, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions v2ray-install-coreos.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    export DOCKER_COMPOSE_VERSION=`git ls-remote --tags git://github.com/docker/compose.git | awk '{print $2}' |grep -v "docs\|rc" |awk -F'/' '{print $3}' |sort -V |tail -n1`
    sudo mkdir -p /opt/bin/
    sudo curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
    sudo chmod +x /opt/bin/docker-compose
    mkdir -p /opt/bin/
    curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
    chmod +x /opt/bin/docker-compose
    rm -rf v2ray
    git clone https://github.com/ushdjkfnf/v2ray
    cd v2ray/
  9. travis103 revised this gist Dec 4, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions v2ray-install-coreos.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    export DOCKER_COMPOSE_VERSION=`git ls-remote --tags git://github.com/docker/compose.git | awk '{print $2}' |grep -v "docs\|rc" |awk -F'/' '{print $3}' |sort -V |tail -n1`
    sudo mkdir -p /opt/bin/
    curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
    chmod +x /opt/bin/docker-compose
    sudo curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
    sudo chmod +x /opt/bin/docker-compose
    rm -rf v2ray
    git clone https://github.com/ushdjkfnf/v2ray
    cd v2ray/
  10. travis103 revised this gist Dec 4, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion v2ray-install-coreos.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    export DOCKER_COMPOSE_VERSION=`git ls-remote --tags git://github.com/docker/compose.git | awk '{print $2}' |grep -v "docs\|rc" |awk -F'/' '{print $3}' |sort -V |tail -n1`
    mkdir -p /opt/bin/
    sudo mkdir -p /opt/bin/
    curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
    chmod +x /opt/bin/docker-compose
    rm -rf v2ray
  11. travis103 revised this gist Dec 4, 2019. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion v2ray-install-coreos.sh
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,8 @@ export DOCKER_COMPOSE_VERSION=`git ls-remote --tags git://github.com/docker/comp
    mkdir -p /opt/bin/
    curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
    chmod +x /opt/bin/docker-compose
    rm -rf v2ray
    git clone https://github.com/ushdjkfnf/v2ray
    cd v2ray/
    docker-compose up -d
    docker-compose up -d
    cd ..
  12. travis103 revised this gist Dec 4, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions v2ray-install-coreos.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    export DOCKER_COMPOSE_VERSION=`git ls-remote --tags git://github.com/docker/compose.git | awk '{print $2}' |grep -v "docs\|rc" |awk -F'/' '{print $3}' |sort -V |tail -n1`
    mkdir -p /opt/bin/
    curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
    chmod +x /opt/bin/docker-compose
    git clone https://github.com/ushdjkfnf/v2ray
  13. travis103 created this gist Dec 4, 2019.
    6 changes: 6 additions & 0 deletions v2ray-install-coreos.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    export DOCKER_COMPOSE_VERSION=`git ls-remote --tags git://github.com/docker/compose.git | awk '{print $2}' |grep -v "docs\|rc" |awk -F'/' '{print $3}' |sort -V |tail -n1`
    curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
    chmod +x /opt/bin/docker-compose
    git clone https://github.com/ushdjkfnf/v2ray
    cd v2ray/
    docker-compose up -d