blob: 25270a6cbb5adde8c8c73d055bca7ea8f06115ab [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 Baviera54e9552016-01-28 13:07:56 -050068ADD http://code.jquery.com/jquery-1.9.1.min.js /usr/local/lib/python2.7/dist-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/ && \
Scott Baker0e1a0562016-01-14 09:38:34 -080073 chmod +x /opt/xos/tools/xos-manage && \
74 /opt/xos/tools/xos-manage genkeys
David K. Bainbridgefe8bfcd2015-12-03 22:12:06 -080075
76# install Tosca engine
77RUN bash /opt/xos/tosca/install_tosca.sh
78
79EXPOSE 8000
80
81# Set environment variables.
82ENV HOME /root
David K. Bainbridgefe8bfcd2015-12-03 22:12:06 -080083
84# Define working directory.
85WORKDIR /root
86
87# Define default command.
Andy Baviera54e9552016-01-28 13:07:56 -050088CMD update-ca-certificates && python /opt/xos/manage.py runserver 0.0.0.0:8000 --insecure --makemigrations