Last active
September 17, 2020 01:49
-
-
Save drakeapps/abb6b49413748f1d3d43181060f35c74 to your computer and use it in GitHub Desktop.
setup rpi/server for docker
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
# hope for the best and apt-get install tmux before this | |
# then start tmux session and run this script | |
echo "STEP 1/8: sudo apt-get update" | |
sudo apt-get update | |
echo "STEP 2/8: sudo apt-get upgrade -y" | |
sudo apt-get upgrade -y | |
# install prereqs for doing anything | |
echo "STEP 3/8: sudo apt-get install -y python3 python3-pip git vim curl wget tmux build-essential libssl-dev libffi-dev python3-dev python3-cffi" | |
sudo apt-get install -y python3 python3 python3-pip git vim curl wget tmux build-essential libssl-dev libffi-dev python3-dev python3-cffi | |
# do the automated docker install thing | |
echo "STEP 4/8: curl -fsSL https://get.docker.com -o get-docker.sh" | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
echo "STEP 5/8: sudo sh get-docker.sh" | |
sudo sh get-docker.sh | |
# make pi user docker | |
echo "STEP 6/8: sudo usermod -aG docker pi" | |
sudo usermod -aG docker pi | |
# install docker-compose | |
echo "STEP 7/8: sudo pip3 install docker-compose" | |
sudo pip3 install docker-compose | |
echo "STEP 8/8: git config --global user.email \"james@drakeapps.com\" && git config --global user.name \"James Wilson\"" | |
git config --global user.email "james@drakeapps.com" && git config --global user.name "James Wilson" | |
echo "DONE" | |
echo "Reboot/restart session to pick up docker group" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment