From 3505c267b1abe706a4283a17de88982850c87f57 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Fri, 2 Nov 2018 11:35:18 +0100 Subject: [PATCH] Added docker --- bootstrap.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index b64f4b2..2c60383 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,7 +1,11 @@ #! /bin/sh +DISTRO=$(lsb_release -is | tr '[A-Z]' '[a-z]') +SUITE=$(lsb_release -cs) + sudo -S bash -c "apt update && apt dist-upgrade && \ - apt install bash-completion elinks git zsh curl neovim byobu command-not-found apt-file htop \ - python3-venv python3 locales man mc cmake clang build-essential libpython-dev libpython3-dev && \ + apt install bash-completion locales man mc elinks git zsh curl neovim byobu htop \ + command-not-found apt-file apt-transport-https ca-certificates software-properties-common \ + python3-venv python3 libpython-dev libpython3-de cmake clang build-essential && \ apt-file update && \ update-command-not-found" @@ -18,9 +22,15 @@ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - sudo apt-get install -y nodejs # python3 related -sudo -HS bash -c "curl -RLfs https://bootstrap.pypa.io/get-pip.py | python2 &&\ +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 + # vim related pip install --user neovim && \ npm install -g instant-markdown-d && \