I’ve got forgejo configured and running as a custom docker app, but I’ve noticed there’s a community app available now. I like using the community apps when available since I can keep them updated more easily than having to check/update image tags.

Making the switch would mean migrating from sqlite to postgres, plus some amount of file restructuring. It’ll also tie my setup to truenas, which is a platform I like, but after being bit by truecharts I’m nervous about getting too attached to any platform.

Has anyone made a similar migration and can give suggestions? All I know about the postgres config is where the data is stored, so I’m not even sure how I’d connect to import anything. Is there a better way to get notified about/apply container images for custom apps instead?

  • irmadlad@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 day ago

    Really? Cool! I am going to have to investigate. Sounds like a great project for me to learn from.

    • mesa@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      Yep take a look, theres quite a few examples, but they use Github Actions, CircleCI, Gitlab etc… etc…

      Most CI/CD that use the above-ish model will use the same kinda scripts (bash or otherwise). Basically if you can do it on your desptop, you can automate it on a server. Make it work first, then try to make it better.

      Most of the time, ill throw my Docker/Docker Compose (and/or terraform if need be) on the root of the repo and do the same steps I do on the development side for building/testing on the CI side. Then switch over to CD with either a new machine (docker build/ compose) or throw it all on a new server. At that point, if you script it out correctly, it doesnt really matter what kind of server you use for CI/CD, since they are all linux boxes at the end of the day.

      You can also mix it up by using bare metal, docker alternatives, different password managers, QA tools, linters, etc…etc…

      But virtualization will get you quite far. In my opinion start with just trying to get the project to build on another server via a script from scratch, then transfer it over to the CI. Then go with testing/deployment.

      GL!