anchor.diff:      django_rest_swagger \
       python-keyczar \
       pygraphviz \
  -    dnslib
  +    dnslib \
  +    uwsgi
   
   RUN easy_install --upgrade httplib2
   
  
positive.code: # Cruft to workaround problems with migrations, should go away...
  RUN /opt/xos/scripts/opencloud remigrate
  
  # git clone uses cached copy, doesn't pick up latest
  RUN git -C /opt/ansible pull
  RUN git -C /opt/ansible/lib/ansible/modules/core pull
  RUN git -C /opt/ansible/v2/ansible/modules/core pull
  
  # install Tosca engine
  RUN apt-get install -y m4
  RUN pip install python-dateutil
  RUN bash /opt/xos/tosca/install_tosca.sh
  
  EXPOSE 8000
  
  # Set environment variables.
  ENV HOME /root
  
  # Define working directory.
  WORKDIR /root
  
  # Define default command.
  #CMD ["/bin/bash"]
  CMD /opt/xos/scripts/docker_start_xos
  
negative.code: RUN ln -s /usr/local/share/phantomjs-1.7.0-linux-x86_64 /usr/local/share/phantomjs
  RUN ln -s /usr/local/share/phantomjs/bin/phantomjs /bin/phantomjs
  
  # Get XOS
  RUN git clone git://github.com/open-cloud/xos.git /tmp/xos && mv /tmp/xos/xos /opt/
  
  RUN chmod +x /opt/xos/scripts/opencloud
  
  RUN /opt/xos/scripts/opencloud genkeys
  
  # Workaround for AUFS issue
  