Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Packages
chemical_checker
Commits
191973e8
Commit
191973e8
authored
Jun 18, 2021
by
Martino Bertoni
🌋
Browse files
adding option to run any image
parent
50b3ceb6
Pipeline
#2462
failed with stages
in 64 minutes and 19 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
setup/run_chemicalchecker.sh
View file @
191973e8
#!/bin/sh
LOCAL_CCREPO
=
"
$HOME
/chemical_checker"
IMAGE_NAME
=
"
cc.simg"
LOCAL_IMAGE
=
"
$LOCAL_CCREPO
/
cc.simg"
JUPYTER_DIR
=
$LOCAL_CCREPO
/run_user_sing
...
...
@@ -15,7 +15,7 @@ usage () {
echo
" -d use external Chemical Checker (develop mode)"
echo
" -c use external Chemical Checker config file"
echo
" -h print this help"
echo
" -i <my_image.simg>: run the singularity image of your choice
(when several are present in
$LOCAL_CCREPO
)
"
echo
" -i <
/absolute/path/to/
my_image.simg>: run the singularity image of your choice"
echo
""
exit
1
}
...
...
@@ -33,12 +33,10 @@ do
c
)
EXTERNAL_CCCONFIG
=
true
;
PATH_CCCONFIG
=
$OPTARG
;;
D
)
DEBUG
=
true
;;
h
)
usage
;;
i
)
IMAGE_NAM
E
=
$OPTARG
;;
i
)
LOCAL_IMAG
E
=
$OPTARG
;;
esac
done
LOCAL_IMAGE
=
$LOCAL_CCREPO
/
$IMAGE_NAME
# print variables if debugging
if
[
"
$DEBUG
"
=
true
]
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment