forked from sapcc/redfish-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (24 loc) · 1.08 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
#FROM keppel.eu-de-1.cloud.sap/ccloud-dockerhub-mirror/library/ubuntu:latest
FROM ubuntu:latest
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt update \
&& apt upgrade -y \
&& apt install -y python3.11 \
&& apt install -y python3-pip \
&& apt install -y curl
ARG FOLDERNAME=redfish_exporter
RUN mkdir /${FOLDERNAME}
RUN mkdir /${FOLDERNAME}/collectors
WORKDIR /${FOLDERNAME}
RUN pip3 install --upgrade pip
COPY requirements.txt /${FOLDERNAME}
RUN pip3 install --no-cache-dir -r requirements.txt
COPY *.py /${FOLDERNAME}/
COPY collectors/ /${FOLDERNAME}/collectors/
COPY config.yml /${FOLDERNAME}/
#RUN curl -ks 'https://aia.pki.co.sap.com/aia/SAPNetCA_G2.crt' -o '/usr/lib/ssl/certs/SAPNetCA_G2.crt'
#RUN curl -ks 'https://cacerts.digicert.com/DigiCertGlobalRootG2.crt.pem' -o '/usr/lib/ssl/certs/DigiCertGlobalRootCA.crt'
#RUN /usr/sbin/update-ca-certificates
#LABEL source_repository="https://github.com/sapcc/redfish-exporter"
#LABEL maintainer="Bernd Kuespert <[email protected]>"
CMD ["python3", "/redfish_exporter/main.py", "-d"]