blob: f70e7c90860112f9130d92e2267045b8a1703a8c [file] [log] [blame]
Srikanth Vavilapalli31713602017-03-03 00:50:18 +00001# Dockerfile.ceilo-base: docker file for srikanthvavila/ceilometer-base
2# This image isn't used directly, but installs the prereqs for the other ceilometer images
3# Build this docker container before building other ceilometer containers
4# Build command: `pushd ceilometer-base;docker build -f Dockerfile.ceilo-base -t srikanthvavila/ceilometer-base
5# TODO: Remove srikanthvavila and use some official OpenCORD tag for all these containers
6FROM ubuntu:14.04.5
7LABEL maintainer "Open Networking Lab"
8
9# Install.
10RUN \
11 sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
12 apt-get update && \
13 apt-get -y upgrade && \
14 apt-get install -y build-essential && \
15 apt-get install -y software-properties-common && \
16 apt-get install -y byobu curl git htop man unzip vim wget supervisor python-dev python-pip libpq-dev && \
17 rm -rf /var/lib/apt/lists/*
18
19RUN pip install tox==1.6.1
20RUN pip install 'oslo.config<2.0.0'
21RUN pip install 'oslo.service'
22RUN pip install 'oslo.messaging'
23RUN pip install 'retrying'
24RUN pip install 'tooz'
25RUN pip install 'jsonpath-rw-ext'
26RUN pip install 'oslo.db'
27RUN pip install 'oslo.reports'
28RUN pip install 'python-keystoneclient'
29
30#Clone Ceilometer
31RUN git clone -b stable/mitaka https://github.com/openstack/ceilometer.git /opt/stack/ceilometer/
32
33WORKDIR /opt/stack/ceilometer
34RUN python setup.py install
35RUN mkdir -p /etc/ceilometer
36RUN tox -egenconfig
37RUN cp /opt/stack/ceilometer/etc/ceilometer/*.json /etc/ceilometer
38RUN cp /opt/stack/ceilometer/etc/ceilometer/*.yaml /etc/ceilometer
39RUN cp /opt/stack/ceilometer/etc/ceilometer/ceilometer.conf /etc/ceilometer/ceilometer.conf
40
41# Install Mongo shell utilities.
42RUN \
43 apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 && \
44 echo "deb [ arch=amd64 ] http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list && \
45 apt-get update && \
46 apt-get install -y mongodb-org-shell
47
48RUN pip install 'pymongo'