sparkfun / OpenLog_Artemis

The OpenLog Artemis is an open source datalogger the comes preprogrammed to automatically log IMU, GPS, serial data, and various pressure, humidity, and distance sensors. All without writing a single line of code!
https://www.sparkfun.com/products/15846
Other
88 stars 47 forks source link

add a dockerfile for compiling the firmware #178

Closed gauteh closed 9 months ago

gauteh commented 1 year ago

This can be used to easily set up and build the environment. Not thoroughly tested, but hope to use it to fix #177 .

PaulZC commented 1 year ago

Hi Gaute,

This looks excellent - thank you.

I don't use Docker, so I have no easy way of testing this. (My preference would be for a GitHub Workflow Action to do the same job, and then attach the compiled binary to a GitHub release. We use this technique on the RTK firmware and in other places). But thank you again. Let me know how your testing goes.

Best, Paul

gauteh commented 1 year ago

Yes, I agree, including it in CI would be nice, I do not have time to do that unfortunately.

The dockerfile is useful in itself to build the project easily for contributors or users, without setting up or messing around with the patches. I only sporadically do Arduino development, and do not need to have everything installed all the time. Additionally, it is not possible to have modified and unmodified libraries at the same time.

Users can also use this dockerfile to make an apptainer, to be able to work with it without being root.

gauteh commented 1 year ago

This is tested and confirmed to be working.

PaulZC commented 9 months ago

Hi @gauteh ,

Apologies for the very long delay!

I am closing this in favour of #179 - which also includes the docker file.

Best wishes, Paul