You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ To use Girder Worker:
33
33
34
34
.. code-block:: bash
35
35
36
-
pip install girder-slicer-cli-web[worker]
36
+
pip install 'girder-slicer-cli-web[worker]'
37
37
GW_DIRECT_PATHS=true girder_worker -l info -Ofair --prefetch-multiplier=1
38
38
39
39
The first time you start Girder, you'll need to configure it with at least one user and one assetstore (see the Girder_ documentation). Additionally, it is recommended that you install some dockerized tasks, such as the HistomicsTK_ algorithms. This can be done going to the Admin Console, Plugins, Slicer CLI Web settings. Set a default task upload folder, then import the ``dsarchive/histomicstk:latest`` docker image.
@@ -44,9 +44,24 @@ Girder Plugin
44
44
Importing Docker Images
45
45
=======================
46
46
47
-
When installed in Girder, an admin user can go to the Admin Console -> Plugins -> Slicer CLI Web to add Docker images. Select a Docker image and an existing folder and then select Import Image. Slicer CLI Web will pull the Docker image if it is not available on the Girder machine.
47
+
Once a docker image has been created and pushed to Docker Hub, you can register the image's CLI as a set of tasks on the server. To do so,
48
+
use the client upload script bundled with this tool. To install it, run:
49
+
50
+
.. code-block:: bash
51
+
52
+
pip install 'girder-slicer-cli-web[client]'
53
+
54
+
Create an API key with the "Manage Slicer CLI tasks" scope, and set it in your environment and run a command like this example:
The first argument of this command is the API URL of the server, the second is a Girder folder ID where the tasks will live, and the
61
+
last argument is the docker image identifier. (If the image does not exist locally it will be pulled.) If you just want to create a
62
+
single CLI task rather than all tasks from ``--list_cli``, you can pass ``--cli=CliName``. If you wish to replace the existing tasks
63
+
with the latest specifications, also pass the ``--replace`` flag to the command.
48
64
49
-
For each docker image that is imported, a folder is created with the image tag. Within this folder, a subfolder is created with the image version. The subfolder will have one item per CLI that the Docker image reports. These items can be moved after they have been imported, just like standard Girder items.
0 commit comments