Skip to content

Instantly share code, notes, and snippets.

@klarh
Last active July 26, 2019 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klarh/a924c3f698897c9e41a01cf6a9fc99bb to your computer and use it in GitHub Desktop.
Save klarh/a924c3f698897c9e41a01cf6a9fc99bb to your computer and use it in GitHub Desktop.
Docker images to test vispy jupyter notebook backend installation

This gist holds a docker recipe for testing vispy's jupyter integration. It can be run like:

docker run -p 127.0.0.1:8899:8888 -it --rm mspells/vispy_notebook_tests /bin/bash 
# (setup vispy)
# jupyter notebook --ip 0.0.0.0 --port 8888 --allow-root 
#!/bin/sh
set -e
OWNER=mspells
PACKAGE=vispy_notebook_tests
TAG=$(date +%Y%m%d)
core_tag="${OWNER}/${PACKAGE}:${TAG}"
latest_tag="${OWNER}/${PACKAGE}:latest"
docker build -f Dockerfile -t "${core_tag}" .
docker tag "${core_tag}" "${latest_tag}"
#docker push "${core_tag}"
#docker push "${latest_tag}"
FROM ubuntu:latest
RUN apt-get update && apt-get install -y \
build-essential \
cython3 \
git \
npm \
python3-fontconfig \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y nano && rm -rf /var/lib/apt/lists/* && \
npm install -g npm@latest && \
pip3 install --no-cache-dir --upgrade pip setuptools
RUN pip3 install --no-cache-dir jupyter plato-draw && \
jupyter nbextension enable --py --sys-prefix widgetsnbextension
COPY *.ipynb /
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment