blob: 45defb872829b07b73945d69e26a83101a1e411c [file] [log] [blame]
Scott Baker31acc652016-06-23 15:47:56 -07001FROM ubuntu:14.04.2
2MAINTAINER 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
8RUN ln -s -f /bin/true /usr/bin/chfn
9# XXX End workaround
10
11# Install.
12RUN apt-get update && apt-get install -y \
13 python-pip \
14 python-dev
15
16RUN pip install web.py
17RUN pip install wsgilog
18RUN pip install python-ceilometerclient
19RUN mkdir -p /usr/local/share
20ADD ceilometer_proxy_server.py /usr/local/share/
21RUN chmod +x /usr/local/share/ceilometer_proxy_server.py
22ADD start_ceilometer_proxy /usr/local/sbin/
23RUN chmod +x /usr/local/sbin/start_ceilometer_proxy
24EXPOSE 8000
25WORKDIR /usr/local/share
26CMD /usr/local/sbin/start_ceilometer_proxy