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 | |
Scott Baker | 31acc65 | 2016-06-23 15:47:56 -0700 | [diff] [blame] | 17 | FROM ubuntu:14.04.2 |
| 18 | MAINTAINER Andy Bavier <acb@cs.princeton.edu> |
| 19 | |
| 20 | # XXX Workaround for docker bug: |
| 21 | # https://github.com/docker/docker/issues/6345 |
| 22 | # Kernel 3.15 breaks docker, uss the line below as a workaround |
| 23 | # until there is a fix |
| 24 | RUN ln -s -f /bin/true /usr/bin/chfn |
| 25 | # XXX End workaround |
| 26 | |
| 27 | # Install. |
| 28 | RUN apt-get update && apt-get install -y \ |
| 29 | python-pip \ |
| 30 | python-dev |
| 31 | |
| 32 | RUN pip install web.py |
| 33 | RUN pip install wsgilog |
| 34 | RUN pip install python-ceilometerclient |
| 35 | RUN mkdir -p /usr/local/share |
| 36 | ADD ceilometer_proxy_server.py /usr/local/share/ |
| 37 | RUN chmod +x /usr/local/share/ceilometer_proxy_server.py |
| 38 | ADD start_ceilometer_proxy /usr/local/sbin/ |
| 39 | RUN chmod +x /usr/local/sbin/start_ceilometer_proxy |
| 40 | EXPOSE 8000 |
| 41 | WORKDIR /usr/local/share |
| 42 | CMD /usr/local/sbin/start_ceilometer_proxy |