Hello everyone,
I have a question.
Is it theoretically possible to process all files within a project using a container launched via the REST API? Does the container have access to the database (since I couldn’t find any information about this in the XNAT documentation)?
Would this approach cause any mounting or storage space issues?
Thank you very much for your support.
Best regards,
Bousfiha
Rick Herrick
Senior Software Developer
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/d20786bc-f451-44b4-8df9-be6dc9bd1b2dn%40googlegroups.com.
I’ve developed an automated Docker container script that dynamically generates the Dockerfile (linked to an external user script), creates a generic command.json for all cases, uploads everything to XNAT, and enables it via the REST API.
I selected the Project context and extracted all files within the project (including scans, subjects, and resources).
After running the workflow, the container launched successfully and reached the “Complete” status.
However, when checking the stdout, I found the message:
no input files
Interestingly, under the Container Information, all the extracted files were correctly listed — yet none of them actually reached the container.
This makes me suspect a mounting issue. Since the container completed successfully (and not with a “Failed upload file” error), I am unsure how to interpret this behavior. If it had failed during upload, I would have assumed the problem was with the output definition — but here, the input seems to be the issue.
Could you please help me understand how this situation could occur?
Thank you very much for your time and assistance.
Best regards,
Bousfiha
To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/2f9dbdee-7401-46c8-9be5-b75ec9137ce7n%40googlegroups.com.
Dear Flavin,
I have checked the XNAT Path Prefix (xnat/data/) and my Server Path Prefix (xnat/data), and they seem to match so far.
Within the experiment, I selected only one context in the JSON command: xnat:projectData.
I couldn’t select more than one output destination since only one context was defined — otherwise, the command would be rejected.
My goal with this setup is to have one container running at the xnat:projectData level that can still access and extract all files (using REST API calls) within the project, including those at the subject, session (MR/PET/CT), and scan levels.
I assume the container wasn’t able to receive any files because only one context (xnat:projectData) was defined in the JSON command. However, if I define multiple contexts, it seems I would need to launch multiple containers instead of just one.
Is my understanding correct?
Best regards
BousfihaTo view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/f321fc64-3406-4bac-9754-bf06e5cdf9dfn%40googlegroups.com.