I’m curious if there are any instructions anywhere on just doing command line builds using the same Docker images that are used for the particle-dev-local-compiler?
I have the commands to run the Docker image and do a compile directly but you will have to give me till the weekend to retrieve the script. It’s in the linux box running at home that i have no access to right now
Basically a set of env var needs to be passed along to tell the image where the source files are and where to dump the output, the device to compile against etc.
(The above, on the Mac, assumes your projects are under your user home directory /Users/[username]/somewhere because your user home directory is mounted automatically by docker-machine to the same name. That is how/why the pwd in the above docker run command works.)
Assuming this is run from a directory containing your .ino file (I’m just building blink.ino for this test) this should result in 3 bin files and 4 logs files:
firmware.bin
system-part1.bin
system-part2.bin
The firmware.bin can then be flashed to the device (assuming your device is already on system 0.4.7):
particle flash --usb firmware.bin
Subsequent build just need the docker run command and particle flash. It is helpful to move the build artifacts to a subdirectory: