Skip to content

Instantly share code, notes, and snippets.

@MarcPartensky
Created December 18, 2020 23:15
Show Gist options
  • Save MarcPartensky/af538373dfbdae947ba4e0b3f514f40f to your computer and use it in GitHub Desktop.
Save MarcPartensky/af538373dfbdae947ba4e0b3f514f40f to your computer and use it in GitHub Desktop.
# Installs programs to run my website
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install docker docker-machine openssl
brew cask install virtualbox
docker-machine create --driver virtualbox default
docker-machine env default
eval "$(docker-machine env default)"
# Run my website (finally)
docker run -it -e SECRET_KEY=$(openssl rand -base64 21) -p 8000:8000 marcpartensky/website;
# Get rid of all these installations
function uninstall-website-of-marc-installations {
docker-machine stop default
docker system prune -a
brew uninstall docker docker-machine
brew cask uninstall virtualbox
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment