Skip to content

Instantly share code, notes, and snippets.

@mindvox
Last active July 19, 2017 11:21
Show Gist options
  • Save mindvox/2a74dbdfd802ca510ee67f390cef3be6 to your computer and use it in GitHub Desktop.
Save mindvox/2a74dbdfd802ca510ee67f390cef3be6 to your computer and use it in GitHub Desktop.
🎁 Docker and Compose installation script for Debian 9 (stretch) amd64.
#!/bin/sh
##
# Test script for PIPSI installations on
# debian 8 (jessie) amd64 hosts.
#
# configure environment
export PATH=$(whoami)/.local/bin:$PATH
# install dependencies
apt-get update
apt-get install --yes sudo curl python python-pip
# docker
curl -sSL 'https://get.docker.com' | sh
sudo usermod -aG docker $(whoami)
# install virtualenv
pip install virtualenv
# install pipsi
curl https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | python
echo "export PATH=~/.local/bin:$PATH" | tee ~/.bashrc >/dev/null
# install something with pipsi to ensure its been installed
pipsi install docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment