Dockerfile, build and SSH keys to scrape snapshots from mom.xinu.tv.

This commit is contained in:
2017-10-09 21:25:00 -07:00
parent 8b07793b10
commit a61e9c7e1c
4 changed files with 45 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# build stage
FROM golang:alpine AS build-env
RUN apk --no-cache add git
RUN go get -v xinu.tv/zfs_replication_exporter
# final stage
FROM alpine
COPY --from=build-env /go/bin/zfs_replication_exporter /usr/bin/
COPY keys/ /root/.ssh/
EXPOSE 9999
CMD /usr/bin/zfs_replication_exporter \
-logtostderr \
-host mom.xinu.tv:22 \
-user localuser \
-addr :9999