Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
containers
eic_container
Commits
8554990f
Commit
8554990f
authored
3 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Patches
Plain Diff
Add SINGULARITY_BINDPATH at autodetection stage to avoid duplication.
(cherry picked from commit
245792a6
)
parent
ee5cf7f8
Branches
Branches containing commit
No related tags found
1 merge request
!201
Add awkward-array package
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.sh
+5
-5
5 additions, 5 deletions
install.sh
with
5 additions
and
5 deletions
install.sh
+
5
−
5
View file @
8554990f
...
@@ -180,17 +180,17 @@ function install_linux() {
...
@@ -180,17 +180,17 @@ function install_linux() {
## is always bound. We also check for the existence of a few standard
## is always bound. We also check for the existence of a few standard
## locations (/scratch /volatile /cache) and bind those too if found
## locations (/scratch /volatile /cache) and bind those too if found
echo
" - Determining additional bind paths"
echo
" - Determining additional bind paths"
BINDPATH
=
${
SINGULARITY_BINDPATH
}
echo
" --> system bindpath:
$BINDPATH
"
PREFIX_ROOT
=
"/
$(
realpath
$PREFIX
|
cut
-d
"/"
-f2
)
"
PREFIX_ROOT
=
"/
$(
realpath
$PREFIX
|
cut
-d
"/"
-f2
)
"
BINDPATH
=
$PREFIX_ROOT
for
dir
in
/work /scratch /volatile /cache /gpfs /gpfs01 /gpfs02
$PREFIX_ROOT
;
do
echo
" -->
$PREFIX_ROOT
"
for
dir
in
/work /scratch /volatile /cache /gpfs /gpfs01 /gpfs02
;
do
## only add directories once
## only add directories once
if
[[
${
BINDPATH
}
=
~
$(
basename
$dir
)
]]
;
then
if
[[
${
BINDPATH
}
=
~
$(
basename
$dir
)
]]
;
then
continue
continue
fi
fi
if
[
-d
$dir
]
;
then
if
[
-d
$dir
]
;
then
echo
" -->
$dir
"
echo
" -->
$dir
"
BINDPATH
=
"
${
BINDPATH
}
,
$dir
"
BINDPATH
=
${
dir
}
${
BINDPATH
:+,
$BINDPATH
}
fi
fi
done
done
...
@@ -279,7 +279,7 @@ if [ ! -z \${UPGRADE} ]; then
...
@@ -279,7 +279,7 @@ if [ ! -z \${UPGRADE} ]; then
fi
fi
export ATHENA_PREFIX=
$PREFIX
/local
export ATHENA_PREFIX=
$PREFIX
/local
export SINGULARITY_BINDPATH=
$BINDPATH
\$
{SINGULARITY_BINDPATH:+:
\$
SINGULARITY_BINDPATH}
export SINGULARITY_BINDPATH=
$BINDPATH
$SINGULARITY
exec
$SIF
eic-shell
\$
@
$SINGULARITY
exec
$SIF
eic-shell
\$
@
EOF
EOF
...
...
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