blob: cfcf9ac4c63f6d0a4a8e308a66ec40f81c6662a9 [file] [log] [blame]
David K. Bainbridge278dd752015-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 Bavierf74a26f2016-01-04 10:06:29 -050032##### observer dependencies
David K. Bainbridge278dd752015-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 Bavierc3218b62016-01-08 10:42:00 -050046 django-filter==0.11.0 \
David K. Bainbridge278dd752015-12-03 22:12:06 -080047 django-geoposition \
48 django-ipware \
49 django_rest_swagger \
David K. Bainbridgecbf7c012015-12-09 09:55:59 -080050 django-suit==0.3a1 \
David K. Bainbridge278dd752015-12-03 22:12:06 -080051 django-timezones \
Scott Baker8d0256f2016-03-29 13:37:48 -070052 djangorestframework==3.3.3 \
David K. Bainbridge278dd752015-12-03 22:12:06 -080053 dnslib \
54 google_api_python_client \
55 httplib2 \
56 httplib2.ca_certs_locater \
Andy Bavierf74a26f2016-01-04 10:06:29 -050057 lxml \
David K. Bainbridge278dd752015-12-03 22:12:06 -080058 markdown \
59 netaddr \
60 python-dateutil \
61 python_gflags \
62 python-keyczar \
Andy Bavierb923b602016-04-06 14:23:02 -040063 python-logstash \
David K. Bainbridge278dd752015-12-03 22:12:06 -080064 pygraphviz \
65 pytz \
66 pyyaml \
67 requests
68
Andy Bavier0e4755c2016-01-28 13:07:56 -050069ADD http://code.jquery.com/jquery-1.9.1.min.js /usr/local/lib/python2.7/dist-packages/suit/static/suit/js/
David K. Bainbridge278dd752015-12-03 22:12:06 -080070
71# Install XOS
72RUN git clone XOS_GIT_REPO -b XOS_GIT_BRANCH /tmp/xos && \
73 mv /tmp/xos/xos /opt/ && \
Scott Bakerdc90a242016-01-14 09:38:34 -080074 chmod +x /opt/xos/tools/xos-manage && \
75 /opt/xos/tools/xos-manage genkeys
David K. Bainbridge278dd752015-12-03 22:12:06 -080076
77# install Tosca engine
78RUN bash /opt/xos/tosca/install_tosca.sh
79
80EXPOSE 8000
81
82# Set environment variables.
83ENV HOME /root
David K. Bainbridge278dd752015-12-03 22:12:06 -080084
85# Define working directory.
86WORKDIR /root
87
88# Define default command.
Andy Bavier0e4755c2016-01-28 13:07:56 -050089CMD update-ca-certificates && python /opt/xos/manage.py runserver 0.0.0.0:8000 --insecure --makemigrations