https://github.com/bihealth/irods-docker
iRODS Docker image for use with SODAR
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.3%) to scientific vocabulary
Repository
iRODS Docker image for use with SODAR
Basic Info
Statistics
- Stars: 2
- Watchers: 6
- Forks: 2
- Open Issues: 10
- Releases: 3
Metadata Files
README.md
Dockerized iRODS
This repository contains the necessary files to build an iRODS Docker image based on Ubuntu 20.04. The code is based on hurngchunlee/docker-irods.
The image contains features specific to our SODAR system, but using them is optional and the image also works as a generic iRODS server.
This image uses the Python rule engine for rules. For enabling legacy or C++ engines, the user needs to provide their own rule files and add relevant changes to server_config.json.
Images are built and tagged for a specific iRODS release. The most recent build is tested to be compatible with iRODS version 4.3.3. Our goal is to keep up with the most recent major release of iRODS. Updates for older major versions will not be made.
NOTE: Images built for iRODS v4.3.x are not compatible with iRODS v4.2 or below. See below for instructions on upgrading from an older iRODS v4.2 build of this image.
Data Persistency
Each container exposes volumes for data persistency. The list of volumes are provided in the table below:
| path in container | usage | |---------------------------------|---------------------------------| | /etc/irods | Server configuration |
For iRODS services, the setup script (/var/lib/irods/scripts/setup_irods.py) is only executed when the file /etc/irods/.provisioned is not present.
The file /etc/irods/.provisioned is created when the setup script is executed successfully.
Commands
The following commands are available.
If you specify anything else then the startup script will exec this command (e.g., bash).
irods-start(default) -- Start iRODS server
Environment Variables
There are several environment variables can be set for setting up iRODS. The variables are feeded into the iRODS setup script (/var/lib/irods/scripts/setup_irods.py) for the first startup. They are summarised below.
iRODS can be run in either "provider" mode, which installs an iCAT catalogue server, or "consumer" mode which only installs a resource server to be used with a remote iRODS provider. The "role" column shows for which role(s) each variable is used.
NOTE: Environment variables used to configure the iRODS server only take effect when initially provisioning the server. After provisioning, they will not change on the existing server without manually editing iRODS configuration files. If in doubt, see what variables are used to populate the unattended configuration file.
The SSSD and SODAR auth settings, as well as the password minimum time setting, can be changed on an already provisioned server.
| Variable name | Default Value | Role | |----------------------------------|----------------------------------|------------| | IRODSPKGVERSION | 4.3.3 | both | | IRODSPYTHONRULEENGINEVERSION | 4.3.3.0-0+4.3.3 | both | | IRODSROLE | provider | both | | IRODSHOSTNAME | localhost | both | | IRODSSERVICEACCOUNTUSER | irods | both | | IRODSSERVICEACCOUNTGROUP | irods | both | | IRODSSERVICEACCOUNTUID | 1000 | both | | IRODSSERVICEACCOUNTGID | 1000 | both | | IRODSADMINUSER | rods | both | | IRODSADMINPASS | rods | both | | IRODSZONENAME | demoZone | both | | IRODSZONEPORT | 1247 | both | | IRODSZONEKEY | TEMPORARYzonekey | both | | IRODSNEGOTIATIONKEY | TEMPORARY32bytenegotiationkey | both | | IRODSCONTROLPLANEPORT | 1248 | both | | IRODSCONTROLPLANEKEY | TEMPORARY_32bytectrlplanekey | both | | IRODSDATAPORTRANGESTART | 20000 | both | | IRODSDATAPORTRANGEEND | 20199 | both | | IRODSSSLCERTIFICATECHAINFILE | /etc/irods/server.crt | both | | IRODSSSLCERTIFICATEKEYFILE | /etc/irods/server.key | both | | IRODSSSLDHPARAMSFILE | /etc/irods/dhparams.pem | both | | IRODSSSLVERIFYSERVER | none | both | | IRODSPASSWORDSALT | tempsalt | both | | IRODSSSLCACERTPATH | | both | | IRODSCLIENTSERVERNEGOTIATION | requestservernegotiation | both | | IRODSCLIENTSERVERPOLICY | CSNEGREFUSE | both | | IRODSDEFAULTRESOURCENAME | demoResc | both | | IRODSRESOURCEDIRECTORY | /data/Vault | both | | IRODSDEFAULTHASHSCHEME | SHA256 | both | | IRODSODBCDRIVER | PostgreSQL Unicode | provider | | IRODSICATDBSERVER | postgres | provider | | IRODSICATDBPORT | 5432 | provider | | IRODSICATDBNAME | ICAT | provider | | IRODSICATDBUSER | irods | provider | | IRODSICATDBPASS | irods | provider | | IRODSSSSDAUTH | 0 | provider | | IRODSSODARAUTH | 0 | provider | | IRODSPASSWORDMINTIME | 1209600 | provider | | IRODSCATALOGPROVIDER_HOST | | consumer |
SSSD Support
In addition to the base image, we provide the images ${VERSION}-sssd (e.g., 4.3.3-1-sssd) which have SSSD installed.
You will have to share /var/lib/sss between the SSSD container and iRODS so both containers can communicate.
In our installations, we run bihealth/sssd-docker in a second container.
Upgrading From iRODS 4.2
See sodar-docker-compose for upgrade instructions.
Troubleshooting
v4.3
Releases of this image for iRODS v4.3.x require PostgreSQL v12 or newer. Installations with PostgreSQL v11 no longer work.
v4.2
A previous version of this image was built on CentOS7 instead of Ubuntu. If updating or redeploying an existing installation, you may encounter the following error connecting to the iRODS database: [unixODBC][Driver Manager]Data source name not found, and no default driver specified
To fix this, first edit the file /etc/irods/server_config.json. Find the variable db_odbc_driver and change its value from PostgreSQL to PostgreSQL Unicode.
Next, do the same modification for the environment variable IRODS_ODBC_DRIVER. After restarting the image, iRODS should work normally.
Building (for Developers)
To build the image, use the following command:
bash
$ IRODS_PKG_VERSION=x.x.x IRODS_PYTHON_RULE_ENGINE_VERSION=y.y.y BUILD_VERSION=z ./build.sh
Releases and images are tagged with the iRODS server version followed by the image build version. This means that e.g. the initial release for iRODS 4.3.3 will be tagged as 4.3.3-1. Fixes or improvements to that release would then be published as 4.3.3-2.
Note that if you are providing a non-default iRODS version, you will also have to provide the irods-rule-engine-plugin-python version number with the IRODS_PYTHON_RULE_ENGINE_VERSION env var. This package does not follow the same versioning conventions as the main iRODS packages. The value is expected to be the full version name without the ~focal suffix. You can find the available versions e.g. by running apt-cache madison irods-rule-engine-plugin-python.
Owner
- Name: Berlin Institute of Health
- Login: bihealth
- Kind: organization
- Website: https://www.cubi.bihealth.org/
- Repositories: 215
- Profile: https://github.com/bihealth
BIH Core Unit Bioinformatics & BIH HPC IT
GitHub Events
Total
- Create event: 4
- Commit comment event: 1
- Release event: 2
- Issues event: 54
- Watch event: 1
- Delete event: 2
- Issue comment event: 56
- Push event: 27
- Pull request event: 4
- Fork event: 2
Last Year
- Create event: 4
- Commit comment event: 1
- Release event: 2
- Issues event: 54
- Watch event: 1
- Delete event: 2
- Issue comment event: 56
- Push event: 27
- Pull request event: 4
- Fork event: 2
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 16
- Total pull requests: 1
- Average time to close issues: 6 months
- Average time to close pull requests: less than a minute
- Total issue authors: 3
- Total pull request authors: 1
- Average comments per issue: 0.88
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 14
- Pull requests: 1
- Average time to close issues: 2 days
- Average time to close pull requests: less than a minute
- Issue authors: 3
- Pull request authors: 1
- Average comments per issue: 0.79
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- mikkonie (39)
- messersc (2)
- mkuhring (2)
Pull Request Authors
- mikkonie (1)
- trel (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- main latest build
- ubuntu 18.04 build