Files
openstack-helm-images/prometheus-openstack-exporter/Dockerfile.ubuntu_bionic
Bharat Khare fefb878740 Python 2.7 to 3.x for openstack-exporter
Make required changes in openstack helm image of
Prometheus-openstack-exporter to move from python 2.7 to 3.x

Change-Id: I27de3d7f6b6877430751d33b940de3ead7906dc6
Co-Authored By: Steven Fitzpatrick <steven.fitzpatrick@att.com>
2019-10-16 20:33:16 +00:00

18 lines
558 B
Docker

ARG FROM=docker.io/ubuntu:bionic
FROM ${FROM}
RUN apt-get -y update \
&& apt-get install --no-install-recommends -y python3 python3-pip curl python3-setuptools \
&& python3 -m pip install --upgrade pip \
&& python3 -m pip install python-dateutil requests simplejson pyyaml prometheus-client \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /usr/local/bin/exporter
COPY exporter /usr/local/bin/exporter
RUN chmod +x /usr/local/bin/exporter/main.py
EXPOSE 9103
CMD ["/usr/local/bin/exporter/main.py"]