dockerfiles/oled-arm
Pratik raj b113da5d19 chore: Use --no-cache-dir flag to pip in Dockerfiles, to save space
Using "--no-cache-dir" flag in pip install ,make sure dowloaded packages
by pip don't cached on system . This is a best practise which make sure
to fetch ftom repo instead of using local cached one . Further , in case
of Docker Containers , by restricing caching , we can reduce image size.
In term of stats , it depends upon the number of python packages
multiplied by their respective size . e.g for heavy packages with a lot
of dependencies it reduce a lot by don't caching pip packages.

Further , more detail information can be found at

https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
2021-07-02 01:02:49 +05:30
..
Dockerfile chore: Use --no-cache-dir flag to pip in Dockerfiles, to save space 2021-07-02 01:02:49 +05:30
README.md update oled-arm 2017-05-29 11:55:32 +08:00
demo.py update oled-arm 2017-05-29 11:55:32 +08:00
docker-compose.yml update oled-arm 2017-05-29 11:55:32 +08:00

oled

Setup

OLED Pin | Name | Remarks | RPi Pin |  RPi Function
---------+------+---------+---------+--------------
1        | GND  | Ground  | P01-6   |  GND
2        | VCC  | +3.3V   | P01-1   |  3V3
3        | SCL  | Clock   | P01-5   |  GPIO 3 (SCL)
4        | SDA  | Data    | P01-3   |  GPIO 2 (SDA)
# hello world
$ docker-compose run --rm oled < demo.py
# list all examples
$ docker-compose run --rm --entrypoint ls oled

# clock
$ docker-compose run --rm oled clock.py

# pi logo
$ docker-compose run --rm oled pi_logo.py

# game of life
$ docker-compose run --rm game_of_life.py

Todo

  • Implement RESTful api as default CMD.