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).
The container delivers is a trusted jupyter notebook, exposed via http, on port 8888.
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 .
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