configrd/configrd-service

can u provide me sample content to be placed in /srv/configrd/ ??

Closed this issue · 2 comments

I mounted an empty directory and i get 404.

cmd i launched configrd:

sprint @ configrd-service>docker run -d -p 9191:9191 -v `pwd`/emptydir/:/srv/configrd configrd/configrd-service:latest

Curl:

curl http://localhost:9191/configrd/v1/ -v
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 9191 (#0)
> GET /configrd/v1/ HTTP/1.1
> Host: localhost:9191
> User-Agent: curl/7.47.0
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< Connection: keep-alive
< Content-Type: text/html;charset=UTF-8
< Content-Length: 68
< Date: Fri, 19 Apr 2019 02:22:54 GMT
< 
* Connection #0 to host localhost left intact
<html><head><title>Error</title></head><body>Not Found</body></html>

Never mind - i found putting a simple default.properties file is all it needed:

sprint @ configrd-service>cat emptydir/default.properties 
property.5.name=classpath
log.root.level=DEBUG
sprint @ configrd-service>
sprint @ configrd-service>curl http://localhost:9191/configrd/v1/
{"property.5.name":"classpath","log.root.level":"DEBUG"}
sprint @ configrd-service>

Cool, yeah, improving the docs AND will try to generate some default.properties files so you DON'T just get a 404 by just running the quick start.