Page MenuHomeGRNET

Dockerfile
No OneTemporary

File Metadata

Created
Sat, Jun 7, 4:45 PM

Dockerfile

FROM debian:wheezy
RUN apt-get update -q
RUN DEBIAN_FRONTEND=noninteractive apt-get install --quiet --yes git procps apt-utils
RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --quiet --yes python-django python-redis python-mysqldb python-django-south python-django-registration python-paramiko python-simplejson python-daemon python-setproctitle python-pycurl python-recaptcha python-ipaddr python-bs4 python-requests python-markdown
RUN DEBIAN_FRONTEND=noninteractive apt-get install --quiet --yes gunicorn python-gevent beanstalkd nginx redis-server
ADD python-django-markdown_0.6.1-1_all.deb /
RUN dpkg -i /python-django-markdown_0.6.1-1_all.deb
WORKDIR /srv
RUN git clone --quiet https://github.com/grnet/ganetimgr.git
COPY settings.py ganetimgr/ganetimgr/settings.py
COPY dj_database_url.py ganetimgr/dj_database_url.py
COPY ganetimgr.nginx.conf /etc/nginx/nginx.conf
COPY ganetimgr.gunicorn.conf /etc/gunicorn/ganetimgr.conf
COPY beanstalkd.conf /etc/default/beanstalkd
#COPY run.sh /
#RUN cp ganetimgr/ganetimgr/settings.py.dist ganetimgr/ganetimgr/settings.py
RUN cp ganetimgr/templates/includes/analytics.html.dist ganetimgr/templates/includes/analytics.html
RUN ./ganetimgr/manage.py syncdb --noinput
#RUN echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', DJANGO_ADMIN_PASS)" | python manage.py shell
RUN ./ganetimgr/manage.py migrate
RUN ./ganetimgr/manage.py collectstatic --noinput
EXPOSE 80
EXPOSE 8000
#ENTRYPOINT bash /run.sh
ENTRYPOINT nginx && ./ganetimgr/manage.py runserver 0.0.0.0:8080

Event Timeline