项目作者: andrew-mcgrath

项目描述 :
Proof of concept for deploying anaconda-project files via docker
高级语言: Python
项目地址: git://github.com/andrew-mcgrath/ap-trusted-notebook.git
创建时间: 2019-12-07T15:37:12Z
项目社区:https://github.com/andrew-mcgrath/ap-trusted-notebook

开源协议:MIT License

下载


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.

  1. export IMAGE_NAME="ap-trusted-notebook"
  2. docker build \
  3. --build-arg VCS_REF=$(git rev-parse --short HEAD) \
  4. --build-arg BUILD_DATE=$(date -u +”%Y-%m-%dT%H:%M:%SZ”) \
  5. --build-arg BUILD_VERSION=$(git describe --tags --dirty) \
  6. -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.

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