|
1 month ago | |
---|---|---|
StaticRoot | 2 months ago | |
contrib | 8 months ago | |
.drone.yml | 5 months ago | |
API.md | 1 month ago | |
LICENSE | 8 months ago | |
README.md | 1 year ago | |
dn42regsrv.go | 1 month ago | |
dnsapi.go | 2 months ago | |
go.mod | 2 months ago | |
go.sum | 2 months ago | |
regapi.go | 1 month ago | |
registry.go | 1 month ago | |
roaapi.go | 2 months ago | |
static.go | 2 months ago |
A REST API for the DN42 registry, written in Go, to provide a bridge between interactive applications and registry data.
A public instance of the API and explorer web app can be accessed via:
go get -insecure git.dn42.us/burble/dn42regsrv
Using container runtime to build with the golang container:
docker run -v ${PWD}:/go/bin golang go get -insecure git.dn42.us/burble/dn42regsrv
Or use the contrib/build.sh script after cloning the repo.
Use --help to view configurable options
${GOPATH}/bin/dn42regsrv --help
The server requires access to a clone of the DN42 registry and for
the git executable to be accessible.
If you want to use the auto pull feature then the registry must
also be writable by the server.
cd ${GOPTH}/src/git.dn42.us/burble/dn42regsrv
git clone http://git.dn42.us/dn42/registry.git
${GOPATH}/dn42regsrv
A sample service file is included for running the server under systemd
A container build script (contrib/buildah.sh) is included in the contrib directory. The script uses buildah.
See the contrib/entrypoint.sh script for environment variables that can be set when running the container.
By default the server will be listening on port 8042.
See the API.md file for a detailed description of the API.
Please feel free to raise issues or create pull requests for the project git repository.