-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
44 lines (36 loc) · 1.03 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
42
FROM ubuntu:20.04
LABEL maintainer="[email protected]"
ARG DEV_CONTAINER="false"
##################
# stuff needed for Visual Code Dev Container ...
RUN if [ "$DEV_CONTAINER" = "true" ]; then \
apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
iproute2 \
tcpdump \
python3-pip \
procps \
net-tools \
pylint \
flake8 \
python3-autopep8 \
yapf3 \
black \
mypy \
pydocstyle \
python3-bandit \
pipenv \
virtualenv \
; fi \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
python3-openstacksdk \
python3-prometheus-client \
python3-schedule \
curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /opt/openstack-exporter
COPY openstack-exporter /opt/openstack-exporter
RUN chmod +x /opt/openstack-exporter/openstack-exporter.py
EXPOSE 9103
CMD ["/opt/openstack-exporter/openstack-exporter.py"]