Skip to content

Proof of concept for deploying anaconda-project files via docker

License

Notifications You must be signed in to change notification settings

andrew-mcgrath/ap-trusted-notebook

Repository files navigation

Docker Automated Docker Builds Github License Github Release

Purpose

This project was created to prove if an anaconda-project could be used to serve up a trusted jupyter notebook via a docker container. This container could then be deployed either on a local workstation or to a remote orchestration service such as kubernetes or the AWS Elastic Container Service (ECS).

Docker

The container delivers is a trusted jupyter notebook, exposed via http, on port 8888.

Build Locally

To build the container image, simply execute a standard docker build command.

export IMAGE_NAME="ap-trusted-notebook"
docker build \
  --build-arg VCS_REF=$(git rev-parse --short HEAD) \
  --build-arg BUILD_DATE=$(date -u +”%Y-%m-%dT%H:%M:%SZ”) \
  --build-arg BUILD_VERSION=$(git describe --tags --dirty) \
  -t $IMAGE_NAME .

Run

To run the container port 8888 needs to be exposed to the host or service depending on the deployment mechanism. This will allow the jupyter notebook to be accessed via http.

docker run -it --rm -p 8888:8888 amcgrath/ap-trusted-notebook