'),
- ('/community/index.php', 'Index page'),
-
- ('/Schemas', 'Open Microscopy Environment Schemas'),
- ('/Schemas/ROI', 'Open Microscopy Environment ROI Schemas'),
- ('/Schemas/broken-link', 'Open Microscopy Environment Schemas'),
-
- ('/qa2', '
OMERO.qa provides support services'),
- ('/qa2/qa/feedback/17777', '
Go back'),
- ('/qa2/qa/upload', 'Uploading sample images'),
- ('/qa2/qa/feedback/?status=1',
- 'If you cannot view feedback you previously submitted'),
- ('/qa2/registry/demo_account', 'Requesting a demo server account'),
- ('/qa2/registry/statistic', 'File statistics.'),
-]
-content_uris_no_slash = [
- ('/Schemas/OME/2016-06/ome.xsd', 'Schema June 2016'),
- ('/Schemas/OME/2015-01/ome.xsd', 'Schema January 2015'),
- ('/Schemas/ROI/2015-01/ROI.xsd', 'Region of Interest'),
- ('/XMLschemas/OME/FC/ome.xsd', 'The OME element is a container'),
- ('/XMLschemas/CA/RC1/CA.xsd',
- 'Conforms to w3c http://www.w3.org/2001/XMLSchema'),
- ('/XMLschemas/STD/RC2/STD.xsd', 'Defines a semantic type'),
-]
-
-
-# Based on
-# https://github.com/openmicroscopy/prod-playbooks/blob/master/www/playbook.yml
-@pytest.mark.parametrize('host', hosts)
-@pytest.mark.parametrize('uri,expect', redirect_uris)
-@pytest.mark.parametrize("suffix", suffixes)
-def test_redirect_with_slash(host, uri, expect, suffix):
- r = requests.head('%s%s%s' % (host, uri, suffix))
- assert r.is_redirect
- assert r.headers['Location'] == '%s%s' % (host, expect)
-
-
-@pytest.mark.parametrize('host', hosts)
-@pytest.mark.parametrize('uri,expect', external_uris)
-@pytest.mark.parametrize("suffix", suffixes)
-def test_redirect_external(host, uri, expect, suffix):
- r = requests.head('%s%s%s' % (host, uri, suffix))
- assert r.is_redirect
- assert r.headers['Location'] == expect
-
-
-@pytest.mark.parametrize('host', hosts)
-def test_404(host):
- uri = '/non-existent/path'
- r = requests.head('%s%s' % (host, uri))
- assert r.status_code == 404
-
-
-@pytest.mark.parametrize('host', hosts)
-@pytest.mark.parametrize('uri,content', content_uris)
-@pytest.mark.parametrize('suffix', suffixes)
-def test_content(host, uri, content, suffix):
- r = requests.get('%s%s%s' % (host, uri, suffix))
- assert content in r.text
-
-
-@pytest.mark.parametrize('host', hosts)
-@pytest.mark.parametrize('uri,content', content_uris_no_slash)
-def test_content_no_slash(host, uri, content):
- r = requests.get('%s%s' % (host, uri))
- assert content in r.text
diff --git a/www/tests/requirements.txt b/www/tests/requirements.txt
deleted file mode 100644
index 547de5c5..00000000
--- a/www/tests/requirements.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-pytest
-requests
diff --git a/www/www-deploy.yml b/www/www-deploy.yml
deleted file mode 100644
index 29c9f2c1..00000000
--- a/www/www-deploy.yml
+++ /dev/null
@@ -1,350 +0,0 @@
-# Install NGINX
-
-- name: Www deploy
- hosts: www
-
- roles:
- - role: ome.ssl_certificate
- - role: ome.nginx_proxy
- tags: nginxconf
-
- handlers:
- - name: Reload nginx
- listen: ssl certificate changed
- become: true
- ansible.builtin.service:
- name: nginx
- state: reloaded
-
- vars:
- nginx_proxy_worker_processes: >-
- {{ ((ansible_processor_count * ansible_processor_cores)
- / 2) |round|int }}
- nginx_proxy_worker_connections: 65000
- nginx_proxy_ssl: true
- nginx_proxy_ssl_certificate: "{{ ssl_certificate_bundled_path }}"
- nginx_proxy_ssl_certificate_key: "{{ ssl_certificate_key_path }}"
- nginx_proxy_http2: true
- nginx_proxy_force_ssl: false
- nginx_proxy_404: "/404.html"
- nginx_proxy_conf_http:
- - "client_max_body_size 2g"
- nginx_proxy_backends:
- # Proxy for QA application
- - location: /qa2
- server: https://www-legacy.openmicroscopy.org/qa2
- - location: /static
- server: https://www-legacy.openmicroscopy.org
- nginx_proxy_redirect_map_locations:
- # TODO: change to 301 when we're happy
- - location: "~ ^/(BIO-FORMATS)($|/)"
- code: 302
- - location: "~ ^/(OME-FILES)($|/)"
- code: 302
- - location: "~ ^/(OMERO)($|/)"
- code: 302
- - location: "~ ^/(site)($|/)"
- code: 302
- - location: "~ ^/(omero-blog)($|/)"
- code: 302
- - location: "~ ^/(info)($|/)"
- code: 302
- - location: "~ ^/(forums)($|/)"
- code: 302
- - location: "~ ^/(XMLschemas)($|/)"
- code: 302
- - location: "~ ^/(Schemas/Samples)($|/)"
- code: 302
- nginx_proxy_redirect_map:
- # by default redirect to the 404 page
- - match: default
- dest: /404.html
- - match: "~/omero-blog.*"
- dest: http://blog.openmicroscopy.org
- - match: "~/site/?$"
- dest: /
- - match: "~/site/news/?$"
- dest: /announcements
-
- # about
- - match: "~/site/about/?$"
- dest: /about
- - match: "~/site/about/who-ome"
- dest: /teams
- - match: "~/site/about/licensing"
- dest: /licensing
- - match: "~/site/about/licensing-attribution(/.*)?$"
- dest: /licensing
- - match: "~/site/about/ome-contributors/?$"
- dest: /contributors
- - match: "~/site/about/partners/?$"
- dest: /commercial-partners
- - match: "~/site/about/development-teams/?$"
- dest: /teams
- - match: "~/site/about/development-teams/glencoe-software"
- dest: https://www.glencoesoftware.com/team.html
- - match: "~/site/about/publications"
- dest: /citing-ome
- - match: "~/site/about/what-omero/overview"
- dest: /omero
- - match: "~/site/about/(?
.*)$"
- dest: /about
-
- # products
- - match: "~/site/products/?$"
- dest: /products
- - match: "~/site/products/omero/?$"
- dest: /omero
- - match: "~/site/products/omero/downloads/?$"
- dest: /omero/downloads/
- - match: "~/site/products/omero/feature-list/?$"
- dest: /omero/features/
- - match: "~/site/products/omero/big-images-support/?$"
- dest: /omero/view/
- - match: "~/site/products/omero/secvuln/?$"
- dest: /security/advisories/
- - match: "~/site/products/ome5/secvuln/?$"
- dest: /security/advisories/
- - match: "~/site/products/omero/secvuln/(?
.*[^/])/?$"
- dest: /security/advisories/$link/
- - match: "~/site/products/bio-formats/?$"
- dest: /bio-formats
- - match: "~/site/products/bio-formats/downloads/?$"
- dest: /bio-formats/downloads/
- - match: "~/site/products/ome-files-cpp/?$"
- dest: /ome-files
- - match: "~/site/products/(?
.*)$"
- dest: /products
-
- # community
- - match: "~/forums/?$"
- dest: https://forum.image.sc/c/data-management
- - match: "~/site/community/?$"
- dest: /support
- - match: "~/site/community/mailing-lists/?$"
- dest: /support
- - match: "~/site/events(/.*)?$"
- dest: /events
- - match: "~/site/community/minutes/conference-calls/?$"
- dest: /on-the-web
- - match: "~/site/community/minutes/meetings\
- /12th-annual-users-meeting-2017"
- dest: /events/12th-annual-users-meeting-2017.html
- - match: "~/site/community/minutes/meetings\
- /11th-annual-users-meeting-2016"
- dest: /events/11th-annual-users-meeting-2016.html
- - match: "~/site/community/minutes/meetings/\
- 10th-annual-users-meeting-june-2015"
- dest: /events/10th-annual-users-meeting-june-2015.html
- - match: "~/site/community/minutes/meetings/\
- 9th-annual-users-meeting-june-2014"
- dest: /events/9th-annual-users-meeting-june-2014.html
- - match: "~/site/community/jobs/?$"
- dest: /careers
- - match: "~/site/community/scripts/?$"
- dest: "https://docs.openmicroscopy.org/\
- latest/omero/developers/scripts/index.html"
- - match: "~/site/community/(?
.*)$"
- dest: /support
-
- # support
- - match: "~/site/support/?$"
- dest: /docs
-
- - match: "~/site/support/bio-formats/?$"
- dest: https://docs.openmicroscopy.org/latest/bio-formats/
- - match: "~/site/support/bio-formats/(?
.*)$"
- dest: https://docs.openmicroscopy.org/latest/bio-formats/$link
- - match: "~/site/support/bio-formats5/?$"
- dest: https://docs.openmicroscopy.org/latest/bio-formats5/
- - match: "~/site/support/bio-formats5/(?
.*)$"
- dest: https://docs.openmicroscopy.org/latest/bio-formats5/$link
- - match: '~/site/support/bio-formats5\.3/?$'
- dest: https://docs.openmicroscopy.org/latest/bio-formats5.3/
- - match: '~/site/support/bio-formats5\.3/(?
.*)$'
- dest: https://docs.openmicroscopy.org/latest/bio-formats5.3/$link
- - match: '~/site/support/bio-formats5\.4/?$'
- dest: https://docs.openmicroscopy.org/latest/bio-formats5.4/
- - match: '~/site/support/bio-formats5\.4/(?
.*)$'
- dest: https://docs.openmicroscopy.org/latest/bio-formats5.4/$link
- - match: '~/site/support/bio-formats5\.5/?$'
- dest: https://docs.openmicroscopy.org/latest/bio-formats5.5/
- - match: '~/site/support/bio-formats5\.5/(?
.*)$'
- dest: https://docs.openmicroscopy.org/latest/bio-formats5.5/$link
-
- - match: "~/site/support/omero/?$"
- dest: https://docs.openmicroscopy.org/latest/omero/
- - match: "~/site/support/omero/(?
.*)$"
- dest: https://docs.openmicroscopy.org/latest/omero/$link
- - match: "~/site/support/omero5/?$"
- dest: https://docs.openmicroscopy.org/latest/omero5/
- - match: "~/site/support/omero5/(?
.*)$"
- dest: https://docs.openmicroscopy.org/latest/omero5/$link
- - match: '~/site/support/omero5\.0/?$'
- dest: https://docs.openmicroscopy.org/latest/omero5.0/
- - match: '~/site/support/omero5\.0/(?
.*)$'
- dest: https://docs.openmicroscopy.org/latest/omero5.0/$link
- - match: '~/site/support/omero5\.1/?$'
- dest: https://docs.openmicroscopy.org/latest/omero5.1/
- - match: '~/site/support/omero5\.1/(?
.*)$'
- dest: https://docs.openmicroscopy.org/latest/omero5.1/$link
- - match: '~/site/support/omero5\.2/?$'
- dest: https://docs.openmicroscopy.org/latest/omero5.2/
- - match: '~/site/support/omero5\.2/(?
.*)$'
- dest: https://docs.openmicroscopy.org/latest/omero5.2/$link
- - match: '~/site/support/omero5\.3/?$'
- dest: https://docs.openmicroscopy.org/latest/omero5.3/
- - match: '~/site/support/omero5\.3/(?
.*)$'
- dest: https://docs.openmicroscopy.org/latest/omero5.3/$link
-
- - match: "~/site/support/ome-model/?$"
- dest: https://docs.openmicroscopy.org/latest/ome-model/
- - match: "~/site/support/ome-model/(?
.*)$"
- dest: https://docs.openmicroscopy.org/latest/ome-model/$link
- - match: "~/site/support/file-formats/?$"
- dest: https://docs.openmicroscopy.org/latest/ome-model/
- - match: "~/site/support/file-formats/schemas\
- /specifications/compliant-file-specification/?$"
- dest: https://docs.openmicroscopy.org/latest/ome-model/specifications/
- - match: "~/site/support/ome-tiff/?$"
- dest: https://docs.openmicroscopy.org/latest/ome-model/ome-tiff/
- - match: "~/site/support/ome-files-cpp/?$"
- dest: https://docs.openmicroscopy.org/latest/ome-files-cpp/
- - match: "~/site/support/ome-files-cpp/(?
.*)$"
- dest: https://docs.openmicroscopy.org/latest/ome-files-cpp/$link
- - match: "~/site/support/contributing/?$"
- dest: https://docs.openmicroscopy.org/contributing/
- - match: "~/site/support/contributing/(?
.*)$"
- dest: https://docs.openmicroscopy.org/contributing/$link
- - match: "~/site/support/previous(/.*)?$"
- dest: https://docs.openmicroscopy.org
- - match: "~/site/support/ome-artwork(/.*)?$"
- dest: /artwork
-
- # uppercase alias
- - match: "~/BIO-FORMATS$"
- dest: /bio-formats
- - match: "~/BIO-FORMATS/(?
.*)$"
- dest: /bio-formats/$link
- - match: "~/OME-FILES$"
- dest: /ome-files
- - match: "~/OME-FILES/(?
.*)$"
- dest: /ome-files/$link
- - match: "~/OMERO$"
- dest: /omero
- - match: "~/OMERO/(?
.*)$"
- dest: /omero/$link
-
- # info
- - match: "~/info/vulnerabilities/?$"
- dest: /security/advisories/
- - match: "~/info/vulnerabilities/(?
.*[^/])/?$"
- dest: /security/advisories/$link/
- - match: "~/info/omero/?$"
- dest: /omero
- - match: "~/info/OMERO.insight/?$"
- dest: https://docs.openmicroscopy.org/latest/omero/users/index.html
- - match: "~/info/OMERO.importer/?$"
- dest: https://docs.openmicroscopy.org/latest/omero/users/index.html
- - match: "~/info/OMERO.editor/?$"
- dest: https://docs.openmicroscopy.org/latest/omero/users/index.html
- - match: "~/info/OMERO.web/?$"
- dest: https://docs.openmicroscopy.org/latest/omero/users/index.html
- - match: "~/info/OMERO.server"
- dest: https://docs.openmicroscopy.org/latest/omero/users/index.html
- - match: "~/info/permissions"
- dest: "https://docs.openmicroscopy.org/latest\
- /omero/sysadmins/server-permissions.html"
- - match: "~/info/demo"
- dest: http://help.openmicroscopy.org/demo-server.html
- - match: "~/info/cls"
- dest: /omero/downloads/
- - match: "~/info/download"
- dest: /omero/downloads/
- - match: "~/info/downloads"
- dest: /omero/downloads/
- - match: "~/info/lists"
- dest: http://lists.openmicroscopy.org.uk/mailman/listinfo/
- - match: "~/info/videos"
- dest: https://www.youtube.com/channel/UCyySB9ZzNi8aBGYqcxSrauQ
- - match: "~/info/attribution"
- dest: /licensing/
- - match: "~/info/downgrade"
- dest: "https://docs.openmicroscopy.org/latest/\
- omero/developers/Model/XsltTransformations.html"
- - match: "~/info/flimfit"
- dest: http://flimfit.org
- - match: "~/info/scripts"
- dest: "https://docs.openmicroscopy.org/latest/\
- omero/developers/scripts/index.html"
- - match: "~/info/bio-formats(/.*)?$"
- dest: https://docs.openmicroscopy.org/latest/bio-formats/
- - match: "~/info/slidebook"
- dest: https://www.intelligent-imaging.com/technical-answers
- - match: "~/info/(.*)?$"
- dest: /site-map
-
- # Legacy XMLschemas endpoint
- - match: "~/XMLschemas/(?
.*[^/])?$"
- dest: /Schemas/$link
-
- # Legacy schemas samples
- - match:
- "~/Schemas/Samples/2013-06/bioformats-artificial/\
- multi-channel-4D-series.ome.tif.zip"
- dest:
- "https://downloads.openmicroscopy.org/images/OME-TIFF/\
- 2013-06/bioformats-artificial/multi-channel-4D-series.ome.tif"
- - match: "~/Schemas/Samples/2015-01/set-1-meta-companion"
- dest:
- https://downloads.openmicroscopy.org/images/OME-TIFF/2015-01/companion/
- - match:
- "~/Schemas/Samples/2015-01/bioformats-artificial/\
- multi-channel-time-series.ome.tif.zip"
- dest:
- "https://downloads.openmicroscopy.org/images/OME-TIFF/\
- 2015-01/bioformats-artificial/multi-channel-time-series.ome.tif"
- - match: "~/Schemas/Samples/(?
.*)?$"
- dest: https://downloads.openmicroscopy.org/images/OME-TIFF/$link
- - match: "~/Schemas/Samples"
- dest: https://downloads.openmicroscopy.org/images/
-
- nginx_proxy_direct_locations:
- - location: "/"
- root: "/var/www/www.openmicroscopy.org/html"
- index: index.html
-
- - location: "^~ /Schemas/Documentation/Generated/"
- alias: /var/www/schemas_documentation/
-
- - location: "/Schemas/Transforms/"
- root: "/var/www/www.openmicroscopy.org/html/"
- custom:
- - autoindex on
-
- # Static copy of old phpBB forums: treat query params as part of filename
- - location: "~ ^/community/style.php.*"
- root: /var/www/phpbbforum/www.openmicroscopy.org
- custom:
- - try_files $request_uri $uri =404
- - default_type text/css
- - location: "~ ^/community/?$"
- redirect301: /community/index.php
- - location: /community
- root: /var/www/phpbbforum/www.openmicroscopy.org
- custom:
- # Need to exclude extra query parameters in incoming external links
- # e.g. sid=
- # If an exact match isn't found try just these parameters:
- # [f, t, p], [f, t], [f]
- - >-
- try_files
- $request_uri
- $uri?f=$arg_f&t=$arg_t&p=$arg_p
- $uri?f=$arg_f&t=$arg_t
- $uri?f=$arg_f
- =404
- - default_type text/html
-
-- name: Import www-static playbook
- import_playbook: www-static.yml
diff --git a/www/www-static.yml b/www/www-static.yml
deleted file mode 100644
index f3c511c3..00000000
--- a/www/www-static.yml
+++ /dev/null
@@ -1,82 +0,0 @@
-# Update the static website
-
-- name: Www static
- hosts: www
-
- pre_tasks:
- - name: Check if phpbbforum already unzipped
- ansible.builtin.stat:
- path: "{{ phpbbforum_style_file }}"
- register: _phpbbforum_style_file_st
-
- - name: Check if schemas_documentation already unzipped
- ansible.builtin.stat:
- path: "{{ schemas_doc_file }}"
- register: _schemas_doc_file_st
-
- roles:
- - role: ome.deploy_archive
- become: true
- deploy_archive_dest_dir: /var/www
- deploy_archive_src_url: "https://downloads.openmicroscopy.org/web-\
- archive/phpbbforum-20190718.tar.gz"
- deploy_archive_sha256: "e9d7a7eefbacf42ddbdf92b201584913cb6d94ec\
- 331750f811232b2e91aa5b40"
- # This file is patched later so only unzip if it doesn't exist
- when: not _phpbbforum_style_file_st.stat.exists
-
- - role: ome.deploy_archive
- become: true
- deploy_archive_dest_dir: /var/www
- deploy_archive_src_url: "https://downloads.openmicroscopy.org/web-\
- archive/schemas_documentation-20211213.tar.gz"
- deploy_archive_sha256: "27cc5def458112a2e259484906f2bc8c0e0e2bd\
- 0a728b0a478302537d67117ec"
- # This file is patched later so only unzip if it doesn't exist
- when: not _schemas_doc_file_st.stat.exists
-
- tasks:
- - name: Install deployment script
- become: true
- template:
- src: files/deploy
- dest: /usr/local/bin/deploy
- mode: 0555
-
- - name: Install Cron daemon
- become: true
- ansible.builtin.yum:
- name: cronie
- state: installed
-
- - name: Add cron job updating the website
- become: true
- ansible.builtin.cron:
- name: "Deploy the website"
- special_time: hourly
- job: >-
- /usr/local/bin/deploy 2>&1 >
- /dev/null || /usr/local/bin/deploy -f
-
- - name: Update static phpbb stylesheet
- become: true
- ansible.builtin.blockinfile:
- block: |
- form,
- .quick-login,
- .buttons,
- #jumpbox~h3,
- #jumpbox~p,
- .headerspace~h3,
- .headerspace~p,
- ul.linklist.rightside,
- ul.linklist li.rightside {
- display: none;
- }
- marker: "/* {mark} ANSIBLE MANAGED BLOCK */"
- path: "{{ phpbbforum_style_file }}"
-
- vars:
- phpbbforum_style_file: "/var/www/phpbbforum/www.openmicroscopy\
- .org/community/style.php?id=7&lang=en"
- schemas_doc_file: "/var/www/schemas_documentation/OME-2016-06/ome.html"
From c1461feda8d6ad479f41863f09b44149139e8afd Mon Sep 17 00:00:00 2001
From: pwalczysko
Date: Mon, 18 Nov 2024 11:36:15 +0000
Subject: [PATCH 03/20] Adjust the demo email message for websockets
---
omero/ome-demoserver.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/omero/ome-demoserver.yml b/omero/ome-demoserver.yml
index a59bcc51..a176616c 100644
--- a/omero/ome-demoserver.yml
+++ b/omero/ome-demoserver.yml
@@ -260,6 +260,9 @@
3. Once OMERO.insight is started, following the steps in the\n omero-guide [1], change the server address to\n
demo.openmicroscopy.org\n
and connect using the login details as above to import your data.\n
+ If insight errors with "...Please check the server address..."\n
+ change the server address to:\n
+ wss://demo.openmicroscopy.org/omero-ws\n
4. Use the walkthrough example [1] to get further ideas about how
to start using OMERO.\n
OME Team\n\n
From 44efe7256e269caa6e192ef54c284218fe02efc3 Mon Sep 17 00:00:00 2001
From: pwalczysko
Date: Mon, 18 Nov 2024 14:13:22 +0000
Subject: [PATCH 04/20] Bump versions server,web,figure,tagsearch
---
omero/ome-demoserver.yml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/omero/ome-demoserver.yml b/omero/ome-demoserver.yml
index a176616c..846bbf44 100644
--- a/omero/ome-demoserver.yml
+++ b/omero/ome-demoserver.yml
@@ -210,9 +210,9 @@
vars:
omero_figure_release: >-
- {{ omero_figure_release_override | default('6.2.2') }}
+ {{ omero_figure_release_override | default('7.1.0') }}
omero_figure_script_release: >-
- {{ omero_figure_script_release_override | default('v6.2.2') }}
+ {{ omero_figure_script_release_override | default('v7.1.0') }}
omero_fpbioimage_release: >-
{{ omero_fpbioimage_release_override | default('0.4.1') }}
omero_iviewer_release: >-
@@ -222,14 +222,14 @@
omero_autotag_release: >-
{{ omero_autotag_release_override | default('4.0.1') }}
omero_tagsearch_release: >-
- {{ omero_tagsearch_release_override | default('4.1.1') }}
+ {{ omero_tagsearch_release_override | default('4.2.0') }}
omero_signup_release: >-
{{ omero_signup_release_override | default('0.3.3') }}
omero_server_release: >-
- {{ omero_server_release_override | default('5.6.11') }}
- omero_web_release: "{{ omero_web_release_override | default('5.26.0') }}"
- omero_py_release: "{{ omero_py_release_override | default('5.19.2') }}"
+ {{ omero_server_release_override | default('5.6.13') }}
+ omero_web_release: "{{ omero_web_release_override | default('5.27.2') }}"
+ omero_py_release: "{{ omero_py_release_override | default('5.19.5') }}"
# For https://github.com/openmicroscopy/ansible-role-java,
# which is a dependency.
java_jdk_install: true
From 25533d4a3fc1fe6f4ab84a177e6875253addef50 Mon Sep 17 00:00:00 2001
From: pwalczysko
Date: Mon, 18 Nov 2024 14:27:40 +0000
Subject: [PATCH 05/20] Pin role versions cf. Seb's comment
---
requirements.yml | 69 ++++++++++++++++++++++++++++++++----------------
1 file changed, 46 insertions(+), 23 deletions(-)
diff --git a/requirements.yml b/requirements.yml
index 248a7e23..3d24397e 100644
--- a/requirements.yml
+++ b/requirements.yml
@@ -1,24 +1,47 @@
---
-- src: ome.omero_common
-- src: ome.basedeps
-- src: ome.java
-- src: ome.python3_virtualenv
-- src: ome.ice
-- src: ome.postgresql
-- src: ome.postgresql_client
-- src: ome.deploy_archive
-- src: ome.omero_server
-- src: ome.omero_web
-- src: ome.nginx
-- src: ome.redis
-- src: ome.selinux_utils
-- src: ome.versioncontrol_utils
-- src: ome.ssl_certificate
-- src: nfs_mount
-- src: nfs_share
-- src: iptables_raw
-- src: ome.cli_utils
-- src: ome.docker
-- src: ome.postgresql_backup
-- src: ome.omero_user
-- src: ome.lvm_partition
+- name: ome.omero_common
+ version: 0.4.0
+- name: ome.basedeps
+ version: 1.3.2
+- name: ome.java
+ version: 2.2.0
+- name: ome.python3_virtualenv
+ version: 0.2.0
+- name: ome.ice
+ version: 4.4.4
+- name: ome.postgresql
+ version: 5.4.0
+- name: ome.postgresql_client
+ version: 0.4.3
+- name: ome.deploy_archive
+ version: 0.2.0
+- name: ome.omero_server
+ version: 6.1.0
+- name: ome.omero_web
+ version: 5.1.1
+- name: ome.nginx
+ version: 2.2.1
+- name: ome.redis
+ version: 1.3.0
+- name: ome.selinux_utils
+ version: 2.1.1
+- name: ome.versioncontrol_utils
+ version: 1.1.0
+- name: ome.ssl_certificate
+ version: 0.5.0
+- name: nfs_mount
+ version: 2.0.0
+- name: nfs_share
+ version: 1.0.0
+- name: iptables_raw
+ version: 0.4.0
+- name: ome.cli_utils
+ version: 1.2.5
+- name: ome.docker
+ version: 3.2.2
+- name: ome.postgresql_backup
+ version: 0.3.0
+- name: ome.omero_user
+ version: 0.4.0
+- name: ome.lvm_partition
+ version: 1.2.0
From efd4d1f6343d33d464d23d7c14a20a640e22f540 Mon Sep 17 00:00:00 2001
From: pwalczysko
Date: Mon, 18 Nov 2024 14:47:10 +0000
Subject: [PATCH 06/20] Rename omero folder to playbooks
---
ansible.cfg | 2 +-
molecule/ome-demoserver/molecule.yml | 2 +-
.../files/confd-nested-proxy-exporters-web.conf | 0
{omero => playbooks}/files/confd-nested-proxy-exporters.conf | 0
{omero => playbooks}/files/learning-omero-web.conf | 0
{omero => playbooks}/files/omero-server-config-prometheus.omero | 0
{omero => playbooks}/files/sls-gallery-omero-web.conf | 0
{omero => playbooks}/ome-demoserver.yml | 0
{omero => playbooks}/roles/.gitignore | 0
{omero => playbooks}/templates/nginx-confd-websockets-conf.j2 | 0
.../templates/nginx-confdnestedincludes-minio-publicscratch.j2 | 0
.../nginx-confdnestedincludes-ns-pub-redirects-conf.j2 | 0
.../templates/nginx-confdnestedincludes-omero-ms-zarr.j2 | 0
.../templates/nginx-confdnestedincludes-omerows-conf.j2 | 0
.../templates/nginx-confdnestedincludes-ssl-conf.j2 | 0
{omero => playbooks}/templates/nginx-letsencrypt-conf.j2 | 0
{omero => playbooks}/templates/nginx-omero.conf.j2 | 0
{omero => playbooks}/templates/omero-web-config-for-cors.j2 | 0
{omero => playbooks}/templates/omero-web-config-for-webapps.j2 | 0
{omero => playbooks}/templates/omero-web-config-signup.j2 | 0
20 files changed, 2 insertions(+), 2 deletions(-)
rename {omero => playbooks}/files/confd-nested-proxy-exporters-web.conf (100%)
rename {omero => playbooks}/files/confd-nested-proxy-exporters.conf (100%)
rename {omero => playbooks}/files/learning-omero-web.conf (100%)
rename {omero => playbooks}/files/omero-server-config-prometheus.omero (100%)
rename {omero => playbooks}/files/sls-gallery-omero-web.conf (100%)
rename {omero => playbooks}/ome-demoserver.yml (100%)
rename {omero => playbooks}/roles/.gitignore (100%)
rename {omero => playbooks}/templates/nginx-confd-websockets-conf.j2 (100%)
rename {omero => playbooks}/templates/nginx-confdnestedincludes-minio-publicscratch.j2 (100%)
rename {omero => playbooks}/templates/nginx-confdnestedincludes-ns-pub-redirects-conf.j2 (100%)
rename {omero => playbooks}/templates/nginx-confdnestedincludes-omero-ms-zarr.j2 (100%)
rename {omero => playbooks}/templates/nginx-confdnestedincludes-omerows-conf.j2 (100%)
rename {omero => playbooks}/templates/nginx-confdnestedincludes-ssl-conf.j2 (100%)
rename {omero => playbooks}/templates/nginx-letsencrypt-conf.j2 (100%)
rename {omero => playbooks}/templates/nginx-omero.conf.j2 (100%)
rename {omero => playbooks}/templates/omero-web-config-for-cors.j2 (100%)
rename {omero => playbooks}/templates/omero-web-config-for-webapps.j2 (100%)
rename {omero => playbooks}/templates/omero-web-config-signup.j2 (100%)
diff --git a/ansible.cfg b/ansible.cfg
index 67e073b8..76048139 100644
--- a/ansible.cfg
+++ b/ansible.cfg
@@ -10,7 +10,7 @@
[defaults]
# Galaxy roles
-roles_path = ./omero/roles
+roles_path = ./playbooks/roles
# These tend to be annoying.
retry_files_enabled = False
diff --git a/molecule/ome-demoserver/molecule.yml b/molecule/ome-demoserver/molecule.yml
index b09507f8..4ad4b21c 100644
--- a/molecule/ome-demoserver/molecule.yml
+++ b/molecule/ome-demoserver/molecule.yml
@@ -26,7 +26,7 @@ provisioner:
name: ansible
playbooks:
prepare: ../prepare.yml
- converge: ../../omero/ome-demoserver.yml
+ converge: ../../playbooks/ome-demoserver.yml
options:
v: true
diff: true
diff --git a/omero/files/confd-nested-proxy-exporters-web.conf b/playbooks/files/confd-nested-proxy-exporters-web.conf
similarity index 100%
rename from omero/files/confd-nested-proxy-exporters-web.conf
rename to playbooks/files/confd-nested-proxy-exporters-web.conf
diff --git a/omero/files/confd-nested-proxy-exporters.conf b/playbooks/files/confd-nested-proxy-exporters.conf
similarity index 100%
rename from omero/files/confd-nested-proxy-exporters.conf
rename to playbooks/files/confd-nested-proxy-exporters.conf
diff --git a/omero/files/learning-omero-web.conf b/playbooks/files/learning-omero-web.conf
similarity index 100%
rename from omero/files/learning-omero-web.conf
rename to playbooks/files/learning-omero-web.conf
diff --git a/omero/files/omero-server-config-prometheus.omero b/playbooks/files/omero-server-config-prometheus.omero
similarity index 100%
rename from omero/files/omero-server-config-prometheus.omero
rename to playbooks/files/omero-server-config-prometheus.omero
diff --git a/omero/files/sls-gallery-omero-web.conf b/playbooks/files/sls-gallery-omero-web.conf
similarity index 100%
rename from omero/files/sls-gallery-omero-web.conf
rename to playbooks/files/sls-gallery-omero-web.conf
diff --git a/omero/ome-demoserver.yml b/playbooks/ome-demoserver.yml
similarity index 100%
rename from omero/ome-demoserver.yml
rename to playbooks/ome-demoserver.yml
diff --git a/omero/roles/.gitignore b/playbooks/roles/.gitignore
similarity index 100%
rename from omero/roles/.gitignore
rename to playbooks/roles/.gitignore
diff --git a/omero/templates/nginx-confd-websockets-conf.j2 b/playbooks/templates/nginx-confd-websockets-conf.j2
similarity index 100%
rename from omero/templates/nginx-confd-websockets-conf.j2
rename to playbooks/templates/nginx-confd-websockets-conf.j2
diff --git a/omero/templates/nginx-confdnestedincludes-minio-publicscratch.j2 b/playbooks/templates/nginx-confdnestedincludes-minio-publicscratch.j2
similarity index 100%
rename from omero/templates/nginx-confdnestedincludes-minio-publicscratch.j2
rename to playbooks/templates/nginx-confdnestedincludes-minio-publicscratch.j2
diff --git a/omero/templates/nginx-confdnestedincludes-ns-pub-redirects-conf.j2 b/playbooks/templates/nginx-confdnestedincludes-ns-pub-redirects-conf.j2
similarity index 100%
rename from omero/templates/nginx-confdnestedincludes-ns-pub-redirects-conf.j2
rename to playbooks/templates/nginx-confdnestedincludes-ns-pub-redirects-conf.j2
diff --git a/omero/templates/nginx-confdnestedincludes-omero-ms-zarr.j2 b/playbooks/templates/nginx-confdnestedincludes-omero-ms-zarr.j2
similarity index 100%
rename from omero/templates/nginx-confdnestedincludes-omero-ms-zarr.j2
rename to playbooks/templates/nginx-confdnestedincludes-omero-ms-zarr.j2
diff --git a/omero/templates/nginx-confdnestedincludes-omerows-conf.j2 b/playbooks/templates/nginx-confdnestedincludes-omerows-conf.j2
similarity index 100%
rename from omero/templates/nginx-confdnestedincludes-omerows-conf.j2
rename to playbooks/templates/nginx-confdnestedincludes-omerows-conf.j2
diff --git a/omero/templates/nginx-confdnestedincludes-ssl-conf.j2 b/playbooks/templates/nginx-confdnestedincludes-ssl-conf.j2
similarity index 100%
rename from omero/templates/nginx-confdnestedincludes-ssl-conf.j2
rename to playbooks/templates/nginx-confdnestedincludes-ssl-conf.j2
diff --git a/omero/templates/nginx-letsencrypt-conf.j2 b/playbooks/templates/nginx-letsencrypt-conf.j2
similarity index 100%
rename from omero/templates/nginx-letsencrypt-conf.j2
rename to playbooks/templates/nginx-letsencrypt-conf.j2
diff --git a/omero/templates/nginx-omero.conf.j2 b/playbooks/templates/nginx-omero.conf.j2
similarity index 100%
rename from omero/templates/nginx-omero.conf.j2
rename to playbooks/templates/nginx-omero.conf.j2
diff --git a/omero/templates/omero-web-config-for-cors.j2 b/playbooks/templates/omero-web-config-for-cors.j2
similarity index 100%
rename from omero/templates/omero-web-config-for-cors.j2
rename to playbooks/templates/omero-web-config-for-cors.j2
diff --git a/omero/templates/omero-web-config-for-webapps.j2 b/playbooks/templates/omero-web-config-for-webapps.j2
similarity index 100%
rename from omero/templates/omero-web-config-for-webapps.j2
rename to playbooks/templates/omero-web-config-for-webapps.j2
diff --git a/omero/templates/omero-web-config-signup.j2 b/playbooks/templates/omero-web-config-signup.j2
similarity index 100%
rename from omero/templates/omero-web-config-signup.j2
rename to playbooks/templates/omero-web-config-signup.j2
From 98f403654d48a1e52ed15c865e31df2bc1509860 Mon Sep 17 00:00:00 2001
From: pwalczysko
Date: Wed, 20 Nov 2024 17:31:28 +0000
Subject: [PATCH 07/20] Add tests
---
molecule/tests/test_default.py | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 molecule/tests/test_default.py
diff --git a/molecule/tests/test_default.py b/molecule/tests/test_default.py
new file mode 100644
index 00000000..b534293c
--- /dev/null
+++ b/molecule/tests/test_default.py
@@ -0,0 +1,33 @@
+import os
+import pytest
+import testinfra.utils.ansible_runner
+
+testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
+ os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
+
+OMERO = '/opt/omero/server/OMERO.server/bin/omero'
+OMERO_LOGIN = '-C -s localhost -u root -w omero'
+
+
+@pytest.mark.parametrize("name", [
+ 'nginx',
+ 'omero-server',
+ 'omero-web',
+ 'postgresql-16',
+])
+def test_service_running_and_enabled(host, name):
+ service = host.service(name)
+ assert service.is_running
+ assert service.is_enabled
+
+
+def test_omero_login(host):
+ with host.sudo('omero-server'):
+ host.check_output(
+ '/opt/omero/server/OMERO.server/bin/omero '
+ 'login -C -s localhost -u root -w omero')
+
+
+def test_omero_nginx_ssl(host):
+ out = host.check_output('curl -fkI https://localhost/')
+ assert 'Location: /webclient/' in out
From 07c606d66b48abbcb6144ddb08a907ad01a8eaab Mon Sep 17 00:00:00 2001
From: pwalczysko
Date: Wed, 20 Nov 2024 17:19:52 +0000
Subject: [PATCH 08/20] Reformat requirements.yml
---
requirements.yml | 69 ++++++++++++++++++++++++++++++++----------------
1 file changed, 46 insertions(+), 23 deletions(-)
diff --git a/requirements.yml b/requirements.yml
index 3d24397e..b96e8576 100644
--- a/requirements.yml
+++ b/requirements.yml
@@ -1,47 +1,70 @@
---
-- name: ome.omero_common
+
+- src: ome.omero_common
version: 0.4.0
-- name: ome.basedeps
+
+- src: ome.basedeps
version: 1.3.2
-- name: ome.java
+
+- src: ome.java
version: 2.2.0
-- name: ome.python3_virtualenv
+
+- src: ome.python3_virtualenv
version: 0.2.0
-- name: ome.ice
+
+- src: ome.ice
version: 4.4.4
-- name: ome.postgresql
+
+- src: ome.postgresql
version: 5.4.0
-- name: ome.postgresql_client
+
+- src: ome.postgresql_client
version: 0.4.3
-- name: ome.deploy_archive
+
+- src: ome.deploy_archive
version: 0.2.0
-- name: ome.omero_server
+
+- src: ome.omero_server
version: 6.1.0
-- name: ome.omero_web
+
+- src: ome.omero_web
version: 5.1.1
-- name: ome.nginx
+
+- src: ome.nginx
version: 2.2.1
-- name: ome.redis
+
+- src: ome.redis
version: 1.3.0
-- name: ome.selinux_utils
+
+- src: ome.selinux_utils
version: 2.1.1
-- name: ome.versioncontrol_utils
+
+- src: ome.versioncontrol_utils
version: 1.1.0
-- name: ome.ssl_certificate
+
+- src: ome.ssl_certificate
version: 0.5.0
-- name: nfs_mount
+
+- src: nfs_mount
version: 2.0.0
-- name: nfs_share
+
+- src: nfs_share
version: 1.0.0
-- name: iptables_raw
+
+- src: iptables_raw
version: 0.4.0
-- name: ome.cli_utils
+
+- src: ome.cli_utils
version: 1.2.5
-- name: ome.docker
+
+- src: ome.docker
version: 3.2.2
-- name: ome.postgresql_backup
+
+- src: ome.postgresql_backup
version: 0.3.0
-- name: ome.omero_user
+
+- src: ome.omero_user
version: 0.4.0
-- name: ome.lvm_partition
+
+- src: ome.lvm_partition
version: 1.2.0
From 2c28f48ce592d378447c74863d367823d5bbd55a Mon Sep 17 00:00:00 2001
From: pwalczysko
Date: Tue, 19 Nov 2024 17:08:20 +0000
Subject: [PATCH 09/20] Add tests
---
molecule/ome-demoserver/molecule.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/molecule/ome-demoserver/molecule.yml b/molecule/ome-demoserver/molecule.yml
index 4ad4b21c..48da6536 100644
--- a/molecule/ome-demoserver/molecule.yml
+++ b/molecule/ome-demoserver/molecule.yml
@@ -61,3 +61,4 @@ scenario:
- destroy
verifier:
name: testinfra
+ directory: ../tests/
From ef36d3c37420e7b8165069ad1db1a9e2ff996390 Mon Sep 17 00:00:00 2001
From: pwalczysko
Date: Wed, 20 Nov 2024 18:59:20 +0000
Subject: [PATCH 10/20] Implement changes of ssl protocol and ciphers
---
playbooks/templates/nginx-confdnestedincludes-ssl-conf.j2 | 4 ++--
playbooks/templates/nginx-omero.conf.j2 | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/playbooks/templates/nginx-confdnestedincludes-ssl-conf.j2 b/playbooks/templates/nginx-confdnestedincludes-ssl-conf.j2
index 2edd2564..cc323a39 100644
--- a/playbooks/templates/nginx-confdnestedincludes-ssl-conf.j2
+++ b/playbooks/templates/nginx-confdnestedincludes-ssl-conf.j2
@@ -5,8 +5,8 @@ ssl_certificate {{ ssl_certificate_bundled_path }};
ssl_certificate_key {{ ssl_certificate_key_path }};
# use default ssl_protocols and ssl_ciphers:
-# ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
-# ssl_ciphers HIGH:!aNULL:!MD5;
+# ssl_protocols TLSv1.2 TLSv1.3; # don't use SSLv3 ref: POODLE
+# ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305;
# http://nginx.org/en/docs/http/configuring_https_servers.html
ssl_prefer_server_ciphers on;
diff --git a/playbooks/templates/nginx-omero.conf.j2 b/playbooks/templates/nginx-omero.conf.j2
index de7d9526..a00cac89 100644
--- a/playbooks/templates/nginx-omero.conf.j2
+++ b/playbooks/templates/nginx-omero.conf.j2
@@ -9,7 +9,8 @@ server {
ssl_certificate {{ ssl_certificate_bundled_path }};
ssl_certificate_key {{ ssl_certificate_key_path }};
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
+ ssl_protocols TLSv1.2 TLSv1.3; # don't use SSLv3 ref: POODLE
+ ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305;
if ($ssl_protocol = "") {
rewrite ^/(.*) https://$host/$1 permanent;
From fee1fdea5cbc1687f0ad82ef8205ba96d1d223ad Mon Sep 17 00:00:00 2001
From: pwalczysko
Date: Tue, 26 Nov 2024 12:39:02 +0000
Subject: [PATCH 11/20] Bump to v5 cf. J-M's comment
---
.github/workflows/molecule.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml
index 8642c0f2..515a7b32 100644
--- a/.github/workflows/molecule.yml
+++ b/.github/workflows/molecule.yml
@@ -28,7 +28,7 @@ jobs:
scenario: ${{fromJson(needs.list-scenarios.outputs.matrix)}}
steps:
- uses: actions/checkout@v4
- - uses: actions/setup-python@v4
+ - uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install Ansible & Molecule
From 05580ce6439dd1e162c838b31a6721d5cc212063 Mon Sep 17 00:00:00 2001
From: William Moore
Date: Tue, 26 Nov 2024 14:51:29 +0000
Subject: [PATCH 12/20] Bump iviewer 0.15.0
---
playbooks/ome-demoserver.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/playbooks/ome-demoserver.yml b/playbooks/ome-demoserver.yml
index 846bbf44..e51005e5 100644
--- a/playbooks/ome-demoserver.yml
+++ b/playbooks/ome-demoserver.yml
@@ -216,7 +216,7 @@
omero_fpbioimage_release: >-
{{ omero_fpbioimage_release_override | default('0.4.1') }}
omero_iviewer_release: >-
- {{ omero_iviewer_release_override | default('0.14.0') }}
+ {{ omero_iviewer_release_override | default('0.15.0') }}
omero_parade_release: >-
{{ omero_parade_release_override | default('0.2.4') }}
omero_autotag_release: >-
From 1bc8e6e53aa27f689b099f02691bd5391cc45464 Mon Sep 17 00:00:00 2001
From: William Moore
Date: Wed, 27 Nov 2024 11:32:03 +0000
Subject: [PATCH 13/20] Fix cd playbooks in README
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 903bab7c..33948d1d 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ Details
- Run the `ome-demoserver.yml` playbook:
```
-cd omero
+cd playbooks
ansible-playbook --ask-become --become -i $PATH/TO/INVENTORY ome-demoserver.yml -l $YOUR-HOST-ADDRESS-OR-IP --diff
```
From cab5ad8c74122ce5db501de68cdd7b54b388e74e Mon Sep 17 00:00:00 2001
From: William Moore
Date: Mon, 16 Dec 2024 13:09:56 +0000
Subject: [PATCH 14/20] Bump omero-figure 7.2.0
---
playbooks/ome-demoserver.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/playbooks/ome-demoserver.yml b/playbooks/ome-demoserver.yml
index e51005e5..2548c499 100644
--- a/playbooks/ome-demoserver.yml
+++ b/playbooks/ome-demoserver.yml
@@ -210,9 +210,9 @@
vars:
omero_figure_release: >-
- {{ omero_figure_release_override | default('7.1.0') }}
+ {{ omero_figure_release_override | default('7.2.0') }}
omero_figure_script_release: >-
- {{ omero_figure_script_release_override | default('v7.1.0') }}
+ {{ omero_figure_script_release_override | default('v7.2.0') }}
omero_fpbioimage_release: >-
{{ omero_fpbioimage_release_override | default('0.4.1') }}
omero_iviewer_release: >-
From 19c0dfb6132e6a63f74e9720f5e21c35d9fb566f Mon Sep 17 00:00:00 2001
From: pwalczysko
Date: Fri, 13 Dec 2024 15:31:42 +0000
Subject: [PATCH 15/20] Adjust protocols and ciphers as per workshop&outreach
---
playbooks/templates/nginx-confdnestedincludes-ssl-conf.j2 | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/playbooks/templates/nginx-confdnestedincludes-ssl-conf.j2 b/playbooks/templates/nginx-confdnestedincludes-ssl-conf.j2
index cc323a39..940af0e2 100644
--- a/playbooks/templates/nginx-confdnestedincludes-ssl-conf.j2
+++ b/playbooks/templates/nginx-confdnestedincludes-ssl-conf.j2
@@ -10,6 +10,10 @@ ssl_certificate_key {{ ssl_certificate_key_path }};
# http://nginx.org/en/docs/http/configuring_https_servers.html
ssl_prefer_server_ciphers on;
+ssl_protocols TLSv1.2 TLSv1.3;
+ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305;
+
+
# HTTP Strict Transport Security (HSTS)
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
From f806daf26d06ed5e97a74dc93ea1ee7d3d7b69fe Mon Sep 17 00:00:00 2001
From: pwalczysko
Date: Fri, 13 Dec 2024 15:36:30 +0000
Subject: [PATCH 16/20] Remove unused jinja files for sls-gallery and learning
---
playbooks/files/learning-omero-web.conf | 52 ----------------------
playbooks/files/sls-gallery-omero-web.conf | 48 --------------------
2 files changed, 100 deletions(-)
delete mode 100644 playbooks/files/learning-omero-web.conf
delete mode 100644 playbooks/files/sls-gallery-omero-web.conf
diff --git a/playbooks/files/learning-omero-web.conf b/playbooks/files/learning-omero-web.conf
deleted file mode 100644
index 9bbf914e..00000000
--- a/playbooks/files/learning-omero-web.conf
+++ /dev/null
@@ -1,52 +0,0 @@
-server {
- listen 80;
- server_name learning.openmicroscopy.org;
- return 301 https://$server_name$request_uri;
-}
-
-server {
- listen 443 ssl;
- server_name learning.openmicroscopy.org;
-
- ssl_certificate /etc/pki/tls/certs/star_openmicroscopy_org.crt+bundle;
- ssl_certificate_key /etc/pki/tls/private/star_openmicroscopy_org.key;
- ssl_protocols TLSv1.2;
-
- add_header Strict-Transport-Security "max-age=31536000" always;
-
- sendfile on;
- client_max_body_size 0;
-
- location / {
- rewrite ^/$ /dundee/ permanent;
- }
-
- location /schools {
- rewrite ^ /dundee/ permanent;
- }
-
- location /dundee {
- error_page 502 @maintenance;
- # checks for static file, if not found proxy to app
- try_files $uri @proxy_to_app;
- }
-
- location /dundee/static {
- alias /opt/omero/web/OMERO.web/var/static;
- }
-
- location @maintenance {
- root /opt/omero/server/OMERO.server/etc/templates/error;
- try_files $uri /maintainance.html =502;
- }
-
- location @proxy_to_app {
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $http_host;
- proxy_redirect off;
- proxy_buffering off;
-
- proxy_pass http://127.0.0.1:4080;
- }
-}
diff --git a/playbooks/files/sls-gallery-omero-web.conf b/playbooks/files/sls-gallery-omero-web.conf
deleted file mode 100644
index e24ec719..00000000
--- a/playbooks/files/sls-gallery-omero-web.conf
+++ /dev/null
@@ -1,48 +0,0 @@
-server {
- listen 80;
- server_name sls-repo.openmicroscopy.org;
- return 301 https://$server_name$request_uri;
-}
-
-server {
- listen 443 ssl;
- server_name sls-repo.openmicroscopy.org;
-
- ssl_certificate /etc/pki/tls/certs/star_openmicroscopy_org.crt+bundle;
- ssl_certificate_key /etc/pki/tls/private/star_openmicroscopy_org.key;
- ssl_protocols TLSv1.2;
-
- add_header Strict-Transport-Security "max-age=31536000" always;
-
- sendfile on;
- client_max_body_size 0;
-
- location / {
- rewrite ^/$ /ome-sls/ permanent;
- }
-
- location /ome-sls {
- error_page 502 @maintenance;
- # checks for static file, if not found proxy to app
- try_files $uri @proxy_to_app;
- }
-
- location /ome-sls/static {
- alias /opt/omero/web/OMERO.web/var/static;
- }
-
- location @maintenance {
- root /opt/omero/server/OMERO.server/etc/templates/error;
- try_files $uri /maintainance.html =502;
- }
-
- location @proxy_to_app {
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $http_host;
- proxy_redirect off;
- proxy_buffering off;
-
- proxy_pass http://127.0.0.1:4080;
- }
-}
From 02723b461745dfa2b3510fc94bb40276e2867a5e Mon Sep 17 00:00:00 2001
From: pwalczysko
Date: Fri, 13 Dec 2024 15:39:15 +0000
Subject: [PATCH 17/20] Introduce nginx_version: 1.26.2 variable in demo
playbook
---
playbooks/ome-demoserver.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/playbooks/ome-demoserver.yml b/playbooks/ome-demoserver.yml
index 2548c499..386116fe 100644
--- a/playbooks/ome-demoserver.yml
+++ b/playbooks/ome-demoserver.yml
@@ -209,6 +209,7 @@
force: true
vars:
+ nginx_version: 1.26.2
omero_figure_release: >-
{{ omero_figure_release_override | default('7.2.0') }}
omero_figure_script_release: >-
From 9005c5f4316567eb42f97625c5129d1531a0e1d8 Mon Sep 17 00:00:00 2001
From: pwalczysko
Date: Mon, 16 Dec 2024 16:08:02 +0000
Subject: [PATCH 18/20] Bump web and server on demo
---
playbooks/ome-demoserver.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/playbooks/ome-demoserver.yml b/playbooks/ome-demoserver.yml
index 386116fe..bcfc7d42 100644
--- a/playbooks/ome-demoserver.yml
+++ b/playbooks/ome-demoserver.yml
@@ -228,8 +228,8 @@
{{ omero_signup_release_override | default('0.3.3') }}
omero_server_release: >-
- {{ omero_server_release_override | default('5.6.13') }}
- omero_web_release: "{{ omero_web_release_override | default('5.27.2') }}"
+ {{ omero_server_release_override | default('5.6.14') }}
+ omero_web_release: "{{ omero_web_release_override | default('5.28.0') }}"
omero_py_release: "{{ omero_py_release_override | default('5.19.5') }}"
# For https://github.com/openmicroscopy/ansible-role-java,
# which is a dependency.
From 57171f3d0680984c2e38b1a12b7fbba46750c9a9 Mon Sep 17 00:00:00 2001
From: pwalczysko
Date: Mon, 16 Dec 2024 16:34:54 +0000
Subject: [PATCH 19/20] Change the target owner of the figure_scripts dir to be
omero-server
---
playbooks/ome-demoserver.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/playbooks/ome-demoserver.yml b/playbooks/ome-demoserver.yml
index bcfc7d42..cdbc699a 100644
--- a/playbooks/ome-demoserver.yml
+++ b/playbooks/ome-demoserver.yml
@@ -193,7 +193,8 @@
state: directory
mode: 0755
recurse: true
- owner: root
+ owner: "omero-server"
+ group: "omero-server"
- name: Download the Figure_To_Pdf.py script
become: true
From f61fe856fbf4f38819863de49301a0c1ca8d1424 Mon Sep 17 00:00:00 2001
From: William Moore
Date: Fri, 10 Jan 2025 11:54:43 +0000
Subject: [PATCH 20/20] Bump omero-figure 7.2.1
---
playbooks/ome-demoserver.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/playbooks/ome-demoserver.yml b/playbooks/ome-demoserver.yml
index cdbc699a..99db8aa4 100644
--- a/playbooks/ome-demoserver.yml
+++ b/playbooks/ome-demoserver.yml
@@ -212,9 +212,9 @@
vars:
nginx_version: 1.26.2
omero_figure_release: >-
- {{ omero_figure_release_override | default('7.2.0') }}
+ {{ omero_figure_release_override | default('7.2.1') }}
omero_figure_script_release: >-
- {{ omero_figure_script_release_override | default('v7.2.0') }}
+ {{ omero_figure_script_release_override | default('v7.2.1') }}
omero_fpbioimage_release: >-
{{ omero_fpbioimage_release_override | default('0.4.1') }}
omero_iviewer_release: >-