Skip to content

Commit

Permalink
Always recreate venv, preferring py3
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Nov 27, 2019
1 parent 8901081 commit 707a8bc
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 19 deletions.
9 changes: 5 additions & 4 deletions autogen_omero.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ test -e $WORKSPACE/OMERO.server
test -e $WORKSPACE/omero-install
test -e $WORKSPACE/omeroweb-install

if [ ! -e $WORKSPACE/venv ]; then
virtualenv $WORKSPACE/venv
$WORKSPACE/venv/bin/pip install -r $WORKSPACE/OMERO.server/share/web/requirements-py27.txt
$WORKSPACE/venv/bin/pip install future
if [ -e $WORKSPACE/venv ]; then
rm -rf $WORKSPACE/venv
fi
python3 -m venv $WORKSPACE/venv || virtualenv --system-site-packages $WORKSPACE/venv
$WORKSPACE/venv/bin/pip install -r $WORKSPACE/OMERO.server/share/web/requirements-py27.txt
$WORKSPACE/venv/bin/pip install future
set +u # PS1 issue
. $WORKSPACE/venv/bin/activate
set -u
Expand Down
6 changes: 3 additions & 3 deletions omero/conf_autogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
version_dsl_plugin = "5.5.0"
version_blitz_plugin = "5.5.0"
version_ice_builder = "1.5.0"
version_py = "5.5.dev2"
version_web = "5.5.dev2"
version_dropbox = "5.5.dev1"
version_py = "5.6.0.dev6"
version_web = "5.6.0.dev6"
version_dropbox = "5.6.0.dev3"
2 changes: 1 addition & 1 deletion omero/downloads/cli/db-script-example.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Using OMERO5.4 for version
Using 0 for patch
Using password from commandline
Saving to /home/omero/OMERO5.4__0.sql
Saving to /private/home/omero/OMERO5.4__0.sql
14 changes: 9 additions & 5 deletions omero/downloads/ldap/setdn.out
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
usage: bin/omero ldap setdn [-h] [--user-id USER_ID] [--user-name USER_NAME]
[--group-id GROUP_ID] [--group-name GROUP_NAME]
[-C] [-s SERVER] [-p PORT] [-g GROUP] [-u USER]
[-w PASSWORD] [-k KEY] [--sudo ADMINUSER] [-q]
choice
usage: /tmp/ws/OMERO.server/bin/omero ldap setdn [-h] [--user-id USER_ID]
[--user-name USER_NAME]
[--group-id GROUP_ID]
[--group-name GROUP_NAME]
[-C] [-s SERVER] [-p PORT]
[-g GROUP] [-u USER]
[-w PASSWORD] [-k KEY]
[--sudo ADMINUSER] [-q]
choice

Enable or disable LDAP login for user (admins only)

Expand Down
12 changes: 10 additions & 2 deletions omero/sysadmins/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2183,6 +2183,14 @@ Warning: Only system administrators should use this feature. List of Django midd

Default: `[{"index": 1, "class": "django.middleware.common.BrokenLinkEmailsMiddleware"},{"index": 2, "class": "django.middleware.common.CommonMiddleware"},{"index": 3, "class": "django.contrib.sessions.middleware.SessionMiddleware"},{"index": 4, "class": "django.middleware.csrf.CsrfViewMiddleware"},{"index": 5, "class": "django.contrib.messages.middleware.MessageMiddleware"},{"index": 6, "class": "django.middleware.clickjacking.XFrameOptionsMiddleware"}]`

.. property:: omero.web.nginx_server_extra_config

omero.web.nginx_server_extra_config
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Extra configuration lines to add to the Nginx server block. Lines will be joined with \n. Remember to terminate lines with; when necessary.

Default: `[]`

.. property:: omero.web.open_with

omero.web.open_with
Expand Down Expand Up @@ -2341,7 +2349,7 @@ omero.web.server_list
^^^^^^^^^^^^^^^^^^^^^
A list of servers the Web client can connect to.

Default: `[["localhost", 4064, "omero"]]`
Default: `[["127.0.0.1", 4064, "omero"]]`

.. property:: omero.web.session_cookie_age

Expand Down Expand Up @@ -2413,7 +2421,7 @@ omero.web.static_root
^^^^^^^^^^^^^^^^^^^^^
The absolute path to the directory where collectstatic will collect static files for deployment. If the staticfiles contrib app is enabled (default) the collectstatic management command will collect static files into this directory.

Default: `/home/omero/OMERO.server/lib/python/omeroweb/static`
Default: `/home/omero/OMERO.server/var/static`

.. property:: omero.web.static_url

Expand Down
2 changes: 1 addition & 1 deletion omero/sysadmins/unix/install-web/nginx-location.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ location @maintenance {
}

location /static {
alias /home/omero/OMERO.py/lib/python/omeroweb/static;
alias /home/omero/OMERO.py/var/static;
}

location @proxy_to_app {
Expand Down
4 changes: 3 additions & 1 deletion omero/sysadmins/unix/install-web/nginx-omero.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ server {
sendfile on;
client_max_body_size 0;



# maintenance page serve from here
location @maintenance {
root /home/omero/OMERO.py/etc/templates/error;
Expand All @@ -17,7 +19,7 @@ server {

# weblitz django apps serve media from here
location /static {
alias /home/omero/OMERO.py/lib/python/omeroweb/static;
alias /home/omero/OMERO.py/var/static;
}

location @proxy_to_app {
Expand Down
4 changes: 2 additions & 2 deletions omero/sysadmins/unix/walkthrough/walkthrough_centos7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ yum -y install openssl-devel bzip2-devel

yum -y install ice-all-runtime

pip install https://github.com/ome/zeroc-ice-py-centos7/releases/download/0.1.0/zeroc_ice-3.6.4-cp27-cp27mu-linux_x86_64.whl
pip install "zeroc-ice>3.5,<3.7"
#end-recommended-ice


# install Postgres
yum -y install https://yum.postgresql.org/10/redhat/rhel-7-x86_64/pgdg-redhat10-10-2.noarch.rpm
yum -y install postgresql10-server postgresql10

PGSETUP_INITDB_OPTIONS=--encoding=UTF8 /usr/pgsql-10/bin/postgresql-10-setup initdb
PGSETUP_INITDB_OPTIONS=--encoding=UTF8 /usr/pgsql-10/bin/postgresql10-setup initdb

sed -i.bak -re 's/^(host.*)ident/\1md5/' /var/lib/pgsql/10/data/pg_hba.conf
systemctl start postgresql-10.service
Expand Down

0 comments on commit 707a8bc

Please sign in to comment.