hannseman/docker-raspbian

Support for code deployment inside Raspbian

vendingkioskpi opened this issue · 3 comments

It would be great to see Dockerfile example of command execution or code deployment from the host machine to the Raspbian running in the QEMU as it's easy to access only debian:buster-slim running in the Docker but not Raspbian.

You can connect to raspbian by ssh as described by the README:

ssh -p 2222 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no pi@localhost

I can do this from my host machine manually but I need an example from Dockerfile.
I.e. I can copy my app and server configuration scripts to the Debian by adding
COPY server/app /tmp/app
COPY server/config /tmp/config
to the end of the Dockerfile provided here but how to copy them inside the Raspbian and execute commands inside the Raspbian from this Dockerfile?

Ah I see! I've never tried this but I guess it should be possible by creating a mount point with VOLUME in the Dockerfile and then using 9pfs to mount that directory from the host (debian) to guest (raspbian).

Found some details here:
dhruvvyas90/qemu-rpi-kernel#57