Files for building the Guild Jupyter notebook Docker image and deploying the image on AWS.
The following instructions are for OSX/Linux systems.
- Clone this repository
- On your local machine, install Docker and Docker Machine https://docs.docker.com/machine/install-machine/
- Make a copy of env_variables_and_aliases.template
and edit env_variables_and_aliases to define the environment variables and aliases. Source this file in your local shell.
cp env_variables_and_aliases.template env_variables_and_aliases - Through the AWS console, define the AWS security group "docker-machine"
- SSH inbound, Port 2376 inbound, All traffic outbound
- Create an AWS instance
- Run
source launch_instance.sh \<instance name\>on your local machine
- Run
- Modify the hashed notebook password in the Dockerfile as necessary
- Build the Docker image
- Run
docker build -t jupyter-notebook container/on your local machine
- Run
- Run the notebook container
- Run
docker-nbon your local machine
- Run
- Establish the SSH tunnel to the VM
- Run
dm-nb-tunnel \<instance name\>to establish the tunnel
- Run
- Open
http://localhost:8888in a web browser.
dm: Command list for docker-machine
dm start \<instance name\>: Starts the specified VM
dm stop \<instance name\>: Stops the specified VM