Scott Baker | 31acc65 | 2016-06-23 15:47:56 -0700 | [diff] [blame^] | 1 | FROM ubuntu:14.04.2 |
| 2 | MAINTAINER Andy Bavier <acb@cs.princeton.edu> |
| 3 | |
| 4 | # XXX Workaround for docker bug: |
| 5 | # https://github.com/docker/docker/issues/6345 |
| 6 | # Kernel 3.15 breaks docker, uss the line below as a workaround |
| 7 | # until there is a fix |
| 8 | RUN ln -s -f /bin/true /usr/bin/chfn |
| 9 | # XXX End workaround |
| 10 | |
| 11 | # Install. |
| 12 | RUN apt-get update && apt-get install -y \ |
| 13 | python-pip \ |
| 14 | python-dev |
| 15 | |
| 16 | RUN pip install web.py |
| 17 | RUN pip install wsgilog |
| 18 | RUN pip install python-ceilometerclient |
| 19 | RUN mkdir -p /usr/local/share |
| 20 | ADD ceilometer_proxy_server.py /usr/local/share/ |
| 21 | RUN chmod +x /usr/local/share/ceilometer_proxy_server.py |
| 22 | ADD start_ceilometer_proxy /usr/local/sbin/ |
| 23 | RUN chmod +x /usr/local/sbin/start_ceilometer_proxy |
| 24 | EXPOSE 8000 |
| 25 | WORKDIR /usr/local/share |
| 26 | CMD /usr/local/sbin/start_ceilometer_proxy |