blob: 25270a6cbb5adde8c8c73d055bca7ea8f06115ab [file] [log] [blame]
Pingping Linb7a7d2b2016-08-19 18:11:36 +00001FROM 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 \
32##### observer dependencies
33 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 \
46 django-filter==0.11.0 \
47 django-geoposition \
48 django-ipware \
49 django_rest_swagger \
50 django-suit==0.3a1 \
51 django-timezones \
52 djangorestframework==2.4.4 \
53 dnslib \
54 google_api_python_client \
55 httplib2 \
56 httplib2.ca_certs_locater \
57 lxml \
58 markdown \
59 netaddr \
60 python-dateutil \
61 python_gflags \
62 python-keyczar \
63 pygraphviz \
64 pytz \
65 pyyaml \
66 requests
67
68ADD http://code.jquery.com/jquery-1.9.1.min.js /usr/local/lib/python2.7/dist-packages/suit/static/suit/js/
69
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/tools/xos-manage && \
74 /opt/xos/tools/xos-manage 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
83
84# Define working directory.
85WORKDIR /root
86
87# Define default command.
88CMD update-ca-certificates && python /opt/xos/manage.py runserver 0.0.0.0:8000 --insecure --makemigrations