This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from paritytech/redis_exporter
docker container build with redis_exporter
- Loading branch information
Showing
3 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM golang:1.13-alpine as builder | ||
|
||
RUN apk --no-cache add ca-certificates git | ||
|
||
RUN go get github.com/oliver006/redis_exporter | ||
RUN cd $GOPATH/src/github.com/oliver006/redis_exporter && go build | ||
|
||
|
||
FROM alpine as alpine | ||
COPY --from=builder /go/src/github.com/oliver006/redis_exporter/redis_exporter /redis_exporter | ||
COPY --from=builder /etc/ssl/certs /etc/ssl/certs | ||
|
||
# Run as non-root user for secure environments | ||
USER 59000:59000 | ||
|
||
EXPOSE 9121 | ||
ENTRYPOINT [ "/redis_exporter" ] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# redis exporter | ||
|
||
build docker image from https://github.com/oliver006/redis_exporter | ||
|