Docker images are available on GHCR. The usage is described below.
For compiling the source, first download all dependencies:
go mod download
After that the compilation and execution can be done via the Makefile:
make
make run
A cleanup is also possible:
make clean
./HarborMaster -help
Usage of ./HarborMaster:
-needed_header string
Header that needs to be set for requests to be allowed (default "X-TAC-User")
-password_file string
Password of the docker registry (default "/run/secrets/hm_registry_password")
-port int
Port on which the application will run (default 4181)
-url string
URL of the docker registry (default "localhost:8080")
-username_file string
Username of the docker registry (default "/run/secrets/hm_registry_username")
The default needed header is set to work with TraefikAccessControl!