mirror of
https://github.com/optim-enterprises-bv/openstack-helm-images.git
synced 2026-01-09 17:01:39 +00:00
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>
18 lines
558 B
Docker
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"]
|