farmOS / farmOS-aggregator

A microservice application for aggregating data from multiple farmOS instances.
GNU General Public License v3.0
21 stars 10 forks source link

Docker Hub image automated builds broken #124

Open mstenta opened 1 year ago

mstenta commented 1 year ago

I broke the automated builds on Docker Hub when I cleaned up after https://github.com/farmOS/farmOS/pull/580 :-(

Opening this so we don't forget about it...

mstenta commented 1 year ago

We have a choice here:

1) Try to set it up like it was before (or similar). I think this will require creating a new GitHub "machine user". Previously we had a farmOS-docker user which I deleted.

  • Remove farmOS-docker GitHub user from "Linked Accounts" in farmOS organization settings.
    • Deactivate farmOS-docker GitHub user? I don't think this is used for anything else.

https://github.com/farmOS/farmOS/pull/580#issuecomment-1263515732

2) Build the images via GitHub Actions and push to Docker Hub, like we are now doing for farmOS.

mstenta commented 1 year ago

Build the images via GitHub Actions and push to Docker Hub, like we are now doing for farmOS.

I'd rather go this route, if possible, for consistency and simplicity/security (no need to maintain another GitHub user, all controlled through the same shared GitHub secrets that the farmOS repo uses). It requires some development/testing though...

It also means we'd have to manually create/push the 2.0.0-beta2 tag I think...

mstenta commented 2 weeks ago

@ktohalloran ran into this: https://farmos.discourse.group/t/authorizing-a-farm-in-farmos-aggregator/2159/8

ktohalloran commented 2 weeks ago

@mstenta This probably doesn't exactly fit within the scope of this issue, but as it's at least related, it's worth mentioning that the Docker images referenced in docker-compose.deploy-template.yml refer to farmos/aggregator:backend and farmos/aggregator:frontend, rather than the latest images. Updating our version of docker-compose.yml based on that file to use the 2.x tagged versions at least partially fixed the issues I was having. Please let me know if there's some other action you'd like me to take with this issue.

ktohalloran commented 2 weeks ago

the Docker images referenced in docker-compose.deploy-template.yml refer to farmos/aggregator:backend and farmos/aggregator:frontend, rather than the latest images.

I just saw the deployment docs say these are meant to be aliases for the latest images, but our Docker containers were built on the images named that from 5 years ago. I don't really know how image aliases are supposed to work, so noting this here on the off-chance it has something to do with the automated build process.