• 4 Posts
  • 64 Comments
Joined 1 year ago
cake
Cake day: September 29th, 2023

help-circle



  • exu@feditown.comtoProgrammer Humor@lemmy.mlDeployments
    link
    fedilink
    English
    arrow-up
    11
    ·
    12 days ago

    I’d probably prefer a bash script that’s called from your CI/CD if done properly, just because I could run the same tests locally with that script. That makes the feedback loop much faster and also allows stuff like auto formatting.

    Yes, you can do git hooks, but then you have to keep it in sync with your CI/CD all the time.















  • I use podman mainly because it’s very easy to manage using systemd services. Unfortunately, the command for generating these service files, podman-generate, is deprecated and won’t receive new features.

    Auto updating is done just using a simple tag and enabling a systemd timer to do it regularly for you.

    It’s easiest to start with the rootful mode, you won’t have additional settings to set and no issues with permissions, UIDs and networking.

    For networking, I always create a network per service I want to run. For example Nextcloud and its database would go in one network and you’d only forward the port for the webinterface for outside access.

    In addition to networks I also use pods, this basically groups the containers together to start/stop them as one. If you use this, you have to set your port forwarding here.