blob: e19b40cf5cdd9117813e6b25e493e602e8999b83 [file] [log] [blame]
A R Karthicke3bde962016-09-27 15:06:35 -07001FROM xosproject/xos-base
2
3# Include certificates from Openstack
4ADD local_certs.crt /usr/local/share/ca-certificates/local_certs.crt
5RUN update-ca-certificates
6
7# Install and boostrap XOS and Tosca
8ENV XOS_GIT_REPO https://github.com/opencord/xos.git
9ENV XOS_GIT_BRANCH master
10
11RUN git clone $XOS_GIT_REPO -b $XOS_GIT_BRANCH /tmp/xos && \
12 mv /tmp/xos/xos /opt/ && \
13 chmod +x /opt/xos/tools/xos-manage && \
14 /opt/xos/tools/xos-manage genkeys
15
16# ng-xos-lib download
17
18ENV NG_XOS_LIB_URL https://github.com/opencord/ng-xos-lib.git
19ENV NG_XOS_LIB_VERSION 1.0.0
20
21RUN git clone $NG_XOS_LIB_URL /tmp/ng-xos-lib
22RUN cd /tmp/ng-xos-lib && git checkout tags/$NG_XOS_LIB_VERSION
23RUN cp /tmp/ng-xos-lib/dist/ngXosHelpers.min.js /opt/xos/core/xoslib/static/vendor/
24RUN cp /tmp/ng-xos-lib/dist/ngXosVendor.min.js /opt/xos/core/xoslib/static/vendor/
25
26EXPOSE 8000
27
28# Set environment variables
29ENV HOME /root
30
31# Define working directory
32WORKDIR /opt/xos
33
34# Define default command
35CMD python /opt/xos/manage.py runserver 0.0.0.0:8000 --insecure --makemigrations
36