Skip to content

Commit

Permalink
fix web job
Browse files Browse the repository at this point in the history
  • Loading branch information
atarkowska committed Mar 29, 2016
1 parent 70452e0 commit 356da7d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ nginx:
- jenkins
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./web/OMERO.server/lib/python/omeroweb/static:/home/omero/nginx/web/static
- ./web/static/web:/home/omero/static/web
environment:
- JENKINS_LABEL=/etc/alternatives/java_sdk
- JENKINS_MODE=exclusive
Expand Down
23 changes: 10 additions & 13 deletions home/jobs/OMERO-web/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,15 @@
OMERO_DIST=$HOME/OMERO.server
if [ -e $OMERO_DIST ]; then
if [ -e $HOME/omero-virtualenv ]; then
source $HOME/omero-virtualenv/bin/activate
eval $(bash /opt/multi-config.sh ice3.5)
#eval $(bash /opt/multi-config.sh ice3.5)
sudo systemctl stop omero-web.service
sleep 5
$OMERO_DIST/bin/omero web status
deactivate
fi
rm -rf $OMERO_DIST
else
virtualenv $HOME/omero-virtualenv --system-site-packages
sudo systemctl stop omero-web.service
virtualenv $HOME/omero-virtualenv --system-site-packages
fi
</command>
</hudson.tasks.Shell>
Expand Down Expand Up @@ -73,20 +72,18 @@ source $HOME/omero-virtualenv/bin/activate

source $OMERO_INSTALL/settings.env


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


#start-config
$OMERO_DIST/bin/omero config set omero.web.application_server &apos;wsgi-tcp&apos;
$OMERO_DIST/bin/omero config set omero.web.application_server.max_requests 0

$OMERO_DIST/bin/omero config set omero.web.prefix &apos;/web&apos;
$OMERO_DIST/bin/omero config set omero.web.static_url &apos;/web/static/&apos;
$OMERO_DIST/bin/omero config set omero.web.static_root &apos;/home/omero/nginx/web&apos;
$OMERO_DIST/bin/omero config set omero.web.static_root &apos;/home/omero/static/web&apos;

$OMERO_DIST/bin/omero config set omero.web.session_engine &apos;django.contrib.sessions.backends.cache&apos;
$OMERO_DIST/bin/omero config set omero.web.caches &apos;{&quot;default&quot;: {&quot;BACKEND&quot;: &quot;redis_cache.RedisCache&quot;,&quot;LOCATION&quot;: &quot;192.168.99.100:6379&quot;}}&apos;
#$OMERO_DIST/bin/omero config set omero.web.session_engine &apos;django.contrib.sessions.backends.cache&apos;
#$OMERO_DIST/bin/omero config set omero.web.caches &apos;{&quot;default&quot;: {&quot;BACKEND&quot;: &quot;redis_cache.RedisCache&quot;,&quot;LOCATION&quot;: &quot;192.168.99.100:6379&quot;}}&apos;

$OMERO_DIST/bin/omero config set omero.web.application_server.host 192.168.99.100
$OMERO_DIST/bin/omero config set omero.web.application_server.port 4080
Expand All @@ -100,12 +97,12 @@ cat $HOME/nginx/omero-web.conf
$OMERO_DIST/bin/omero config set omero.web.application_server.host 0.0.0.0
$OMERO_DIST/bin/omero config set omero.web.application_server.port 4080

eval $(bash /opt/multi-config.sh ice3.5)
sudo systemctl start omero-web.service

$OMERO_DIST/bin/omero admin diagnostics
#eval $(bash /opt/multi-config.sh ice3.5)

deactivate

sudo systemctl start omero-web.service

</command>
</hudson.tasks.Shell>
</builders>
Expand Down

0 comments on commit 356da7d

Please sign in to comment.