2019-10-30, 08:21 PM
(2019-10-30, 06:54 PM)PaddyB Wrote: Also, away from openplotter a bit but would this work..?
Circuit Board on EasyEda with some sensors and an esp, docker image of visual studio code with everything needed and a sketch which runs on the esp - then anyone can buy the circuit boards from jlcpcb, download the docker image and just have to click upload to have a working sensor board sending data to signalk?
Docker containers do not have access to a display, so typically you don't use it with applications that have a GUI like VS Code.
The Docker way for this would be to create/use a container image that has the command line / non GUI tools for compiling the sketch and uploading the image to your board. Or precompile and include the binaries in the image, then you need only the upload part.
https://hub.docker.com/r/arduino/arduino-cli seems to include everything needed. The readme is confusing, as it is for the arduino-cli tool, not the Docker image.
If you want to try this stuff out I would first make things work with (locally installed) arduino-cli, then start figuring out how it would work on top of Docker.