Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Carlo FERRIGNO
ci-template-cc
Commits
66497ca8
Unverified
Commit
66497ca8
authored
Jan 29, 2021
by
Volodymyr SAVCHENKO
Browse files
more oda
parent
f3df4bbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
make-functions.sh
make-functions.sh
+7
-4
No files found.
make-functions.sh
View file @
66497ca8
...
...
@@ -109,7 +109,7 @@ function pull() {
function
build
()
{
touch
pip.conf
export
DOCKER_BUILDKIT
=
1
docker pull
$IMAGE
||
(
nb2worker ./
--build
--tag-image
$IMAGE
--job
--from
${
CC_BASE_IMAGE
:?
}
--docker-run-prefix
=
"mkdir -pv /home/oda; export HOME_OVERRRIDE=/home/oda; source /init.sh; "
--docker-command
=
'id; export HOME_OVERRRIDE=/tmp; mkdir -pv $HOME_OVERRRIDE; source /init.sh; source /etc/bashrc;
nbrun
/repo/'
$SOURCE_NAME
'.ipynb $@'
;
ls
-ltr
*
cwl
;
)
docker pull
$IMAGE
||
(
nb2worker ./
--build
--tag-image
$IMAGE
--job
--from
${
CC_BASE_IMAGE
:?
}
--docker-run-prefix
=
"mkdir -pv /home/oda; export HOME_OVERRRIDE=/home/oda; source /init.sh; "
--docker-command
=
'id; export HOME_OVERRRIDE=/tmp; mkdir -pv $HOME_OVERRRIDE; source /init.sh; source /etc/bashrc;
oda-kb-evaluate
/repo/'
$SOURCE_NAME
'.ipynb $@'
;
ls
-ltr
*
cwl
;
)
touch
job.cwl
}
...
...
@@ -427,6 +427,7 @@ function submit-all-cases() {
function
configure-reana
()
{
reana-client secrets-add
--env
MINIO_KEY
=
${
MINIO_KEY
:?this
should be set
}
reana-client secrets-add
--env
MINIO_URL
=
${
MINIO_URL
:?this
should be set
}
reana-client secrets-add
--env
MINIO_USER
=
${
USER
}
reana-client secrets-list
}
...
...
@@ -435,8 +436,10 @@ function download-cwl() {
echo
-e
"
\0
33[33mwill download"
curl
-L
--header
"PRIVATE-TOKEN:
$(
cat
~/.gitlab-token
)
"
\
"https://gitlab.astro.unige.ch/api/v4/projects/integral%2Fcc-workflows%2Fcc-
${
SOURCE_NAME
}
/jobs/artifacts/master/download?job=build"
>
artifacts.gz
unzip
-o
artifacts.gz job.cwl
echo
-e
"
\0
33[32mfound job.cwl"
unzip
-o
artifacts.gz
${
SOURCE_NAME
}
.cwl
cp
-fv
${
SOURCE_NAME
}
.cwl job.cwl
echo
-e
"
\0
33[32mfound job.cwl:"
ls
-l
job.cwl
set
+e
}
...
...
@@ -452,7 +455,7 @@ inputs:
input: inputs.yaml
workflow:
type: cwl
file:
cra
b.cwl
file:
jo
b.cwl
outputs:
files:
- cwl/docker_outdir/cwl.output.json
...
...
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