-
Notifications
You must be signed in to change notification settings - Fork 41
/
Dockerfile
41 lines (31 loc) · 1.61 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM docker.io/library/rockylinux:9.3
ARG BUILD_DATE="N/A"
ARG REVISION="N/A"
ARG DELLHW_EXPORTER_VERSION="N/A"
LABEL org.opencontainers.image.authors="Alexander Trost <galexrt@googlemail.com>" \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.title="galexrt/dellhw_exporter" \
org.opencontainers.image.description="Prometheus exporter for Dell Hardware components using OMSA." \
org.opencontainers.image.documentation="https://github.com/galexrt/dellhw_exporter/blob/main/README.md" \
org.opencontainers.image.url="https://github.com/galexrt/dellhw_exporter" \
org.opencontainers.image.source="https://github.com/galexrt/dellhw_exporter" \
org.opencontainers.image.revision="${REVISION}" \
org.opencontainers.image.vendor="galexrt" \
org.opencontainers.image.version="${DELLHW_EXPORTER_VERSION}"
# Environment variables
ENV PATH="$PATH:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin" \
SYSTEMCTL_SKIP_REDIRECT="1" \
START_DELL_SRVADMIN_SERVICES="true"
# Do overall update and install missing packages needed for OpenManage
RUN yum -y update && \
yum -y install wget perl passwd gcc which tar libstdc++.so.6 glibc.i686 make && \
curl -sS --retry 3 --fail -L -o bootstrap.cgi "https://linux.dell.com/repo/hardware/dsu/bootstrap.cgi" && \
yes | bash bootstrap.cgi && \
rm bootstrap.cgi && \
yum -y install srvadmin-base srvadmin-storageservices && \
yum clean all
EXPOSE 9137/tcp
ADD container/entrypoint.sh /bin/entrypoint
RUN chmod +x /bin/entrypoint
ADD .build/linux-amd64/dellhw_exporter /bin/dellhw_exporter
ENTRYPOINT ["/bin/entrypoint"]