Storing capsule pages?

Omar Polo op at omarpolo.com
Sat Feb 13 07:52:32 GMT 2021
David Emerson <d at nnix.com> writes:

> I'm interested to hear how you all are updating your capsules. I'm just building out my infrastructure, and I've decided to use Docker for my gemini server (agate) and for my proxy (kineto).
>
> For now, my index.gmi is in the gemini server's docker container. This isn't ideal, of course, since I have to rebuild the container every time I want to update the site, but it's fine for the moment.
>
> Those who have regularly updated pages, though: how do you update them? I've been thinking I'll just use GitHub to store the capsule root, and reference that from the gemini server, but is there a smarter way?

I have two capsules, one is generated using a custom clojure script
(that generates also the web pages for the WWW version of the site),
while the other is plain text/gemini file.  For both, I use rsync.

In particular, I'm running my server (gmid) inside a FreeBSD jail and I
mount the directory that contains the capsules using mount_nullfs (sort
of mount --bind) in read-only mode, so the server can read the file but
not edit them.

In your case, I think you can do something very similar with a shared
volume mounted inside the container to avoid rebuilding the image at
every update.  Then you can store your file in a git repo (and using a
post-receive hook to update the site) or rync or ...

Cheers,


Archive home | About this archive