Skip to content

Commit

Permalink
Install patched version of iRODS 4.2.12 library
Browse files Browse the repository at this point in the history
  • Loading branch information
stsnel committed Jan 19, 2024
1 parent 6fc7271 commit 6909c41
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/images/yoda_irods_icat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ RUN yum install -y wget git sudo && \
yum -y install "$package-${IRODS_INDEX_VERSION}" && yum clean all; \
done && \
yum -y install "irods-rule-engine-plugin-python-${IRODS_PREP_VERSION}" && \
yum clean all
yum clean all && \
wget https://yoda.uu.nl/irods-patches/libirods_server.so.4.2.12 && \
install -m 0644 libirods_server.so.4.2.12 /usr/lib/libirods_server.so.4.2.12

# Install iRODS microservices for Yoda and their dependencies
# hadolint ignore=DL3033
Expand Down
4 changes: 4 additions & 0 deletions roles/irods_runtime/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
# copyright Utrecht University

irods_service_account: irods
7 changes: 7 additions & 0 deletions roles/irods_runtime/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
# copyright Utrecht University

- name: Restart iRODS
ansible.builtin.service:
name: irods
state: restarted
20 changes: 20 additions & 0 deletions roles/irods_runtime/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,23 @@
ansible.builtin.package:
name: irods-runtime-4.2.12-1
state: present


- name: Determine current checksum of irods_server library
ansible.builtin.command: "sha256sum /usr/lib/libirods_server.so.4.2.12"
register: libirods_server_checksum
changed_when: false


- name: Install local patch for iRODS 4.2.12
ansible.builtin.get_url:
url: https://yoda.uu.nl/irods-patches/libirods_server.so.4.2.12
dest: /usr/lib/libirods_server.so.4.2.12
checksum: sha256:11bb77ff1f17faac1052b891cf6d75a0f55a55814a4ecbad53e1469aca96c1d2
owner: '{{ irods_service_account }}'
group: '{{ irods_service_account }}'
mode: '0644'
force: true
backup: true
notify: Restart iRODS
when: libirods_server_checksum.stdout.split()[0] != '11bb77ff1f17faac1052b891cf6d75a0f55a55814a4ecbad53e1469aca96c1d2'

0 comments on commit 6909c41

Please # to comment.