Matteo Scandolo | eb0d11c | 2017-08-08 13:05:26 -0700 | [diff] [blame^] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
Srikanth Vavilapalli | 3171360 | 2017-03-03 00:50:18 +0000 | [diff] [blame] | 17 | # Dockerfile.ceilo-base: docker file for srikanthvavila/ceilometer-base |
| 18 | # This image isn't used directly, but installs the prereqs for the other ceilometer images |
| 19 | # Build this docker container before building other ceilometer containers |
| 20 | # Build command: `pushd ceilometer-base;docker build -f Dockerfile.ceilo-base -t srikanthvavila/ceilometer-base |
| 21 | # TODO: Remove srikanthvavila and use some official OpenCORD tag for all these containers |
| 22 | FROM ubuntu:14.04.5 |
| 23 | LABEL maintainer "Open Networking Lab" |
| 24 | |
| 25 | # Install. |
| 26 | RUN \ |
| 27 | sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \ |
| 28 | apt-get update && \ |
| 29 | apt-get -y upgrade && \ |
| 30 | apt-get install -y build-essential && \ |
| 31 | apt-get install -y software-properties-common && \ |
| 32 | apt-get install -y byobu curl git htop man unzip vim wget supervisor python-dev python-pip libpq-dev && \ |
| 33 | rm -rf /var/lib/apt/lists/* |
| 34 | |
| 35 | RUN pip install tox==1.6.1 |
| 36 | RUN pip install 'oslo.config<2.0.0' |
| 37 | RUN pip install 'oslo.service' |
| 38 | RUN pip install 'oslo.messaging' |
| 39 | RUN pip install 'retrying' |
| 40 | RUN pip install 'tooz' |
| 41 | RUN pip install 'jsonpath-rw-ext' |
| 42 | RUN pip install 'oslo.db' |
| 43 | RUN pip install 'oslo.reports' |
| 44 | RUN pip install 'python-keystoneclient' |
| 45 | |
| 46 | #Clone Ceilometer |
| 47 | RUN git clone -b stable/mitaka https://github.com/openstack/ceilometer.git /opt/stack/ceilometer/ |
| 48 | |
| 49 | WORKDIR /opt/stack/ceilometer |
| 50 | RUN python setup.py install |
| 51 | RUN mkdir -p /etc/ceilometer |
| 52 | RUN tox -egenconfig |
| 53 | RUN cp /opt/stack/ceilometer/etc/ceilometer/*.json /etc/ceilometer |
| 54 | RUN cp /opt/stack/ceilometer/etc/ceilometer/*.yaml /etc/ceilometer |
| 55 | RUN cp /opt/stack/ceilometer/etc/ceilometer/ceilometer.conf /etc/ceilometer/ceilometer.conf |
| 56 | |
| 57 | # Install Mongo shell utilities. |
| 58 | RUN \ |
| 59 | apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 && \ |
| 60 | 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 && \ |
| 61 | apt-get update && \ |
| 62 | apt-get install -y mongodb-org-shell |
| 63 | |
| 64 | RUN pip install 'pymongo' |