blob: a8a97109ad5cd89957c169b3a04c4bc2bedd8d8b [file] [log] [blame]
Andy Baviera54e9552016-01-28 13:07:56 -05001FROM ubuntu:14.04.3
Andy Bavierbeef3fb2016-01-06 16:40:00 -05002
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 \
32##### observer dependencies
33 python-keystoneclient \
34 python-novaclient \
35 python-neutronclient \
36 python-glanceclient \
37 python-ceilometerclient
38
39RUN pip install \
40 django==1.7 \
41 django-bitfield \
42 django-crispy-forms \
43 django-encrypted-fields \
44 django-extensions \
Andy Bavier06217772016-01-10 21:35:56 -050045 django-filter==0.11.0 \
Andy Bavierbeef3fb2016-01-06 16:40:00 -050046 django-geoposition \
47 django-ipware \
48 django_rest_swagger \
49 django-suit==0.3a1 \
50 django-timezones \
51 djangorestframework==2.4.4 \
52 dnslib \
53 lxml \
54 markdown \
55 netaddr \
56 pyOpenSSL \
57 psycopg2 \
58 python-ceilometerclient \
59 python-dateutil \
60 python-keyczar \
61 pygraphviz \
62 pytz \
63 pyyaml \
64 requests
65
66RUN easy_install --upgrade httplib2
67
68RUN easy_install \
69 python_gflags \
70 google_api_python_client \
71 httplib2.ca_certs_locater
72
Andy Baviera54e9552016-01-28 13:07:56 -050073ADD http://code.jquery.com/jquery-1.9.1.min.js /usr/local/lib/python2.7/dist-packages/suit/static/suit/js/
Andy Bavierbeef3fb2016-01-06 16:40:00 -050074
75# Install XOS
76ADD xos /opt/xos
Scott Baker0e1a0562016-01-14 09:38:34 -080077RUN chmod +x /opt/xos/tools/xos-manage
78RUN /opt/xos/tools/xos-manage genkeys
Andy Bavierbeef3fb2016-01-06 16:40:00 -050079
80# install Tosca engine
81RUN chmod +x /opt/xos/tosca/run.py
82RUN bash /opt/xos/tosca/install_tosca.sh
83
84EXPOSE 8000
85
86# Set environment variables.
87ENV HOME /root
Andy Bavierbeef3fb2016-01-06 16:40:00 -050088
89# Define working directory.
90WORKDIR /opt/xos
91
92# Define default command.
Andy Baviera54e9552016-01-28 13:07:56 -050093CMD update-ca-certificates && python /opt/xos/manage.py runserver 0.0.0.0:8000 --insecure --makemigrations