Last active
January 8, 2019 23:13
-
-
Save jsgoller1/0612ff8202bf7c7a070d85b82eb0a22e to your computer and use it in GitHub Desktop.
Dockerized Anaconda setup
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
# Create a file called "Makefile" and copy / paste the contents of this gist into it. | |
# Then from the same directory, run `make all`. Requires docker-ce and GNU make to be installed. | |
anaconda all: anaconda-rm anaconda-container anaconda-shell | |
# Stop and remove the running Anaconda container | |
anaconda-rm: | |
-docker stop anaconda | |
-docker rm anaconda | |
# Pull the latest version of the Anaconda container | |
# and run it in daemon mode with the local directory | |
# mounted into it at /code | |
anaconda-container: | |
docker pull continuumio/anaconda | |
docker run \ | |
-dt \ | |
-v `pwd`:/code \ | |
--name anaconda \ | |
continuumio/anaconda | |
# Open a bash shell in the running Anaconda container | |
anaconda-shell: | |
docker exec -it anaconda /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment