added docker-install.sh

This commit is contained in:
Tobias Schmidl 2018-11-23 09:50:18 +01:00
parent a7005721a3
commit 587b8daabc
2 changed files with 6 additions and 4 deletions

View file

@ -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"
# Docker related
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
curl -RLSsf1 https://github.com/schtobia/bootstrap/raw/master/docker-install.sh | sudo -SH bash -
# vim related
pip install --user neovim && \

5
docker-install.sh Executable file
View 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)