https://github.com/creative-workflow/rpi-docker-development
Emulate an raspberry device on your development machine. - not fully working
https://github.com/creative-workflow/rpi-docker-development
Last synced: over 1 year ago
JSON representation
Emulate an raspberry device on your development machine. - not fully working
- Host: GitHub
- URL: https://github.com/creative-workflow/rpi-docker-development
- Owner: creative-workflow
- License: mit
- Created: 2017-11-05T17:02:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T04:16:03.000Z (over 8 years ago)
- Last Synced: 2025-01-08T19:40:45.339Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 1.62 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rpi-docker-development
Lets make raspberry development easy by using docker:
1. Emulate an raspberry device on your development machine.
2. Develop your raspberry app by using docker container with full access to the hardware.
3. Build your raspberry os image and deploy to sd card or simply pull the docker container on raspberry.
## Prepare your host
Install:
* [docker](https://docs.docker.com/engine/installation/)
* [docker-compose](https://docs.docker.com/compose/install/)
## Prepare emulator
Run:
* `docker-compose build` to build your emulator container
* `docker-compose run emulator /emulator-prepare` to prepare raspberry emulation
## Run raspberry
Run `docker-compose run emulator emulator-run` and you will have a working raspberry shell.
## Setup docker and docker-compose on emulated raspberry
Run on raspberry emulation shell `/host/rpi/setup-docker`.
Or run on your development host `docker-compose run emulator /host/rpi/setup-docker`.
## Develop your raspberry docker app
You have to make sure to use a cross-buildable container base image or simply use the provided base image in `docker/rpi/base/Dockerfile` (look at `docker/rpi/docker-compose.yml` and `docker/rpi/wiringpi/Dockerfile`).
### Hello world
TODO
### Access gpio
TODO
### Deploy to your 'real world' raspberry
##### via sd card
##### via docker image update
## Limitations
### Sound
Sound is not supported as you have to pass your drive to the emulator instance. If you want to do so, uncomment the line `export QEMU_AUDIO_DRV=none` in file `docker/emulator/emulator-run` and rebuild the image ('docker-compose rebuild').
### GUI
At the moment there is no graphical user interface support. If you need one, a good point to start is to remove the `-nographic` parameter in `docker/emulator/emulator-run` and pass a device in `docker-compose.yml`.