added docker-install.sh
This commit is contained in:
parent
a7005721a3
commit
587b8daabc
2 changed files with 6 additions and 4 deletions
|
@ -29,10 +29,7 @@ sudo -HS bash -c "curl -RLfs https://bootstrap.pypa.io/get-pip.py | python2 && \
|
||||||
curl -RLfs https://bootstrap.pypa.io/get-pip.py | python3"
|
curl -RLfs https://bootstrap.pypa.io/get-pip.py | python3"
|
||||||
|
|
||||||
# Docker related
|
# Docker related
|
||||||
|
curl -RLSsf1 https://github.com/schtobia/bootstrap/raw/master/docker-install.sh | sudo -SH bash -
|
||||||
curl -fsSL https://download.docker.com/linux/$DISTRO/gpg | sudo apt-key add - && \
|
|
||||||
sudo add-apt-repository "deb https://download.docker.com/linux/$DISTRO $SUITE stable" && \
|
|
||||||
sudo apt-get install -y docker-ce
|
|
||||||
|
|
||||||
# vim related
|
# vim related
|
||||||
pip install --user neovim && \
|
pip install --user neovim && \
|
||||||
|
|
5
docker-install.sh
Executable file
5
docker-install.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#! /bin/bash
|
||||||
|
[ "$UID" -ne 0 ] && { echo "You must run this script as root." >&2; exit 1; }
|
||||||
|
(DISTRO=$(lsb_release -is | tr '[A-Z]' '[a-z]'); curl -LSsf https://download.docker.com/linux/$DISTRO/gpg | apt-key add - && \
|
||||||
|
add-apt-repository "deb https://download.docker.com/linux/$DISTRO $(lsb_release -cs) stable" && \
|
||||||
|
apt-get install -y docker-ce)
|
Loading…
Reference in a new issue