3 ms·
Do you actually need the container at that point? I host all of my hobby projects on a couple of raspi zeros using systemd alone, zero containers. Haven’t had
by mattrighetti 1y ago
Do you actually need the container at that point?
I host all of my hobby projects on a couple of raspi zeros using systemd alone, zero containers. Haven’t had a problem since when I started using it. Single binaries are super easy to setup and things rarely break, you have auto restart and launch at startup.
All of the binaries get generated on GitHub using Actions and when I need to update stuff I login using ssh and execute a script that uses a GitHub token to download and replace the binary, if something is not okay I also have a rollback script that switches things back to its previous setup. It’s as simple as it gets and it’s been my go-to for 2 years now.
- bbkane 1y agoI do this too; but I'm looking to try the container approach when I can't use a single binary (i.e. someone else's Python project).
- mrbluecoat 1y agoHow does your rollback work without containers?
- eitland 1y agoIf it is a single binary, replace the current with the previous. If it is deployed as folders, install new versions as whatever.versionnumber and upgrade by changing the symlink that points to the current version to point to the new one.
- stackskipton 1y agoSure, if you are using single binary output language like Golang, Rust, C or .Net/Java self contained, containers are overkill if you are not using container management system. However, Ruby, Python, JS/TS, Java/.Net are all easier inside a container then outside. Not to say it's not doable, just hair pulling.