-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsvtconnect.k8s.Dockerfile
30 lines (29 loc) · 1.23 KB
/
svtconnect.k8s.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
# docker build -t tb1378\svtconnect:k8s -f svtconnect.k8s.Dockerfile .
# docker run -i -p 9091:9091 --name svtconnect svtconnect
# User Ubuntu as the base Image
FROM ubuntu
#
LABEL maintainer="Thomas Beha"
LABEL version="4.2"
LABEL copyright="Thomas Beha, 2025"
LABEL license="GNU General Public License v3"
LABEL DESCRIPTION="SimpliVity Connector POD based on Ubuntu"
#
RUN apt-get update
RUN apt-get -y install python3.8 && \
apt-get -y install python3-pip && \
apt-get -y install vim && \
apt-get -y install cron
RUN /usr/bin/pip3 install requests && \
/usr/bin/pip3 install fernet && \
/usr/bin/pip3 install cryptography && \
/usr/bin/pip3 install lxml && \
/usr/bin/pip3 install prometheus_client
# copy the necessary python files to the container
RUN mkdir /opt/svt
COPY SimpliVityClass.py /opt/svt
COPY svtPromConnector.v4.2.py /opt/svt/svtpromconnector.py
#COPY SvtConnector.key /opt/svt/data/svtconnector.key # will be transferred to the container as K8s configmap
#COPY SvtConnector.xml /opt/svt/data/svtconnector.xml # will be transferred to the container as K8s configmap
# Start the collector
#CMD /usr/bin/python3.8 /opt/svt/svtpromconnector.py # this is the command that needs to be started in the POD