Skip to content

Commit bf47147

Browse files
authored
Update README.md
1 parent 3e2b7a6 commit bf47147

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,18 @@ Requires golang 1.7 or higher, you build grimd like any other golang application
117117
env GOOS=linux GOARCH=amd64 go build -v github.com/looterz/grimd
118118
```
119119

120-
# Run container and test
121-
120+
# Docker
121+
Run container and test
122+
```shell
122123
mkdir sources
123124
docker build -t grimd:latest . && \
124125
docker run -v $PWD/sources:/sources --rm -it -P --name grimd-test grimd:latest --config /sources/grimd.toml --update
126+
```
125127

126-
# For Mac docker, must set 'api = "0.0.0.0:8080"' instead of 'api = "127.0.0.1:8080"' to get networking correct
127-
# curl -H "Accept: application/json" http://127.0.0.1:55006/application/active
128+
For Mac docker, must set 'api = "0.0.0.0:8080"' instead of 'api = "127.0.0.1:8080"' to get networking correct
129+
```shell
130+
curl -H "Accept: application/json" http://127.0.0.1:55006/application/active
131+
```
128132

129133
# Web API
130134
A restful json api is exposed by default on the local interface, allowing you to build web applications that visualize requests, blocks and the cache. [reaper](https://github.com/looterz/reaper) is the default grimd web frontend.

0 commit comments

Comments
 (0)