Go to file
2020-11-21 14:09:43 +01:00
deploy use viper to handle config 2020-11-21 13:04:49 +01:00
screenshots add screenshots, improved README.md 2020-11-21 13:42:39 +01:00
.gitignore resolve symlink 2020-11-21 12:36:08 +01:00
config.example.yml add example deployment 2020-11-21 12:24:30 +01:00
Dockerfile Dockerfile nobody user 2020-11-21 12:11:15 +01:00
go.mod fix module name 2020-11-21 13:22:46 +01:00
go.sum use viper to handle config 2020-11-21 13:04:49 +01:00
handler.go config file + watcher 2020-11-21 12:01:43 +01:00
index.go config file + watcher 2020-11-21 12:01:43 +01:00
LICENSE add license 2020-11-21 14:09:43 +01:00
main.go fix config reloading 2020-11-21 13:21:22 +01:00
module.go use viper to handle config 2020-11-21 13:04:49 +01:00
package.go config file + watcher 2020-11-21 12:01:43 +01:00
README.md add screenshots, improved README.md 2020-11-21 13:42:39 +01:00
templates.go config file + watcher 2020-11-21 12:01:43 +01:00

go-repo

go-repo is a simple golang repository hosting web app, heavily inspired by go.uber.org.

It allows hosting go modules with custom import names.

Example :

$ go get go.adphi.net/go-repo

instead of

$ go get git.adphi.net/adphi/go-repo

Installation

$ docker pull adphi/go-repo

Deployment

An example Kubernetes deployment is available in the deploy directory.

Usage

$ go-repo

Usage:
  go-repo [config] [flags]

Examples:
go-repo config.yml

Flags:
  -a, --address string      The server address (default ":8888")
  -h, --help                help for go-repo
      --logs-level string    (default "info")

An example config file:

modules:
- import: go.adphi.net/go-repo
  repository: git.adphi.net/adphi/go-repo
  readme: git.adphi.net/adphi/go-repo/raw/master/README.md

The config file is reloaded on changes

Run the app:

$ go-repo config.yml

Screenshots

The origin display the available packages index index

The details page display the README.md from configuration details