Skip to content

Commit

Permalink
Remove DAX plugin (#163)
Browse files Browse the repository at this point in the history
Fixes #95 

- remove DAX, Container Service, and Batch Launch plugins from list of
default XNAT plugin
- add these plugins as server-specific plugins in molecule tests
  • Loading branch information
p-j-smith authored Feb 4, 2025
1 parent 866191a commit d5ab1fc
Show file tree
Hide file tree
Showing 23 changed files with 66 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/molecule-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
molecule-docker:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/molecule-firewalld.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
molecule-firewalld:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/molecule-install-omero.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ concurrency:
jobs:
molecule-install-omero:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
MOLECULE_RUN_TAGS: all
PY_COLORS: 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/molecule-install-xnat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ concurrency:
jobs:
molecule-install-xnat:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/molecule-java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
molecule-java:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/molecule-monitoring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
molecule-monitoring:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/molecule-nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
molecule-nginx:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/molecule-postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
molecule-postgresql:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/molecule-postgresql_upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
molecule-postgresql-upgrade:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/molecule-provision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
molecule-provision:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/molecule-provision_accounts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
molecule-provision-accounts:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/molecule-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
molecule-python:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/molecule-tomcat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
molecule-tomcat:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
Expand Down
62 changes: 34 additions & 28 deletions .renovaterc.json5
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"xnatdev/xnat-web",
"xnatdev/xsync",
"xnatx/ldap-auth-plugin",
"xnatdev/container-service",
"xnatx/xnatx-batch-launch-plugin",
"VUIIS/dax",
"icrimaginginformatics/ohif-viewer-xnat-plugin",
"xnatx/ml-plugin",
"xnatx/datasets-plugin",
"xnatdev/xnat-image-viewer-plugin",
"xnatx/xnatx-dxm-settings-plugin",
"NrgXnat/xnat-pipeline-engine",
"xnatdev/container-service",
"xnatx/xnatx-batch-launch-plugin",
"VUIIS/dax",
],
groupName: "xnat",
versioning: "loose",
Expand All @@ -46,7 +46,7 @@
"VUIIS-dax": {
defaultRegistryUrlTemplate: "https://api.github.com/repos/VUIIS/dax/contents/misc/xnat-plugins",
transformTemplates: [
'{"releases": $.{"version": $join(["v", $match(name, /(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)/ ).match ])}}',
'{"releases": $.{"version": $match(name, /(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)/ ).match }}',
],
},
},
Expand Down Expand Up @@ -83,30 +83,6 @@
depNameTemplate: "xnatx/ldap-auth-plugin",
datasourceTemplate: "bitbucket-tags",
},
{
customType: "regex",
description: "Update XNAT Container Service plugin version specified in roles/xnat/defaults/main.yml",
fileMatch: ["roles/xnat/defaults/main.yml$"],
matchStrings: ["container-service-(?<currentValue>.*?)-fat.jar"],
depNameTemplate: "xnatdev/container-service",
datasourceTemplate: "bitbucket-tags",
},
{
customType: "regex",
description: "Update XNAT batch launch plugin version specified in roles/xnat/defaults/main.yml",
fileMatch: ["roles/xnat/defaults/main.yml$"],
matchStrings: ["batch-launch-(?<currentValue>.*?).jar"],
depNameTemplate: "xnatx/xnatx-batch-launch-plugin",
datasourceTemplate: "bitbucket-tags",
},
{
customType: "regex",
description: "Update XNAT dax plugin specified in roles/xnat/defaults/main.yml",
fileMatch: ["roles/xnat/defaults/main.yml$"],
matchStrings: ["dax-plugin-genProcData-(?<currentValue>.*?).jar"],
depNameTemplate: "VUIIS/dax",
datasourceTemplate: "custom.VUIIS-dax",
},
{
customType: "regex",
description: "Update OHIF Viewer plugin version specified in roles/xnat/defaults/main.yml",
Expand Down Expand Up @@ -155,5 +131,35 @@
depNameTemplate: "NrgXnat/xnat-pipeline-engine",
datasourceTemplate: "github-releases",
},
{
customType: "regex",
description: "Update XNAT Container Service plugin version used for testing with molecule",
fileMatch: [
"playbooks/molecule/resources/xnat/inventory/group_vars/all/server.yml$",
],
matchStrings: ["container-service-(?<currentValue>.*?)-fat.jar"],
depNameTemplate: "xnatdev/container-service",
datasourceTemplate: "bitbucket-tags",
},
{
customType: "regex",
description: "Update XNAT batch launch plugin version used for testing with molecule",
fileMatch: [
"playbooks/molecule/resources/xnat/inventory/group_vars/all/server.yml$",
],
matchStrings: ["batch-launch-(?<currentValue>.*?).jar"],
depNameTemplate: "xnatx/xnatx-batch-launch-plugin",
datasourceTemplate: "bitbucket-tags",
},
{
customType: "regex",
description: "Update XNAT dax plugin used for testing with molecule",
fileMatch: [
"playbooks/molecule/resources/xnat/inventory/group_vars/all/server.yml$",
],
matchStrings: ["dax-plugin-genProcData-(?<currentValue>.*?).jar"],
depNameTemplate: "VUIIS/dax",
datasourceTemplate: "custom.VUIIS-dax",
},
],
}
2 changes: 2 additions & 0 deletions molecule_configs/centos7_base_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ provisioner:
verify: ../resources/verify.yml
env:
ANSIBLE_VERBOSITY: "1"
ANSIBLE_ROLES_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../../roles/:~/.ansible/roles
ANSIBLE_COLLECTIONS_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../../../../../:~/.ansible/collections

verifier:
name: ansible
Expand Down
2 changes: 2 additions & 0 deletions molecule_configs/rocky9_base_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ provisioner:
verify: ../resources/verify.yml
env:
ANSIBLE_VERBOSITY: "1"
ANSIBLE_ROLES_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../../roles/:~/.ansible/roles
ANSIBLE_COLLECTIONS_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../../../../../:~/.ansible/collections

verifier:
name: ansible
Expand Down
2 changes: 2 additions & 0 deletions playbooks/molecule/centos7_monitoring/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ provisioner:
verify: ../resources/monitoring/verify.yml
env:
ANSIBLE_VERBOSITY: "1"
ANSIBLE_ROLES_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../roles/:~/.ansible/roles
ANSIBLE_COLLECTIONS_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../../../../:~/.ansible/collections

verifier:
name: ansible
Expand Down
2 changes: 2 additions & 0 deletions playbooks/molecule/centos7_xnat/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ provisioner:
verify: ../resources/xnat/verify.yml
env:
ANSIBLE_VERBOSITY: 1
ANSIBLE_ROLES_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../roles/:~/.ansible/roles
ANSIBLE_COLLECTIONS_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../../../../:~/.ansible/collections

lint: |
set -e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ xnat_config:
site_name: MIRSG_XNAT
site_description: <h1>MIRSG XNAT</h1><p>A test instance of XNAT.
admin_password: "{{ vault_admin_password }}"

xnat_server_specific_plugin_urls:
- https://api.bitbucket.org/2.0/repositories/xnatdev/container-service/downloads/container-service-3.6.2-fat.jar
- https://api.bitbucket.org/2.0/repositories/xnatx/xnatx-batch-launch-plugin/downloads/batch-launch-0.7.0.jar
- https://github.com/VUIIS/dax/raw/main/misc/xnat-plugins/dax-plugin-genProcData-1.4.2.jar
2 changes: 2 additions & 0 deletions playbooks/molecule/rocky8_omero/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ provisioner:
verify: ../resources/omero/verify.yml
env:
ANSIBLE_VERBOSITY: "1"
ANSIBLE_ROLES_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../roles/:~/.ansible/roles
ANSIBLE_COLLECTIONS_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../../../../:~/.ansible/collections

verifier:
name: ansible
Expand Down
2 changes: 2 additions & 0 deletions playbooks/molecule/rocky9_monitoring/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ provisioner:
verify: ../resources/monitoring/verify.yml
env:
ANSIBLE_VERBOSITY: "1"
ANSIBLE_ROLES_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../roles/:~/.ansible/roles
ANSIBLE_COLLECTIONS_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../../../../:~/.ansible/collections

verifier:
name: ansible
Expand Down
2 changes: 2 additions & 0 deletions playbooks/molecule/rocky9_xnat/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ provisioner:
verify: ../resources/xnat/verify.yml
env:
ANSIBLE_VERBOSITY: "1"
ANSIBLE_ROLES_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../roles/:~/.ansible/roles
ANSIBLE_COLLECTIONS_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../../../../:~/.ansible/collections

verifier:
name: ansible
Expand Down
3 changes: 0 additions & 3 deletions roles/xnat/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ xnat_ldap_keystore_alias: ""
xnat_plugin_urls:
- https://api.bitbucket.org/2.0/repositories/xnatdev/xsync/downloads/xsync-plugin-all-1.8.1.jar
- https://api.bitbucket.org/2.0/repositories/xnatx/ldap-auth-plugin/downloads/ldap-auth-plugin-1.1.0.jar
- https://api.bitbucket.org/2.0/repositories/xnatdev/container-service/downloads/container-service-3.6.2-fat.jar
- https://api.bitbucket.org/2.0/repositories/xnatx/xnatx-batch-launch-plugin/downloads/batch-launch-0.7.0.jar
- https://github.com/VUIIS/dax/raw/main/misc/xnat-plugins/dax-plugin-genProcData-1.4.2.jar
- https://api.bitbucket.org/2.0/repositories/icrimaginginformatics/ohif-viewer-xnat-plugin/downloads/ohif-viewer-3.7.0-XNAT-1.8.10.jar
- https://api.bitbucket.org/2.0/repositories/xnatx/ml-schema-plugin/downloads/ml-schema-plugin-1.0.0.jar
- https://api.bitbucket.org/2.0/repositories/xnatx/datasets-schema-plugin/downloads/datasets-schema-plugin-1.0.0.jar
Expand Down

0 comments on commit d5ab1fc

Please sign in to comment.