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 Imount the directory that contains the capsules using mount_nullfs (sortof mount --bind) in read-only mode, so the server can read the file butnot edit them.
In your case, I think you can do something very similar with a sharedvolume mounted inside the container to avoid rebuilding the image atevery update. Then you can store your file in a git repo (and using apost-receive hook to update the site) or rync or ...
Cheers,