Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
e361f207
Commit
e361f207
authored
8 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #9522: Run srun from Docker directly, without ssh to localhost
parent
dd111b38
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CEP/Pipeline/recipes/sip/pipeline.cfg.CEP4.tmpl
+2
-2
2 additions, 2 deletions
CEP/Pipeline/recipes/sip/pipeline.cfg.CEP4.tmpl
MAC/Services/src/PipelineControl.py
+1
-2
1 addition, 2 deletions
MAC/Services/src/PipelineControl.py
with
3 additions
and
4 deletions
CEP/Pipeline/recipes/sip/pipeline.cfg.CEP4.tmpl
+
2
−
2
View file @
e361f207
...
@@ -44,7 +44,7 @@ globalfs = yes
...
@@ -44,7 +44,7 @@ globalfs = yes
# We take the following path to start a remote container:
# We take the following path to start a remote container:
#
#
# [container]
--SSH--> [host]
--SRUN--> [worker node] --DOCKER--> [container]
# [container] --SRUN--> [worker node] --DOCKER--> [container]
#
#
# This path is needed because running SRUN from within the container needs a lot of cluster-specific infra
# This path is needed because running SRUN from within the container needs a lot of cluster-specific infra
# (SLURM config files, Munge keys, correct Munge user ID, munged).
# (SLURM config files, Munge keys, correct Munge user ID, munged).
...
@@ -70,4 +70,4 @@ globalfs = yes
...
@@ -70,4 +70,4 @@ globalfs = yes
# /bin/bash -c
# /bin/bash -c
#
#
# Required because the pipeline framework needs some bash functionality in the commands it starts.
# Required because the pipeline framework needs some bash functionality in the commands it starts.
cmdline =
ssh -n -tt -x localhost
srun --exclusive --ntasks=1 --cpus-per-task={nr_cores} --jobid={slurm_job_id} --job-name={job_name} docker-run-slurm.sh --rm -u {uid} -v /data:/data --net=host {docker_env} lofar-pipeline:${LOFAR_TAG} {command}
cmdline = srun --exclusive --ntasks=1 --cpus-per-task={nr_cores} --jobid={slurm_job_id} --job-name={job_name} docker-run-slurm.sh --rm -u {uid} -v /data:/data --net=host {docker_env} lofar-pipeline:${LOFAR_TAG} {command}
This diff is collapsed.
Click to expand it.
MAC/Services/src/PipelineControl.py
+
1
−
2
View file @
e361f207
...
@@ -485,8 +485,7 @@ wget -O - -q "http://ganglia.control.lofar/ganglia/api/events.php?action=add&sta
...
@@ -485,8 +485,7 @@ wget -O - -q "http://ganglia.control.lofar/ganglia/api/events.php?action=add&sta
# run the pipeline
# run the pipeline
runcmd docker-run-slurm.sh --rm --net=host
\
runcmd docker-run-slurm.sh --rm --net=host
\
-e LOFARENV={lofarenv}
\
-e LOFARENV={lofarenv}
\
-u $UID -e USER=$USER
\
-v $HOME/.ssh:$HOME/.ssh:ro
\
-e HOME=$HOME -v $HOME/.ssh:$HOME/.ssh:ro
\
-e SLURM_JOB_ID=$SLURM_JOB_ID
\
-e SLURM_JOB_ID=$SLURM_JOB_ID
\
-v /data:/data
\
-v /data:/data
\
{image}
\
{image}
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment