blob: 4bb201ec26a312ebe8e67bc13a6d5d37470d517a [file] [log] [blame]
David K. Bainbridgefe8bfcd2015-12-03 22:12:06 -08001FROM ubuntu:14.04.3
2
3# XXX Workaround for docker bug:
4# https://github.com/docker/docker/issues/6345
5# Kernel 3.15 breaks docker, uss the line below as a workaround
6# until there is a fix
7RUN ln -s -f /bin/true /usr/bin/chfn
8# XXX End workaround
9
10# Install.
11RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
12 curl \
13 gcc \
14 geoip-database \
15 git \
16 graphviz \
17 graphviz-dev \
18 libgeoip1 \
19 libxslt1.1 \
20 libxslt1-dev \
21 libyaml-dev \
22 m4 \
23 pkg-config \
24 python-dev \
25 python-httplib2 \
26 python-pip \
27 python-psycopg2 \
28 python-pycurl \
29 python-setuptools \
30 tar \
31 wget \
Andy Bavier4d096312016-01-04 10:06:29 -050032##### observer dependencies
David K. Bainbridgefe8bfcd2015-12-03 22:12:06 -080033 python-keystoneclient \
34 python-novaclient \
35 python-neutronclient \
36 python-glanceclient \
37 python-ceilometerclient
38
39RUN pip install -U \
40 django==1.7 \
41 django-bitfield \
42 django-crispy-forms \
43 django-encrypted-fields \
44 django_evolution \
45 django-extensions \
Andy Bavier92e548d2016-01-08 10:42:00 -050046 django-filter==0.11.0 \
David K. Bainbridgefe8bfcd2015-12-03 22:12:06 -080047 django-geoposition \
48 django-ipware \
49 django_rest_swagger \
David K. Bainbridgef25c0392015-12-09 09:55:59 -080050 django-suit==0.3a1 \
David K. Bainbridgefe8bfcd2015-12-03 22:12:06 -080051 django-timezones \
52 djangorestframework==2.4.4 \
53 dnslib \
54 google_api_python_client \
55 httplib2 \
56 httplib2.ca_certs_locater \
Andy Bavier4d096312016-01-04 10:06:29 -050057 lxml \
David K. Bainbridgefe8bfcd2015-12-03 22:12:06 -080058 markdown \
59 netaddr \
60 python-dateutil \
61 python_gflags \
62 python-keyczar \
63 pygraphviz \
64 pytz \
65 pyyaml \
66 requests
67
Andy Bavier4d096312016-01-04 10:06:29 -050068ADD http://code.jquery.com/jquery-1.9.1.min.js /usr/local/lib/python2.7/site-packages/suit/static/suit/js/
David K. Bainbridgefe8bfcd2015-12-03 22:12:06 -080069
70# Install XOS
71RUN git clone XOS_GIT_REPO -b XOS_GIT_BRANCH /tmp/xos && \
72 mv /tmp/xos/xos /opt/ && \
73 chmod +x /opt/xos/scripts/opencloud && \
74 /opt/xos/scripts/opencloud genkeys
75
76# install Tosca engine
77RUN bash /opt/xos/tosca/install_tosca.sh
78
79EXPOSE 8000
80
81# Set environment variables.
82ENV HOME /root
Andy Bavier418c9892016-01-05 09:51:29 -050083ENV PYTHONPATH /usr/local/lib/python2.7/site-packages:/usr/lib/python2.7/dist-packages
David K. Bainbridgefe8bfcd2015-12-03 22:12:06 -080084
85# Define working directory.
86WORKDIR /root
87
88# Define default command.
89CMD python /opt/xos/manage.py runserver 0.0.0.0:8000 --insecure