nomad/go-import-redirector
Elara 8718a3b8fa Update username 2023-07-29 21:33:23 -07:00
..
README.md Update username 2023-07-29 21:33:23 -07:00
go-import-redirector.nomad Update username 2023-07-29 21:33:23 -07:00

README.md

Go Import Redirector

This is the nomad job file I use for rsc's go-import-redirector, which redirects the Go programming language tool to the proper github repo. For example, if someone tries to install one of my projects, rather than having to type out go install gitea.elara.ws/Elara6331/itd@latest, they can just use go install go.elara.ws/itd@latest and this service will redirect them.

This job file downloads an archive containing go-import-redirector executables for x86_64 and aarch64, as well as a script that runs the correct one, from my minio instance.

I am running two instances of this, automatically load-balanced by Traefik. Since the configuration is done entirely in command-line arguments, this workload is completely stateless, and can therefore be moved around freely by Nomad.