Skip to content

mheidinger/HarborMaster

Repository files navigation

HarborMaster

HarborMaster is a simple frontend for a private docker registry.


Installation

Docker

Docker images are available on GHCR. The usage is described below.

Compiling and running locally

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

Usage

./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!