Skip to content

Commit

Permalink
apptainer instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Feb 19, 2025
1 parent 628af79 commit d4368e7
Showing 1 changed file with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const TextLetterCountView: FunctionComponent<DatasetPluginProps> = ({
const [result, setResult] = useState<JobResult | null>(null);
const [error, setError] = useState<string | null>(null);

const input = useMemo(() => ({ fileUrl, version: 2 }), [fileUrl]);
const input = useMemo(() => ({ fileUrl, version: 3 }), [fileUrl]);

// Check for existing job on component mount
useEffect(() => {
Expand Down Expand Up @@ -179,7 +179,7 @@ const TextLetterCountView: FunctionComponent<DatasetPluginProps> = ({
}}
>
<div>
<p>To process this job using Docker:</p>
<p>To process this job using Docker or Apptainer:</p>
<code
style={{
display: "block",
Expand All @@ -189,8 +189,21 @@ const TextLetterCountView: FunctionComponent<DatasetPluginProps> = ({
marginBottom: "15px",
}}
>
docker run ghcr.io/flatironinstitute/neurosift-job-runner{" "}
{jobId}
docker run
ghcr.io/flatironinstitute/neurosift-job-runner:main-v2 {jobId}
</code>
<code
style={{
display: "block",
padding: "10px",
backgroundColor: "#fff",
overflowX: "auto",
marginBottom: "15px",
}}
>
apptainer exec
docker://ghcr.io/flatironinstitute/neurosift-job-runner:main-v2
python3 run-job.py {jobId}
</code>

<p>Or for local development:</p>
Expand Down

0 comments on commit d4368e7

Please sign in to comment.