ptwobrussell / Mining-the-Social-Web-2nd-Edition

The official online compendium for Mining the Social Web, 2nd Edition (O'Reilly, 2013)
http://bit.ly/135dHfs
Other
2.9k stars 1.49k forks source link

Convert to run in Docker #297

Open zeristor opened 8 years ago

zeristor commented 8 years ago

The puppet package deployment for this was the first time I saw it a while ago, would it be fairly simple to install this in Docker?

Although Linux and OS X only at the moment, Windows should follow on soon. I plan to look to experiment with this myself.

chimere commented 8 years ago

Hello, zeristor hope you've made some progress with the docker implementation? Am just trying my 5th attempt to get the practice files to run on OS X El Capitan with little luck. I've see every other post and tried all solutions and will soon have to push my issues to the forum. If you've made docker inroads please share it might make life much easier. Thank you

westurner commented 6 years ago

Here's a start:

FROM jupyter/minimal-notebook
USER $NB_USER
COPY mtsw2e-requirements.txt
pip install -r /mtsw2e-requirements.txt

https://github.com/jupyter/docker-stacks/tree/master/minimal-notebook

https://github.com/jupyter/docker-stacks/blob/master/base-notebook/Dockerfile

You could also create an environment.yml.

phusion/baseimage-docker launches multiple services in one container with runit and this init process written in Python: https://github.com/phusion/baseimage-docker/blob/master/image/bin/my_init

Jupyter/docker-stacks use tini instead of my_init: https://github.com/krallin/tini