mirror of https://github.com/coddrago/Heroku
update docker
parent
4ff72021cb
commit
71230a9806
16
docker.sh
16
docker.sh
|
@ -11,22 +11,22 @@ if ! [ -x "$(command -v docker)" ]; then
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
gnupg-agent \
|
gnupg-agent \
|
||||||
software-properties-common
|
software-properties-common -y 1>/dev/null 2>&1
|
||||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||||
sudo add-apt-repository \
|
sudo add-apt-repository \
|
||||||
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
||||||
$(lsb_release -cs) \
|
$(lsb_release -cs) \
|
||||||
stable"
|
stable" 1>/dev/null 2>&1
|
||||||
sudo apt-get update
|
sudo apt-get update -y 1>/dev/null 2>&1
|
||||||
sudo apt-get install docker-ce docker-ce-cli containerd.io
|
sudo apt-get install docker-ce docker-ce-cli containerd.io -y 1>/dev/null 2>&1
|
||||||
elif [ -f /etc/arch-release ]; then
|
elif [ -f /etc/arch-release ]; then
|
||||||
sudo pacman -Syu docker
|
sudo pacman -Syu docker --noconfirm 1>/dev/null 2>&1
|
||||||
elif [ -f /etc/redhat-release ]; then
|
elif [ -f /etc/redhat-release ]; then
|
||||||
sudo yum install -y yum-utils
|
sudo yum install -y yum-utils 1>/dev/null 2>&1
|
||||||
sudo yum-config-manager \
|
sudo yum-config-manager \
|
||||||
--add-repo \
|
--add-repo \
|
||||||
https://download.docker.com/linux/centos/docker-ce.repo
|
https://download.docker.com/linux/centos/docker-ce.repo
|
||||||
sudo yum install docker-ce docker-ce-cli containerd.io
|
sudo yum install docker-ce docker-ce-cli containerd.io -y 1>/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
printf "\033[0;32m - success\e[0m\n"
|
printf "\033[0;32m - success\e[0m\n"
|
||||||
else
|
else
|
||||||
|
@ -45,7 +45,7 @@ wget -q https://github.com/hikariatama/Hikka/raw/master/docker-compose.yml
|
||||||
printf "\033[0;32m - success\e[0m\n"
|
printf "\033[0;32m - success\e[0m\n"
|
||||||
|
|
||||||
printf "\033[0;34mBuilding docker image...\e[0m"
|
printf "\033[0;34mBuilding docker image...\e[0m"
|
||||||
docker-compose up -d --build 1>/dev/null 2>&1
|
sudo docker-compose up -d --build 1>/dev/null 2>&1
|
||||||
printf "\033[0;32m - success\e[0m\n"
|
printf "\033[0;32m - success\e[0m\n"
|
||||||
|
|
||||||
printf "\033[0;32mFollow this url to continue installation:\e[0m\n"
|
printf "\033[0;32mFollow this url to continue installation:\e[0m\n"
|
||||||
|
|
Loading…
Reference in New Issue