annotate README.rst @ 0:3d41fa089db7 draft

planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
author mbernt
date Sun, 06 Aug 2023 15:20:57 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
1 Note to admins:
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
2 ===============
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
3
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
4 These tool allow users to execute arbitrary scripts in containers
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
5 (with singularity or apptainer). The interpreter (python, Rscript,
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
6 bash, ...) and the containers is configured by the admin using the
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
7 ``scripting_images`` data table.
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
8
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
9 A basic level of security comes by the execution in containers.
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
10 Additional parameters that should be passed to the container engine
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
11 can be configured.
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
12
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
13 Admins should consider the following points:
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
14
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
15 - Passing the ``--cleanenv`` variable is certainy a good idea.
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
16 - The tool will mount the galaxy files dir for reading and only the
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
17 job working dir should be writable (might depend on your configuraion).
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
18 It's advisable to use the ``--no-mount`` option to disable additional
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
19 mounts that might be writable.
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
20 - Maybe disable or limit network usage, eg. for singularity ``--network none``
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
21
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
22 This tool has been inspired by the [scriptrunner](https://github.com/ARTbio/docker-scriptrunner/blob/master/scriptrunner.xml) tool
3d41fa089db7 planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff changeset
23 which works with docker.