Skip to content

Commit 3e2b7a6

Browse files
authored
Merge pull request #88 from tompscanlan/fix-container
fix certs in container to allow list download, and show use in container
2 parents 205cce1 + df296bf commit 3e2b7a6

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
FROM alpine:3.15.0 as certs
2+
RUN apk --update add ca-certificates
3+
14
FROM scratch
5+
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
26
COPY grimd /usr/bin/grimd
37
EXPOSE 53:53/udp
48
EXPOSE 53:53/tcp

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,15 @@ 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+
122+
mkdir sources
123+
docker build -t grimd:latest . && \
124+
docker run -v $PWD/sources:/sources --rm -it -P --name grimd-test grimd:latest --config /sources/grimd.toml --update
125+
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+
120129
# Web API
121130
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.
122131

0 commit comments

Comments
 (0)