Giter Site home page Giter Site logo

rpi-python's Introduction

rpi-python

Raspberry Pi compatible Docker base image with Python preinstalled.

Run all the commands from within the project root directory.

Build Details

Build the Docker Image

make build

Run the Docker Image and get the version of the installed Python

make version

Push the Docker Image to the Docker Hub

  • First use a docker login with username, password and email address
  • Second push the Docker Image to the official Docker Hub
make push

License

The MIT License (MIT)

Copyright (c) 2015 Hypriot

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.

rpi-python's People

Contributors

dieterreuter avatar govinda-fichtner avatar mathiasrenner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rpi-python's Issues

pip install

Hello,

Thank you very much for your work on docker for ARM plateform, it is precious :)

I tried using this image to build a python project, but i cannot find a way to install the requirements... Here is my dockerfile that returns "exec user process caused "exec format error"" when i am running the build (i am running the build command on my dev PC which is not ARM of course)

COPY requirements.txt requirements.txt
RUN ["pip", "install", ""--no-cache-dir", "-r", "requirements.txt"]

COPY src ./

EDIT: when build on my raspberry, it works. I guess you must build your image on the same environnement you will want your container to run ? There is no way to build this image on a non-ARM plateform ?

rpi-python images missing "onbulid" target

The official Docker python images have an "onbuild" target that is used to tackle the common task of installing prerequisites from a requirements.txt file. I'm trying to figure out how to reverse engineer that behavior into a Dockerfile, either to write that up for this image, or simply to adapt the instructions from

https://registry.hub.docker.com/u/library/python/

so taht the hypriot/rpi-python:onbuild target can exist.

Clarify why to use this image

What is this image good for in comparison with other images like official python?

Official image is well maintained (with autobuild) and offers great selection of tags (versions).
What offers this image?

Can't Pull hypriot/rpi-* Images: dial unix /var/run/docker.sock: no such file or directory

So just got my PI 2 1GB after reading what you folks have been up to with Docker on the Raspberry PI.

  • Downloaded hypriot-rpi-20150329-140334.img
  • Flashed to the SD
sudo dd if=hypriot-rpi-20150329-140334.img of=/dev/disk2 bs=2m
Password:
610+1 records in
610+1 records out
1280000000 bytes transferred in 876.009959 secs (1461171 bytes/sec)
  • Unmounted the SD card, inserted in the PI 2 1GB, powered up, and logged in.
Linux black-pearl 3.18.10-hypriotos-v7+ #2 SMP PREEMPT Sun Mar 29 13:13:41 UTC 2015 armv7l
<SNIP>
HypriotOS: root@black-pearl in ~
$ docker pull hypriot/rpi-python
FATA[0000] Post http:///var/run/docker.sock/v1.17/images/create?fromImage=hypriot%2Frpi-python%3Alatest: dial unix /var/run/docker.sock: no such file or directory 
HypriotOS: root@black-pearl in ~

I verified external network connectivity and then tried pulling each of the hypriot/rpi-xxx files with the same outcome.

As far as I can tell, I followed all of the instructions verbatim but obviously missed something(?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.