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
d89ee815
Commit
d89ee815
authored
3 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Patches
Plain Diff
Update install.sh
parent
1d0f1b6d
No related branches found
No related tags found
1 merge request
!96
Resolve "Optionally disable /cvmfs detection for the installer"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.sh
+13
-1
13 additions, 1 deletion
install.sh
with
13 additions
and
1 deletion
install.sh
+
13
−
1
View file @
d89ee815
...
...
@@ -8,6 +8,8 @@ function print_the_help {
echo
"USAGE: ./install.sh [-p PREFIX] [-v VERSION]"
echo
"OPTIONAL ARGUMENTS:"
echo
" -p,--prefix Working directory to deploy the environment (D:
$PREFIX
)"
echo
" -t,--tmpdir Change tmp directory (D:
$(
[[
-z
"
$TMPDIR
"
]]
&&
echo
"/tmp"
||
echo
"
$TMPDIR
"
)
)"
echo
" -n,--no-cvmfs Disable check for local CVMFS (D: enabled)"
echo
" -v,--version Version to install (D:
$VERSION
)"
echo
" -h,--help Print this message"
echo
""
...
...
@@ -25,6 +27,16 @@ while [ $# -gt 0 ]; do
shift
shift
;;
-t
|
--tmpdir
)
export
TMPDIR
=
$2
export
SINGULARITY_TMPDIR
=
$2
shift
shift
;;
-n
|
--no-cvmfs
)
DISABLE_CVMFS_USAGE
=
true
shift
;;
-v
|
--version
)
VERSION
=
$2
shift
...
...
@@ -115,7 +127,7 @@ if [ ${SINGULARITY_VERSION:0:1} = 2 ]; then
else
## check if we can just use cvmfs for the image
SIF
=
"
$PREFIX
/local/lib/
${
CONTAINER
}
-
${
VERSION
}
.sif"
if
[
-d
/cvmfs/singularity.opensciencegrid.org/eicweb/
${
CONTAINER
}
:
${
VERSION
}
]
;
then
if
[
-z
"
$DISABLE_CVMFS_USAGE
"
-a
-d
/cvmfs/singularity.opensciencegrid.org/eicweb/
${
CONTAINER
}
:
${
VERSION
}
]
;
then
SIF
=
"
$PREFIX
/local/lib/
${
CONTAINER
}
-
${
VERSION
}
"
## need to cleanup in this case, else it will try to make a subdirectory
rm
-rf
${
SIF
}
...
...
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