-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from khaledk2/new_ms_release
New ms release
- Loading branch information
Showing
11 changed files
with
95 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
OMERO MS Image Region | ||
===================== | ||
|
||
[![Actions Status](https://github.com/ome/ansible-role-omero-server/workflows/Molecule/badge.svg)](https://github.com/ome/ansible-role-omero-server/actions) | ||
[![Ansible Role](https://img.shields.io/badge/ansible--galaxy-omero_ms_image_region-blue.svg)](https://galaxy.ansible.com/ui/standalone/roles/ome/omero_server/) | ||
[![Actions Status](https://github.com/ome/ansible-role-omero-ms-image-region/workflows/Molecule/badge.svg)](https://github.com/ome/ansible-role-omero-ms-image-region/actions) | ||
[![Ansible Role](https://img.shields.io/badge/ansible-galaxy-omero_ms_image_region-blue.svg)](https://galaxy.ansible.com/ui/standalone/roles/ome/omero_ms_image_region/) | ||
|
||
Installs and configures OMERO ms image region | ||
Installs and configures the OMERO microservice image region. | ||
|
||
Dependencies | ||
------------ | ||
|
@@ -15,31 +15,31 @@ OMERO.server and OMERO.web are required. | |
Role Variables | ||
-------------- | ||
|
||
- omero_ms_image_region_user: Microservice user, the defaults is 'omero-server' | ||
- omero_ms_image_region_folder: Microservice installation folder | ||
- omero_ms_image_region_port: Microservice port | ||
- omero_ms_image_region_db_url: OMERO database URL | ||
- omero_ms_image_region_db_port: OMERO database server port | ||
- omero_ms_image_region_db_name: OMERO database name | ||
- omero_ms_image_region_db_username: OMERO database user name | ||
- omero_ms_image_region_db_pass: OMERO database user password | ||
- omero_ms_image_region_log_level: Logging level, allowed values: ``info``, ``debug``, ``error`` | ||
- omero_data_dir: OMERO data folder | ||
- omero_script_repo_root: OMERO scripts folder | ||
- omero_ms_image_region_worker_pool_size: No of Microservice workers, the default is double the number of processors which the machine has | ||
- session_id: OMERO Session id, if you do not know it, you may get it using this command: | ||
- omero_ms_image_region_max_active_channels: Max number of channels to allow per request default is 10 | ||
- `omero_ms_image_region_user`: The microservice user, the default is `omero-server` | ||
- `omero_ms_image_region_folder`: The microservice installation folder | ||
- `omero_ms_image_region_port`: The microservice port | ||
- `omero_ms_image_region_db_url`: The OMERO database URL | ||
- `omero_ms_image_region_db_port`: The OMERO database server port | ||
- `omero_ms_image_region_db_name`: The OMERO database name | ||
- `omero_ms_image_region_db_username`: The OMERO database user name | ||
- `omero_ms_image_region_db_pass`: The OMERO database user password | ||
- `omero_ms_image_region_log_level`: The logging level, allowed values: ``info``, ``debug``, ``error`` | ||
- `omero_data_dir`: The OMERO data folder | ||
- `omero_script_repo_root`: The OMERO scripts folder | ||
- `omero_ms_image_region_worker_pool_size`: Number of microservice workers, the default is double the number of available processors | ||
- `session_id`: The OMERO session identifier, if you do not know it, you may get it using this command: | ||
|
||
/opt/omero/web/OMERO.web/bin/omero config get omero.web.session_cookie_name | ||
/opt/omero/web/OMERO.web/bin/omero config get omero.web.session_cookie_name | ||
|
||
- omero_ms_image_region_update_nginx: if false, it will not update the nginx config file | ||
- `omero_ms_image_region_max_active_channels`: The maximum number of channels to allow per request, the default is `10` | ||
- `omero_ms_image_region_update_nginx`: if set to `false`, it will not update the NGINX configuration file | ||
- `omero_ms_image_region_download_URL`: The download URL for the distributed microservice build (zip file) | ||
- `omero_ms_image_region_package_sha256`: The sha256 for the distributed microservice build | ||
- `java_version`: The Java version matching the server version. Supported versions are 11, 17 and 21 | ||
|
||
- omero_ms_image_region_download_URL: The download URl for the distibuted ms build (zip file) | ||
- omero_ms_image_region_package_sha256: The sha256 for the distibuted ms build | ||
|
||
The ms build should be compatible with the installed OMERO.server, i.e.: | ||
- The bio-format version for the Microservice should match the Bio-Formats version of the OMERO.server | ||
- Also, in case of using ngff data, the version of OMEZarrReader should be the same for both of the Microsevice and the OMERO.server. | ||
The microservice build **must be compatible** with the installed OMERO.server: | ||
- The Bio-Formats version used in the microservice must match the Bio-Formats version of the OMERO.server. | ||
- Also, in the case of using NGFF data, the version of OMEZarrReader should be the same for both the Microsevice and the OMERO.server. | ||
|
||
Example Playbook | ||
---------------- | ||
|
@@ -48,3 +48,33 @@ Example Playbook | |
roles: | ||
- role: ome.omero_ms_image_region | ||
omero_ms_image_region_update_nginx: true | ||
|
||
Another example: | ||
---------------- | ||
The following example is used to deploy in multiple nodes and configure the microservice download url and other roles variables. | ||
For example, it can be used to deploy the microservice on the IDR omeroreadonly servers. The variable values inside the playbook should be modified for the IDR environment in which the microservice will be deployed. | ||
|
||
- hosts: nodes | ||
become: true | ||
|
||
roles: | ||
- role: ome.omero_ms_image_region | ||
omero_ms_image_region_update_nginx: true | ||
omero_ms_image_region_db_url: databse_url | ||
omero_ms_image_region_db_name: database_name | ||
omero_ms_image_region_db_username: database_username | ||
omero_ms_image_region_db_pass: database_password | ||
omero_data_dir: /data/OMERO | ||
omero_ms_image_region_session_id: sessionid | ||
# URL pointing to the micro service omero-ms-region-download | ||
# It is important to have a version of the micro service using a version of Bio-Formats and OMEZarrReader that | ||
# match the versions running on the server | ||
omero_ms_image_region_download_URL: 'https://github.com/ome/omero-ms-image-region/releases/download/2024.07.15/omero-ms-image-region-0.10.0_b16.zip' | ||
# sha256 for the Latest build | ||
omero_ms_image_region_package_sha256: 77bd3df2241c2beb439001fb00bfd8b207a06de63b8ee78c7170916d6dde963e | ||
|
||
|
||
Author Information | ||
------------------ | ||
|
||
[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
- src: ome.omero_server | ||
- src: ome.postgresql | ||
- src: ome.omero_web | ||
- src: ome.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#! /bin/bash | ||
sudo -u {{ omero_ms_image_region_user }} JAVA_OPTS="-Dlogback.configurationFile=conf/logback.xml" bash bin/omero-ms-image-region | ||
JAVA_OPTS="-Dlogback.configurationFile=conf/logback.xml" bash bin/omero-ms-image-region |
This file was deleted.
Oops, something went wrong.