IRC logs for #farmOS, 2024-07-25 (GMT)

2024-07-24
2024-07-26
TimeNickMessage
[04:59:13]* ian_vai[m] has joined #farmos
[04:59:14]<ian_vai[m]>hi guys,... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/wakSKdsZZqGGxeaM...)
[09:27:45]<mstenta[m]>ian_vai: I would highly recommend starting with farmOS v3. v2 is no longer supported.
[09:28:00]<mstenta[m]>You can build the image yourself on a Pi pretty easily.
[09:28:27]<mstenta[m]>Happy to help walk through how to do that... and if you wouldn't mind maybe we can document it in a forum topic for future reference.
[09:29:03]<mstenta[m]>Ultimately, we'd like to provide official ARM64 images. We've taken steps towards it in the past, and the path is pretty clear, just haven't had the time to prioritize it.
[09:29:39]<mstenta[m]>paul121: Nice work debugging that `consumers` issue!
[11:02:41]<symbioquine[m]>Haven't looked too deeply yet, but I'm getting a failure with the docker image builds...
[11:02:44]<symbioquine[m]>ACTION uploaded an image: (81KiB) < https://matrix.org/_matrix/media/v3/download/matrix.org/GFjtBrufBUEmKNNr... >
[11:03:28]<symbioquine[m]>(Modified to just run the apt-get step to show that's where it's failing.)
[11:04:25]<mstenta[m]>Hmm. Odd. You know... I was doing some Debian upgrades yesterday (unrelated) and ran into a few remote Debian repository URL failures. I wonder if they're having some upstream server instability?
[11:04:39]<mstenta[m]>Maybe unrelated though... and they did resolve for me eventually.
[11:05:05]<mstenta[m]>FWIW I just pushed 3.x and it built successfully ~1 hr ago: https://github.com/farmOS/farmOS/actions/runs/10095452492
[11:05:05]<symbioquine[m]>Yeah, that sounds like a likely culprit
[11:05:40]<mstenta[m]>Try rerunning? 🤷
[11:07:54]<symbioquine[m]>Will do once I'm back at my computer
[11:56:43]<symbioquine[m]>I was actually out of disk space... https://stackoverflow.com/questions/62473932/at-least-one-invalid-signat...
[11:57:08]<mstenta[m]>Ahh
[11:57:11]<mstenta[m]>That'd do it :-)
[11:57:18]<symbioquine[m]>Unclear why that error message results, but guessing it fails to save the package listing and then it doesn't match the signature.
[11:57:30]<mstenta[m]>Yea interesting
[11:57:52]<mstenta[m]>Hey @room! farmOS dev call starts in a few minutes! All are welcome! :-)
[11:57:59]<mstenta[m]>https://meet.jit.si/farmos-dev
[11:58:26]<symbioquine[m]>Now I'm getting a weird error where the PROJECT_REPO variable isn't being populated for the build-farmos.sh script.
[13:27:58]<symbioquine[m]>It looks like there's a better way to do what we want than using the ARG/ENV pattern...
[13:28:01]<symbioquine[m]>https://github.com/moby/moby/issues/37622#issuecomment-412101935
[13:29:18]<symbioquine[m]>Still not sure why it's working as-is for Mike and working in the GH actions though...
[13:30:47]<mstenta[m]>ah so we set ARG FOO=defaultvalue before the first FROM and then just put ARG FOO at the beginning of each build stage that needs it?
[13:31:05]<symbioquine[m]>Exactly
[13:31:18]<mstenta[m]>Simple enough! Makes sense!
[13:31:32]<mstenta[m]>But/and yea... no idea why it's working for me and github actions without that right now
[13:31:37]<symbioquine[m]>https://github.com/symbioquine/farmOS/commit/3a9dd959e158ec766e9ea9cafb5...
[13:31:59]<mstenta[m]>http://www.quickmeme.com/img/a2/a20a0adec6f4b2d9822846381f9aa637b8429d3a...
[13:32:20]<symbioquine[m]>I tried looking through the Docker 26 vs 27 changelogs and didn't find anything that seemed relevant
[13:33:35]<symbioquine[m]>Not sure I'll have time to look into reproducing the problem/lack-thereof on a clean VM today. Maybe sometime soon though.
[13:33:59]<mstenta[m]>Well if you want to open a PR at least... I think we could consider merging even without nailing down why it worked
[13:34:11]<mstenta[m]>This is the documented right way to do it
[13:34:26]<symbioquine[m]>Sigh...
[13:34:44]<symbioquine[m]>I'll probably see if I can get to the bottom of it before opening the PR.
[13:35:02]<symbioquine[m]>For now it's in this branch if we need it: https://github.com/symbioquine/farmOS/tree/3.x-use-docker-buildx
[13:35:49]<symbioquine[m]>Need to add some links to the commit message and explain what/why.
[13:36:26]<symbioquine[m]>Anyway. Gotta run for today. Thanks for the help!
[13:36:46]<mstenta[m]>Cool sounds good! Thanks symbioquine !
[14:03:13]<ian_vai[m]><mstenta[m]> "Happy to help walk through how..." <- sounds good. happy to document an arm64 docker image build. where do i start? what are the steps?
[14:05:26]<mstenta[m]>You basically just clone the farmOS repo, checkout the version you want (eg: 3.2.3) and run docker build -t farmOS/farmOS:3.2.3 docker
[14:05:46]<mstenta[m]>that will build an image named farmOS/farmOS:3.2.3 which you can then use locally
[14:06:31]<mstenta[m]>docker build will build it for arm64 since that's what you're running it on
[14:09:28]<ian_vai[m]>awesome. thanks for that. I will give it a try tonight and report back