2022-11-24 09:42:43 +00:00
|
|
|
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
|
2022-12-02 13:19:17 +00:00
|
|
|
RUN contrib/rpm/build.sh
|
|
|
|
RUN mkdir /outdir
|
2022-11-24 09:42:43 +00:00
|
|
|
ENTRYPOINT ["/bin/sh"]
|
|
|
|
ENTRYPOINT ["cp"]
|
2022-12-02 13:19:17 +00:00
|
|
|
CMD ["-r", "/root/rpmbuild/RPMS/x86_64/", "/outdir"]
|