Launch Stack on AWS (Costs Money!)
- Picked 1 Manager Node (t2.micro), Picked 1 Worker Node (t2.medium or t2.large)
- Or 1 Manager Node(t2.medium or t2.large), 0 Worker Nodes(doesn’t matter)
- Picked one of my AWS security keys
- Launch using Create Button (Costs Money!)
- Services->EC2->Docker-Manager to get Public DNS
- Or CloudFormation->Stacks->Docker->Outputs->Managers
- Click on link under “Managers->Value” and see Public DNS of Manager Node
- Or CloudFormation->Stacks->Docker->Outputs->Managers
- Ssh to manager node using AWS security key and docker as username
- Either use “Connect” in EC2 or
- ssh -i “mykey.pem” docker@<Public DNS>
- Make sure mykey.pem has correct permissions
- chmod 400 mykey.pem
- Make sure mykey.pem has correct permissions
- or convert .pem to .ppk and use putty
- Launch a docker container (choose one for now)
- docker node ls
- docker node inspect <node-name>
- docker service ls
- docker service inspect <node-service-name>
- docker service inspect dsnb
- docker service ps <node-service-name>
docker service ps dsnb
containerid=`docker ps | grep jupyter | cut -d' ' -f1`
docker exec -it $containerid bash
- Connect to port on Manager to access services on worker nodes
- CloudFormation->Stacks->Docker->Outputs->DefaultDNSTarget for web address
jupyter notebook list
- Open <DefaultDNSTarget>:<port>?token=<token> in web browser
- Use 8888 for <port> in this example
- Make New Python 2 Notebook and then:
- !git clone https://github.com/TrackDR/Geospatial-Jupyter-Notebooks
- !git clone https://github.com/rajathkumarmp/Python-Lectures
- Python-Lectures/01.ipynb to start, rest are good too
- Open notebook out of any cloned directory
- CloudFormation->Stacks->Docker->Other Actions->Delete Stack when done using
Docs
- Deploy your app
Other Jupyter/Ipython Github Repositories to clone
- !git clone https://github.com/TrackDR/ModdedIpythonNotebooks
- !git clone https://github.com/JWarmenhoven/ISLR-python
- !git clone https://github.com/jdwittenauer/ipython-notebooks
- notebooks/ipython-notebooks/notebooks/language/Intro.ipynb to start
- !git clone https://github.com/masinoa/machine_learning
- !git clone https://github.com/jakevdp/sklearn_tutorial
- !git clone https://github.com/scikit-image/skimage-tutorials
- skimage-tutorials/lectures/00_images_are_arrays.ipynb
- !git clone https://github.com/spatialaudio/digital-signal-processing-lecture
- !git clone https://github.com/AllenDowney/ThinkDSP
- !git clone https://github.com/AllenDowney/ThinkBayes2
- !git clone https://github.com/AllenDowney/ThinkStats2
- !git clone https://github.com/AllenDowney/ThinkComplexity2
- !git clone https://github.com/AllenDowney/ModSimPy
- !git clone https://github.com/AllenDowney/CompStats
- !git clone https://github.com/multivac61/wave_digital_notebook
- !git clone https://github.com/learnml/machine-learning-specialization
- !git clone https://github.com/ipython/ipython-in-depth
- !git clone https://github.com/yhilpisch/dx
- !git clone https://github.com/yhilpisch/py4fi
- !git clone https://github.com/quantopian/research_public
- !git clone https://github.com/darribas/gds_scipy16
- https://github.com/jupyter/jupyter/wiki/A-gallery-of-interesting-Jupyter-Notebooks#introductory-tutorials
Docker images to run
- Jupyter
- jupyter/datascience-notebook
Docker images that will need to modify to run here, but looking to the future
- Kaggle
- kaggle/python
- kaggle/rstats
- Quantlib
- QSTK
- ipython docker image
- ontouchstart docker image
- Twisted logic docker image
- BitQuant docker image
- Needs Nvidia-docker so may not work here
- OSGeo list of Docker images
- Docker container for QGIS models (github, dockerhub)
- can use with OSGeoLive
- My Dockerfiles at GitHub
Alternatives to Docker for AWS for running Jupyter Notebooks