| # XXX Workaround for docker bug: |
| # https://github.com/docker/docker/issues/6345 |
| # Kernel 3.15 breaks docker, uss the line below as a workaround |
| RUN ln -s -f /bin/true /usr/bin/chfn |
| RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \ |
| ##### observer dependencies |
| django-encrypted-fields \ |
| djangorestframework==2.4.4 \ |
| python-ceilometerclient \ |
| RUN easy_install --upgrade httplib2 |
| google_api_python_client \ |
| httplib2.ca_certs_locater |
| ADD http://code.jquery.com/jquery-1.9.1.min.js /usr/local/lib/python2.7/dist-packages/suit/static/suit/js/ |
| RUN chmod +x /opt/xos/tools/xos-manage |
| RUN /opt/xos/tools/xos-manage genkeys |
| RUN chmod +x /opt/xos/tosca/run.py |
| RUN bash /opt/xos/tosca/install_tosca.sh |
| # Set environment variables. |
| # Define working directory. |
| # RUN python /opt/xos/manage.py makemigrations mcordservice |
| # Define default command. |
| CMD update-ca-certificates && python /opt/xos/manage.py runserver 0.0.0.0:8000 --insecure --makemigrations |