File: Dockerfile

package info (click to toggle)
prometheus-openstack-exporter 0.1.4-2.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 268 kB
  • sloc: python: 766; sh: 77; makefile: 32
file content (19 lines) | stat: -rw-r--r-- 790 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:2.7-alpine

RUN \
    apk update && \
    apk --no-cache -q add build-base linux-headers libffi-dev openssl-dev python2-dev && \
    apk --no-cache -q add git gcc make autoconf automake libtool libxml2-dev libxslt-dev && \
    cd /tmp && git clone https://github.com/openstack/liberasurecode && \
    cd liberasurecode && ./autogen.sh && ./configure && make && make test && make install && \
    cd / && rm -rf /tmp/liberasurecode && \
    pip install -U pip && \
    pip install python-neutronclient python-novaclient python-keystoneclient python-cinderclient \
    prometheus-client requests pyyaml netaddr swift flake8

COPY prometheus-openstack-exporter /
COPY prometheus-openstack-exporter.sample.yaml /
COPY wrapper.sh /

EXPOSE 9183
ENTRYPOINT ["/bin/sh", "/wrapper.sh"]