Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #127 from paritytech/redis_exporter
Browse files Browse the repository at this point in the history
docker container build with redis_exporter
  • Loading branch information
gabreal authored Dec 12, 2019
2 parents 8e77fef + 769b2e0 commit 8e8b56a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,15 @@ kubetools:







redis_exporter:
<<: *docker_build
variables:
CONTAINER_IMAGE: $CI_JOB_NAME
CONTAINER_TAG: latest
DOCKERFILE_DIR: $CI_JOB_NAME
only:
variables:
- $DOCKERIMAGE == $CI_JOB_NAME


# vim: expandtab sts=2
19 changes: 19 additions & 0 deletions dockerfiles/redis_exporter/Dockerfile
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" ]


4 changes: 4 additions & 0 deletions dockerfiles/redis_exporter/README.md
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

0 comments on commit 8e8b56a

Please sign in to comment.