What is this service and what is it for? What other services does it depend on
Neo4j deployment for Kubernetes
How can I install it
Download the source code, dependencies and test dependencies:
go get -u github.com/kardianos/govendor
go get -u github.com/Financial-Times/neo4j-kubernetes
cd $GOPATH/src/github.com/Financial-Times/neo4j-kubernetes
govendor sync
go build .
How can I run it
Run the tests and install the binary:
govendor sync
govendor test -v -race
go install
Run the binary (using the help flag to see the available optional arguments):
$GOPATH/bin/neo4j-kubernetes [--help]
Options:
--app-system-code="neo4j-kubernetes" System Code of the application ($APP_SYSTEM_CODE)
--app-name="neo4j-kubernetes" Application name ($APP_NAME)
--port="8080" Port to listen on ($APP_PORT)
3. Test:
1. Either using curl:
curl http://localhost:8080/people/143ba45c-2fb3-35bc-b227-a6ed80b5c517 | json_pp
1. Or using [httpie](https://github.com/jkbrzt/httpie):
http GET http://localhost:8080/people/143ba45c-2fb3-35bc-b227-a6ed80b5c517
How can I build and deploy it (lots of this will be links out as the steps will be common)
What are the endpoints offered by the service
e.g.
Using curl:
curl http://localhost:8080/people/143ba45c-2fb3-35bc-b227-a6ed80b5c517 | json_pp`
Or using httpie:
http GET http://localhost:8080/people/143ba45c-2fb3-35bc-b227-a6ed80b5c517
The expected response will contain information about the person, and the organisations they are connected to (via memberships).
Based on the following google doc.
Endpoints that are there for support or testing, e.g read endpoints on the writers
Admin endpoints are:
/__gtg
/__health
/__build-info
These standard endpoints do not need to be specifically documented.
This section should however explain what checks are done to determine health and gtg status.
There are several checks performed:
e.g.
Anything else you want to add.
e.g. (NB: this example may be something we want to extract as it's probably common to a lot of services)
env app parameter, for all environments other than local logs are written to file.local./__build-info and /__gtg endpoints are not logged as they are called every second from varnish/vulcand and this information is not needed in logs/splunk.Content type
Image
Digest
sha256:41b22abbc…
Size
7.7 MB
Last updated
17 days ago
docker pull coco/neo4j-kubernetes