mirror of
https://github.com/prometheus-community/ipmi_exporter
synced 2025-01-05 06:02:35 +00:00
b72f43d24f
* Move rpm build files to contrib/rpm/ directory structure * Update top level README.md for referencing to contrib/rpm/README.md for rpm build
15 lines
489 B
Plaintext
15 lines
489 B
Plaintext
FROM centos:7
|
|
MAINTAINER jknedlik <j.knedlik@gsi.de>, Gabriele Iannetti <g.iannetti@gsi.de>
|
|
WORKDIR /tmp
|
|
RUN yum install -y git make gcc rpm-build which
|
|
RUN curl -LO https://go.dev/dl/go1.18.1.linux-amd64.tar.gz
|
|
RUN tar -C /usr/local -xvzf go1.18.1.linux-amd64.tar.gz
|
|
ENV PATH=$PATH:/usr/local/go/bin
|
|
COPY . /go/ipmi_exporter
|
|
WORKDIR /go/ipmi_exporter
|
|
RUN contrib/rpm/build.sh
|
|
RUN mkdir /outdir
|
|
ENTRYPOINT ["/bin/sh"]
|
|
ENTRYPOINT ["cp"]
|
|
CMD ["-r", "/root/rpmbuild/RPMS/x86_64/", "/outdir"]
|