Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed target folder for slurm-config.ini in description #10

Merged
merged 2 commits into from
May 1, 2024

Conversation

jo-mueller
Copy link
Contributor

Some minor additions to the documentation according to what was discussed in this image.sc issue

@@ -101,8 +101,10 @@ To connect an OMERO processor to a Slurm cluster using the `biomero` library, us
- `/etc/slurm-config.ini`
- `~/slurm-config.ini`

*Note*: Make sure to place the `slurm-config.ini` in the target folder at build time of your docker container instead of mounting it at runtime. This is because the library reads the config file at import time, and if it is not found, it will not work.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure?
This seem questionable to me, because as of yet we do not run any part of this library automatically (e.g. when starting OMERO), so why would the SlurmClient already be started anywhere?

However, we do add it to the container also, just override it with the mount. So your note might still be applicable.

For example, we use

# Run the biomero container
echo "Starting BIOMERO..."
podman run -d --rm --name biomero \
  -e CONFIG_omero_master_host=omeroserver \
  -e OMERO_WORKER_NAME=biomero \
  -e CONFIG_omero_scripts_timeout=604800000 \
  --network omero \
  --volume /mnt/...:/OMERO \
  --volume /mnt/...:/data \
  --volume /.../slurm-config.ini:/etc/slurm-config.ini \
  --secret ssh-config,target=/tmp/.ssh/config --secret ssh-key,target=/tmp/.ssh/id_rsa --secret ssh-pubkey,target=/tmp/.ssh/id_rsa.pub  --secret ssh-known_hosts,target=/tmp/.ssh/known_hosts \
  --userns=keep-id:uid=1000,gid=997 \
  cellularimagingcf/biomero:"$NL_BIOMERO_VERSION"

Where we mount the specific config for that environment at runtime.

@TorecLuik TorecLuik merged commit 6e71ebb into NL-BioImaging:main May 1, 2024
3 checks passed
@jo-mueller jo-mueller deleted the refine-readme branch May 7, 2024 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants