Dockerfile, build and SSH keys to scrape snapshots from mom.xinu.tv.
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user