Sign inSign up

marvinpan/gluster-prometheus

By marvinpan

Updated over 6 years ago

build https://github.com/gluster/gluster-prometheus.git master branch,2020-02-26

Image
0

1.5K

marvinpan/gluster-prometheus repository overview

from golang:stretch as build

# Otherwise make runs with /bin/sh
ENV SHELL "bash"

RUN \

# Install dep
    curl -sL https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 > $GOPATH/bin/dep && \
    chmod 755 $GOPATH/bin/dep && \
# Install gometalinter
    curl -sL https://github.com/alecthomas/gometalinter/releases/download/v2.0.11/gometalinter-2.0.11-linux-amd64.tar.gz | tar --strip-components=1 -zxf - -C $GOPATH/bin && \
# Install gluster-prometheus
    mkdir -p $GOPATH/src/github.com/gluster && \
    cd $GOPATH/src/github.com/gluster && \
    git clone https://github.com/gluster/gluster-prometheus.git && \
    cd gluster-prometheus && \
    bash -c "make" && \

    cp ./extras/conf/gluster-exporter.toml.sample /tmp/gluster-exporter.toml && \
    cp ./build/gluster-exporter /tmp/

from alpine

copy --from=build /tmp/gluster-exporter /
copy --from=build /tmp/gluster-exporter.toml /
#  copy gluster-exporter.service /

Tag summary

Content type

Image

Digest

Size

10.2 MB

Last updated

over 6 years ago

docker pull marvinpan/gluster-prometheus