Public | Automated Build

Last pushed: 5 months ago
Short Description
Raspbian+python3.5+networkx
Full Description

rpi-python-networkx

Python 3.5 with networkx

Description

Raspbian + python 3.5 + networkx with some modifications :

  • WORKDIR set to /data/

Usage

Run the image

  • Pull the image docker pull hbaltz/rpi-python-networkx
  • Run a python command docker run hbaltz/rpi-python-networkx python <a-python-command>

If you want to launch a script :

  • Create a data folder on your computer : sudo mkdir <path-to-data-dir>
  • Place your python scripts in <path-to-data-dir>
  • Link the volume <path-to-data-dir> to /data in the container
  • Launch docker run -v <path-to-data-dir>:/data hbaltz/rpi-python-networkx:latest python <script-name>.py

Compile the image yourself

Example

  • To see the version of python install launch : docker run hbaltz/rpi-python-networkx python --version

To launch a script :

  • If hello.py is in /mnt/Data/python/
  • Launch this command line to launch it : docker run -v /mnt/Data/python/:/data hbaltz/rpi-python-networkx:latest python hello.py

Summary

A docker image with python 3.5.2 and networkx installed

License

MIT License

Copyright (c) 2017 hbaltz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Docker Pull Command
Owner
hbaltz

Comments (0)