Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F478376
Dockerfile
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jun 7, 4:45 PM
Size
1 KB
Mime Type
text/plain
Expires
Mon, Jun 9, 4:45 PM (1 d, 16 h)
Engine
blob
Format
Raw Data
Handle
226043
Attached To
rGMGRDCKR ganetimgr-docker
Dockerfile
View Options
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
Log In to Comment