Skip to content

Commit

Permalink
use redis
Browse files Browse the repository at this point in the history
  • Loading branch information
atarkowska committed Mar 29, 2016
1 parent bcc5724 commit 53be45d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions home/jobs/OMERO-web/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ REDIS_IP=$(getent hosts 'redis' | awk '{print $1}')

pip install --upgrade --no-deps --force-reinstall -r $OMERO_DIST/share/web/requirements-py27-nginx.txt

pip install django-redis-cache>=1.6.5

#start-config
$OMERO_DIST/bin/omero config set omero.web.application_server 'wsgi-tcp'
$OMERO_DIST/bin/omero config set omero.web.application_server.max_requests 0
Expand All @@ -85,8 +87,8 @@ $OMERO_DIST/bin/omero config set omero.web.prefix '/web'
$OMERO_DIST/bin/omero config set omero.web.static_url '/web/static/'
$OMERO_DIST/bin/omero config set omero.web.static_root '/home/omero/static/web'

#$OMERO_DIST/bin/omero config set omero.web.session_engine 'django.contrib.sessions.backends.cache'
#$OMERO_DIST/bin/omero config set omero.web.caches '{"default": {"BACKEND": "redis_cache.RedisCache","LOCATION": "$REDIS_IP:6379"}}'
$OMERO_DIST/bin/omero config set omero.web.session_engine 'django.contrib.sessions.backends.cache'
$OMERO_DIST/bin/omero config set omero.web.caches '{"default": {"BACKEND": "redis_cache.RedisCache","LOCATION": "$REDIS_IP:6379"}}'

$OMERO_DIST/bin/omero config set omero.web.application_server.host SPACENAME-ci.docker.openmicroscopy.org
$OMERO_DIST/bin/omero config set omero.web.application_server.port 4080
Expand Down
1 change: 1 addition & 0 deletions web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ RUN sed -i.bak -re 's/(systemctl daemon-reload)/#\1/' $OMERO_INSTALL/step06_cent
WORKDIR /tmp/omero-install/linux

RUN JAVAVER=$JAVAVER PGVER=nopg bash install_centos7_nginx.sh
RUN yum install -y redis python-redis && yum clean all

RUN yum install -y http://download-aws.ej-technologies.com/exe4j/exe4j_linux_5_0_1.rpm

Expand Down

0 comments on commit 53be45d

Please sign in to comment.