Welcome ODSC 2018 Attendees!
There is a PDF available to prepare for running this repo on AWS. It's available at this link, although I will ask you to sign up for my mailing list.
There are videos for launching a Jupyter Notebook Server available on YouTube here.
You can simply run this entire repo using the tool Docker Compose. From within this directory in bash, run
$ docker-compose up -d
To work on AWS, you will need to set up an SSH Key Pair. On your local system run
$ ssh-keygen
Note: If you are on Windows, you will need some way to operate a Bash shell. I recommend Git Bash.
You will need to add this key to AWS. The default key pair created is id_rsa
and id_rsa.pub
.
You should add the content of id_rsa.pub
to AWS.
This security group should open ports 22, 8888, 5432, 27017 with a Source of anywhere.
-
launch a t2.micro with 30 GB storage on our security
-
get public IP
-
connect over ssh to your new instance
$ ssh ubuntu@your-intance-public-ip
-
install Docker
$ curl -sSL https://get.docker.com | sh
-
add the
ubuntu
user to thedocker
group$ sudo usermod -aG docker ubuntu
-
disconnect and reconnect from the instance
-
pull the Jupyter Scipy-Notebook image. More info on these images here
$ docker pull jupyter/scipy-notebook
-
launch the server as a Docker container
$ docker run -d -v `pwd`:/home/jovyan -p 8888:8888 jupyter/scipy-notebook
-
obtain the container id for your jupyter server
$ docker ps
-
obtain the token for your Jupyter Notebook Server
$ docker exec <yourcontainerid> jupyter notebook list
- visit the server in your browser at
<yourip>:8888
- use your token as the password
-
launch a t2.micro with 30 GB storage on our security
-
get public IP
-
connect over ssh to your new instance
$ ssh ubuntu@your-intance-public-ip
-
install Docker
$ curl -sSL https://get.docker.com | sh
-
add the
ubuntu
user to thedocker
group$ sudo usermod -aG docker ubuntu
-
disconnect and reconnect from the instance
-
clone this repo
-
navigate to
odsc-west-2018/docker/postgres
-
build a new postgres image
$ docker build -t my_postgres .
-
create a volume for data persistence
$ docker volume create pgdata
-
launch the server as a Docker container
$ docker run -d -v pgdata:/var/lib/postgresql/data -p 5432:5432 my_postgres