Commit a81ae413 authored by Luca Cinquini's avatar Luca Cinquini
Browse files

Adding cog static directory to image.

parent 0645f388
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -61,6 +61,15 @@ RUN cd $COG_DIR && \
    make  && \
    cp mkproxy $COG_DIR/venv/lib/python2.7/site-packages/globusonline/transfer/api_client/x509_proxy/.

# collect static files to ./static directory
# must use a minimal settings file (configured with sqllite3 database)
COPY conf/cog_settings.cfg /usr/local/cog/cog_config/cog_settings.cfg
RUN cd $COG_INSTALL_DIR && \
    source $COG_DIR/venv/bin/activate && \
    #python setup.py -q setup_cog --esgf=false
    python manage.py collectstatic --no-input && \
    rm /usr/local/cog/cog_config/cog_settings.cfg

# for some unknown reason, must reinstall captcha
#RUN source $COG_DIR/venv/bin/activate && \
#    pip uninstall -y django-simple-captcha && \
+13 −0
Original line number Diff line number Diff line
[DEFAULT]
SITE_NAME = localhost
SITE_DOMAIN = localhost
TIME_ZONE = America/Denver
SECRET_KEY = ro4y4i4BJxFYh4koADC9olMAnWRKEybpMeyvUcFt7eJZ2K1101zPxfEu960yjLUm0FAkLIkgh91eYwkCS40gQguKR9A1hBGnbhLiT7Tzc0a41wOi72Zm92bjAcwLFVuM
DJANGO_DATABASE = sqllite3
DATABASE_PATH = /usr/local/cog/cog_config/django.data
MEDIA_ROOT = /usr/local/cog/cog_config/site_media
DEBUG = False
ALLOWED_HOSTS = localhost
# FIXME: remove after next release
KNOWN_PROVIDERS = /esg/config/esgf_known_providers.xml
PRODUCTION_SERVER = False