Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kalessin/martindev
Development Environment Dockerfile with web scraping tools, and machine and deep learning tools
https://github.com/kalessin/martindev
deep-learning docker-image machine-learning
Last synced: 25 days ago
JSON representation
Development Environment Dockerfile with web scraping tools, and machine and deep learning tools
- Host: GitHub
- URL: https://github.com/kalessin/martindev
- Owner: kalessin
- Created: 2017-04-20T19:49:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T04:50:00.000Z (almost 2 years ago)
- Last Synced: 2023-03-11T05:18:53.014Z (over 1 year ago)
- Topics: deep-learning, docker-image, machine-learning
- Language: Vim script
- Homepage:
- Size: 42 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Development environment with:
- python 3
- R
- octave
- scrapy suite
- scrapinghub suite
- jupyter notebook (aka ipython notebook)
- scipy & sklearn & matplotlib
- neurolab
- TensorFlow (no GPU support*)
- pandas
- geopandas & mplleaflet* If you have a GPU, follow rules here to install TensorFlow with GPU support instead:
`https://www.tensorflow.org/install/install_linux#determine_which_tensorflow_to_install`_
Install/Run
===========Build instructions::
docker build -t kalessin/martindev .
Alternatively::
docker pull kalessin/martindev:latest
Run instructions::
docker run -ti kalessin/martindev /bin/bash
Running Jupyter notebook
========================If want to run jupyter, don't forget to map the port to host machine::
docker run -ti -v :/app/jupyter -p 127.0.0.1:8888:8888 kalessin/martindev /bin/bash
And once logged in container console, run jupyter notebook with following options::
$ jupyter notebook --no-browser --allow-root --ip=0.0.0.0
So you can access from host by pointing browser to 127.0.0.1:8888
Running X applications
======================If some application running in the container needs access to host X server, first run following commands in host machine running X server::
XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
touch $XAUTH
xauth nlist :0 | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -Those steps make available the host X socket and authorization credentials for applications running in container.
Then run a new container as follows::
docker run -ti -v $XSOCK:$XSOCK:rw -v $XAUTH:$XAUTH:rw -e DISPLAY -e XAUTHORITY=${XAUTH} kalessin/martindev /bin/bash
It is not the safest way to grant applications running in container access X server as root, but it is the simplest one. For more elaborated alternatives, check
``_