Rid of the Dockerfile, update README

Signed-off-by: Aoi K <koizumi.aoi@chaotic.ninja>

git-svn-id: file:///srv/svn/repo/toyohime/trunk@110 922d331f-388e-da47-97a9-ad700dc0b8b9
This commit is contained in:
koizumi.aoi 2023-03-29 04:47:52 +00:00
parent f4f3bcf625
commit 72a094cf84
2 changed files with 5 additions and 17 deletions

View File

@ -1,8 +0,0 @@
from quay.io/jonnrb/go as build
add . /src
run cd /src && CGO_ENABLED=0 go get ./cmd/vanityserver
from gcr.io/distroless/static
expose 8080
copy --from=build /go/bin/vanityserver /vanityserver
entrypoint ["/vanityserver"]

View File

@ -1,4 +1,5 @@
# Vanity [![GoDoc](https://godoc.org/go.jonnrb.io/vanity?status.svg)](https://godoc.org/go.jonnrb.io/vanity)
# Toyohime
Fork of [go.jonnrb.io/vanity](https://go.jonnrb.io/vanity)
A vanity import path is any import path that can be downloaded with
`go get` but isn't otherwise blessed by the `go` tool (e.g. GitHub,
@ -8,23 +9,18 @@ BitBucket, etc.). A commonly used vanity import path is
## Features
- Redirects browsers to godoc.org (or somewhere else)
- Redirects browsers to godocs.io (or somewhere else)
- Redirects Go tool to VCS
- Redirects godoc.org to browsable files
- Redirects godocs.io to browsable files
## Installation
```bash
go get go.jonnrb.io/vanity
go get marisa.chaotic.ninja/toyohime
```
## Specification
- [Remote Import Paths](https://golang.org/cmd/go/#hdr-Remote_import_paths)
- [GDDO Source Code Links](https://github.com/golang/gddo/wiki/Source-Code-Links)
- [Custom Import Path Checking](https://docs.google.com/document/d/1jVFkZTcYbNLaTxXD9OcGfn7vYv5hWtPx9--lTx1gPMs/edit)
## Contributing
Shoot me an email with a repo and branch to pull (or even better, use
[git-request-pull](https://git-scm.com/docs/git-request-pull)).