Created
October 20, 2013 20:18
-
-
Save grigio/7074773 to your computer and use it in GitHub Desktop.
custom shipyard Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:12.04 | |
MAINTAINER Luigi Maselli "test@test.com" | |
RUN sed 's/main$/main universe/' -i /etc/apt/sources.list | |
RUN apt-get install -y python-software-properties | |
RUN add-apt-repository ppa:chris-lea/node.js | |
RUN apt-get -qq update | |
RUN apt-get install -y nodejs python-dev python-setuptools libxml2-dev libxslt-dev libmysqlclient-dev supervisor redis-server git-core wget make g++ | |
RUN npm install git+http://github.com/ehazlett/hipache.git -g | |
ADD .docker/hipache.config.json /etc/hipache.config.json | |
RUN easy_install pip | |
RUN pip install virtualenv | |
RUN pip install uwsgi | |
RUN virtualenv --no-site-packages /opt/ve/shipyard | |
ADD . /opt/apps/shipyard | |
ADD .docker/known_hosts /root/.ssh/known_hosts | |
RUN (find /opt/apps/shipyard -name "*.db" -delete) | |
RUN (cd /opt/apps/shipyard && git remote rm origin) | |
RUN (cd /opt/apps/shipyard && git remote add origin https://github.com/ehazlett/shipyard.git) | |
RUN /opt/ve/shipyard/bin/pip install -r /opt/apps/shipyard/requirements.txt | |
RUN (cd /opt/apps/shipyard && /opt/ve/shipyard/bin/python manage.py syncdb --noinput) | |
RUN (cd /opt/apps/shipyard && /opt/ve/shipyard/bin/python manage.py migrate) | |
RUN (cd /opt/apps/shipyard && /opt/ve/shipyard/bin/python manage.py update_admin_user --username=admin --password=shipyard) | |
EXPOSE 80 | |
EXPOSE 6379 | |
EXPOSE 8000 | |
CMD ["/bin/sh", "-e", "/opt/apps/shipyard/.docker/run.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment