I Cannot SSH Into My Server Anymore (And That’s Fine)

47 points by lthms


novalis

Now, every time I update the tag www/soap.coffee:live to point to a newer version of my image, my website is updated within the hour.

Hope you didn't make a typo -- you'll be staring at it for a long time. I don't see the appeal of a system with cycle times this slow, and observability this weak.

dsr

I have a webserver - nginx - which serves static files. I have a script -- it's actually a makefile -- that can invoke an editor to create or edit an article. To publish, it rsyncs the changes over to the webserver.

I can serve, at a rough estimate, every household in the USA one article a day. Maybe two. Actual demand is lower than this by maybe seven orders of magnitude, so I use the server for other things, as well.

polywolf

I also discovered Podman Quadlets recently, and use them to run a Factorio server. It is pretty nice, though I have found that "reading the man page in full" is a lot nicer than any other documentation that you can find from a standard web search.

One point in particular that tripped me up was the following (https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html):

The services created by Podman are considered transient by systemd, which means they don’t have the same persistence rules as regular units. In particular, it is not possible to systemctl enable them in order for them to become automatically enabled on the next boot.

To compensate for this, the generator manually applies the [Install] section of the container definition unit files during generation, in the same way systemctl enable does when run later.

That is, so long as the definition has an [Install] section, it will be automatically enabled, and this has to be done due to limitations in systemd.

Anyways, this is a very good article, nice to see a demonstration of a completely automated setup!

wink

To publish a new article, I push a new Docker image to the appropriate registry with the correct tag. tinkerbell will fetch and deploy it

I know I just misread it but now I want a blog where article is its own container. And then every comment as well.

yorickpeterse

Due to the recent Cloudflare issues (amongst other ones) I've been looking into self-hosting a few websites again. Similar to the author I want something stable/no-nonsense. In particular I've been looking into an immutable setup where (ideally) you don't even need Ignition/cloud-init/whatever Red Hat comes up with tomorrow, but so far that turns out to be tricky.

Specifically, I've looked into a few tools such as bootc, mkosi, and FreeBSD (see this rough repository for the code), but the results have been a bit mixed. bootc probably comes closest to what I'd like, but the general state of the project is very alpha-ish and the documentation is more or less non-existing. Building an ISO for the initial bootstrap is also difficult enough that I'm considering just bootstrapping it using Fedora CoreOS (= install CoreOS, then rebase onto the bootc image). I'll probably keep SSH access though, it's just too handy :)

Incus OS is probably quite similar to what OP does as it doesn't let you SSH into the instance either, instead you use an API through their CLI. It looks interesting, though its use of Incus instead of Podman is what put me off so far.