https://github.com/azogue/rpi_docker_base
Docker container for RPI3 SaaS development, with Python 3.6.6, Numpy, Pandas and Scipy installed
https://github.com/azogue/rpi_docker_base
docker-image numpy pandas python-3-6 scipy
Last synced: about 1 month ago
JSON representation
Docker container for RPI3 SaaS development, with Python 3.6.6, Numpy, Pandas and Scipy installed
- Host: GitHub
- URL: https://github.com/azogue/rpi_docker_base
- Owner: azogue
- License: mit
- Created: 2018-08-09T09:40:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-09T10:48:38.000Z (over 6 years ago)
- Last Synced: 2025-02-05T12:11:17.535Z (3 months ago)
- Topics: docker-image, numpy, pandas, python-3-6, scipy
- Language: Dockerfile
- Size: 2.77 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker container for RPI SaaS development
This docker container is intended to run Python 3.6 apps in a Raspberry PI 3. It is built from `resin/raspberrypi3-python:3.6`, and contains **Python 3.6.6**, **`numpy==1.14.3`**, **`pandas==0.23.4`** and **`scipy==1.1.0`**.
These are packages that require a lot of time to obtain, because there are no _wheels_ for python 3.6 yet.
As I need them very often, and I like to work with python 3.6 (faster, f-strings, async/await syntax, ...), this container comes in handy to start working quickly when I deploy new services in my raspberries fleet.
## Pull from Docker Hub
```
docker pull azogue/py36_base:rpi3
# or
docker pull azogue/py36_base:x64
```## Use it as base container:
Start your Dockerfile with `FROM azogue/py36_base:rpi3`
```
FROM azogue/py36_base:rpi3ADD ./requirements.txt .
RUN pip3 install -r requirements.txt
RUN ......
```## Build
Get the repo with `git clone https://github.com/azogue/rpi_docker_base`, and `cd rpi_docker_base`.
You need **QEMU** to build the rpi3 container in a x64 platform. In macOS, install it with `brew install qemu`.
Then, copy the needed arm binary to the build dir: `cp /usr/local/bin/qemu-system-arm ./build`.* For the 'rpi3' build:
```
export DOCKER_ID_USER=azogue
cd build
docker build -t $DOCKER_ID_USER/py36_base:rpi3 .
# Check
docker run -it --rm --name test_py36_base_rpi3 $DOCKER_ID_USER/py36_base:rpi3 /bin/sh
# And push
docker push $DOCKER_ID_USER/py36_base:rpi3
```* For a 'x64' build:
```
export DOCKER_ID_USER=azogue
cd build_x64
docker build -t $DOCKER_ID_USER/py36_base:x64 .
# Check
docker run -it --rm --name test_py36_base_x64 $DOCKER_ID_USER/py36_base:x64 /bin/bash
# And push
docker push $DOCKER_ID_USER/py36_base:x64
```