Created
June 6, 2021 04:05
-
-
Save travis103/05362e687f75ef38961df8328d6efa8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
timedatectl set-timezone Asia/Hong_Kong | |
yum install -y docker git | |
systemctl start docker | |
systemctl enable 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 | |
chmod +x /opt/bin/docker-compose | |
rm -rf v2ray | |
git clone https://github.com/ushdjkfnf/v2ray | |
cd v2ray/ | |
/opt/bin/docker-compose up -d | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment