< 302024-07-31⋎01 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
16:13symbioquine[m]I'm trying to understand the context for these lines: github.com/farmOS/farmOS/blob/3a73ccf636
16:13symbioquine[m]Is there any reason we can't build both images in one step now that the Dockerfiles are combined?
16:13symbioquine[m]I'm worried about the "notably it does NOT override the default PROJECT_VERSION" part.
16:15symbioquine[m]The reason is that I'm trying to figure out what it would take to build the multi-platform images with buildx and having the two build steps there adds a bit of complexity. Plus it seems like we're doing duplicate work rebuilding the production image as part of building the dev image there...
16:18symbioquine[m]symbioquine[m]: It seems like that comment might be a bit misleading because the line #39 above doesn't override the `PROJECT_VERSION` either.
16:18symbioquine[m] * The motivation here is that I'm trying to figure out what it would take to build the multi-platform images with buildx and having the two build steps there adds a bit of complexity. Plus it seems like we're doing duplicate work rebuilding the production image as part of building the dev image there...
16:19symbioquine[m]* #39 above it doesn't override
17:03mstenta[m]Yea I think we can combine them now!
17:03mstenta[m]And yea, it would be a good time to update/move/remove that comment probably too.
17:04mstenta[m]It might still be worth highlighting that PROJECT_VERSION doesn't get overridden on the combined step
17:04mstenta[m]FYI I think I have an old buildx branch that I played around with a while ago... although it probably doesn't do anything beyond what you're doing
17:05mstenta[m]github.com/mstenta/farmOS/tree/2.x-build
17:06mstenta[m]Oh yea and that's related to this d.o issue we have open ("Needs Work"): www.drupal.org/project/farm/issues/33227
17:07mstenta[m]But that's ~2 years old at this point, so maybe very outdated
17:08mstenta[m]Looks like the approach I took was to add an entirely separate build-arm64 step... so your approach sounds better
17:08mstenta[m](Assuming your goal is to build arm64... ?)
17:08symbioquine[m]Awesome!
17:09mstenta[m]Feel free to take over that d.o issue!
17:09mstenta[m](or just make a PR and link to it)
17:10symbioquine[m]Yeah, thought I'd see if can get our GH build to produce and test against the major three architectures. (Arm32v7, Arm64v8, and amd64)
17:11mstenta[m]Not sure if this comment is still relevant, but:
17:11mstenta[m]> The other piece that hasn't been tested is the push to Docker Hub. I have a feeling that the way I have this structured will not work. I need to read up a bit more on what Docker Hub expects when pushing the multi-architecture images. Specifically: we will be pushing the same tag(s) for both architectures - and right now those will happen individually. Not sure if that's acceptable, or if the push needs to be combined somehow.
17:12mstenta[m]But that's probably just a limitation of the approach I took
17:12symbioquine[m]That should enable all the RPI sorts of devices to work out-of-the-box with the same official docker image tag - and no local `docker build` step.
17:12mstenta[m]That would be awesome
17:15symbioquine[m]I think to keep the caching in place, we basically need to a GH actions matrix to build/cache/test each arch separately, then in the push step we'd have a `docker manifest` step to create a single multiplatform manifest before pushing.
17:15mstenta[m]Yea I was wondering if we should test against all too
17:16*wishes we could get to the bottom of that sqlite3 testing issue - but that's a separate topic 🙄
17:16symbioquine[m]For the testing, it would be cool to see the matrix fan out over two variables...
17:16mstenta[m](i actually wondered recently if we should just drop "official" support for sqlite3)
17:17symbioquine[m]symbioquine[m]: Though I could also see the argument about it being overkill.
17:17symbioquine[m]mstenta[m]: Hmmm
17:18mstenta[m]SQLite3 support is nice to say we support, but in practice I don't recommend it
17:18mstenta[m]It's sort of just a freebie
17:18symbioquine[m]AFAIK the failures are more an artifact of the testing environment than an actual issue with sqlite support.
17:18mstenta[m]Yea
17:19mstenta[m]There's no good reason to drop support other than my own frustration with the tests 😆
17:19symbioquine[m]It's handy for testing in some scenarios imho
17:19mstenta[m]True true
17:20symbioquine[m]github.com/symbioquine/farm-faux-cloud/b
17:22symbioquine[m]Seems like we should "test all the things" within reason until we get a signal we need to cut back...
17:23mstenta[m]I agree
17:23mstenta[m]I'm just grumpy about the tests :-P
17:23symbioquine[m]It's basically Microsoft subsidizing farmers having good software.

< 302024-07-31⋏01 >