docs
This commit is contained in:
parent
f80c142b6f
commit
2295ae64a1
36
Makefile
36
Makefile
@ -1,36 +0,0 @@
|
||||
.PHONY: all build login push run
|
||||
|
||||
NAME := rosscdh/keyserver
|
||||
TAG := $$(git log -1 --pretty=%h)
|
||||
VERSION := ${NAME}:${TAG}
|
||||
LATEST := ${NAME}:latest
|
||||
|
||||
BUILD_REPO_ORIGIN=$$(git config --get remote.origin.url)
|
||||
BUILD_COMMIT_SHA1:=$$(git rev-parse --short HEAD)
|
||||
BUILD_COMMIT_DATE:=$$(git log -1 --date=short --pretty=format:%ct)
|
||||
BUILD_BRANCH:=$$(git symbolic-ref --short HEAD)
|
||||
BUILD_DATE:=$$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||
|
||||
|
||||
all: build login push
|
||||
|
||||
|
||||
build:
|
||||
docker build -t ${LATEST} -t ${LATEST} \
|
||||
--build-arg BUILD_COMMIT_SHA1=${BUILD_COMMIT_SHA1} \
|
||||
--build-arg BUILD_COMMIT_DATE=${BUILD_COMMIT_DATE} \
|
||||
--build-arg BUILD_BRANCH=${BUILD_BRANCH} \
|
||||
--build-arg BUILD_DATE=${BUILD_DATE} \
|
||||
--build-arg BUILD_REPO_ORIGIN=${BUILD_REPO_ORIGIN} \
|
||||
.
|
||||
|
||||
login:
|
||||
docker login ${REGISTRY}
|
||||
|
||||
push:
|
||||
docker push ${LATEST}
|
||||
docker push ${TAG}
|
||||
|
||||
run:
|
||||
#docker run -v ${PWD}/src:/app/src -p8090:3000 ${LATEST}
|
||||
docker run -p8090:3000 ${LATEST}
|
@ -29,7 +29,15 @@ The idea is that an identity provider such as an email provider can host their o
|
||||
|
||||
Try out the server here: [https://keys.mailvelope.com](https://keys.mailvelope.com)
|
||||
|
||||
### Get started
|
||||
|
||||
```
|
||||
docker-compose up
|
||||
docker-compose exec -it mongodb bash
|
||||
mongo -u keyserver_user -p keyserver_pass
|
||||
use keyserver_db
|
||||
db.createUser({ user:"keyserver_user", pwd:"keyserver_pass", roles:[{ role:"readWrite", db:"keyserver_db" }] })
|
||||
```
|
||||
|
||||
# API
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user