blob: 27d7a6b998473b108aea7dd9fbb2bf3e4ba2640e [file] [log] [blame]
Matteo Scandoloeb0d11c2017-08-08 13:05:26 -07001
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 Vavilapalli31713602017-03-03 00:50:18 +000017# 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
22FROM ubuntu:14.04.5
23LABEL maintainer "Open Networking Lab"
24
25# Install.
26RUN \
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
35RUN pip install tox==1.6.1
36RUN pip install 'oslo.config<2.0.0'
37RUN pip install 'oslo.service'
38RUN pip install 'oslo.messaging'
39RUN pip install 'retrying'
40RUN pip install 'tooz'
41RUN pip install 'jsonpath-rw-ext'
42RUN pip install 'oslo.db'
43RUN pip install 'oslo.reports'
44RUN pip install 'python-keystoneclient'
45
46#Clone Ceilometer
47RUN git clone -b stable/mitaka https://github.com/openstack/ceilometer.git /opt/stack/ceilometer/
48
49WORKDIR /opt/stack/ceilometer
50RUN python setup.py install
51RUN mkdir -p /etc/ceilometer
52RUN tox -egenconfig
53RUN cp /opt/stack/ceilometer/etc/ceilometer/*.json /etc/ceilometer
54RUN cp /opt/stack/ceilometer/etc/ceilometer/*.yaml /etc/ceilometer
55RUN cp /opt/stack/ceilometer/etc/ceilometer/ceilometer.conf /etc/ceilometer/ceilometer.conf
56
57# Install Mongo shell utilities.
58RUN \
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
64RUN pip install 'pymongo'