openstack-helm-images/prometheus-openstack-exporter/Dockerfile.ubuntu_bionic
Pai Radhika 976c1341b0 Update Openstack-exporter docker file
Updated the docker build to pull prometheus-client 0.0.13 which has registry
that works with this exporter. The registry in prometheus-client 0.7.1 version onwards
is dropping the stat with same name.

Change-Id: I2de95d92db01c846a60bb63c912af0a09b6b4987
2020-06-18 18:37:52 +00:00

18 lines
566 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==0.0.13 \
&& 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"]