EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ESA
PRISM
VS
Commits
ecca5b0e
Commit
ecca5b0e
authored
4 years ago
by
Mussab Abdalla
Browse files
Options
Downloads
Patches
Plain Diff
initial testing for reporting
parent
25241bc7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
registrar_test.sh
+19
-1
19 additions, 1 deletion
registrar_test.sh
with
19 additions
and
1 deletion
registrar_test.sh
+
19
−
1
View file @
ecca5b0e
...
...
@@ -2,8 +2,26 @@
product_list_file
=
$1
docker
exec
-i
$(
docker ps
-qf
"name=emg-pvs_registrar"
)
python3 /var/www/pvs/dev/pvs_instance/manage.py storage create pvs_testing pvs_testing
--type
swift
--storage-auth
auth-cloud-ovh
IFS
=
","
# For testing the service url and the reporting directory canbe fixed and not mapped from env
SERVICE_URL
=
emg.pass.copernicus.eu
REPORTING_DIR
=
/mnt/reports/
while
read
product
;
do
docker
exec
-i
$(
docker ps
-qf
"name=emg-pvs_registrar"
)
python3 /registrar.py
--objects-prefix
$product
<<<
$product
echo
"docker exec -i
$(
docker ps
-qf
"name=emg-pvs_registrar"
)
python3 /core/registrar.py --objects-prefix
$product
--service-url
$SERVICE_URL
--reporting-dir
$REPORTING_DIR
"
docker
exec
$(
docker ps
-qf
"name=emg-pvs_registrar"
)
python3 /core/registrar.py
--objects-prefix
$product
--service-url
$SERVICE_URL
--reporting-dir
$REPORTING_DIR
<<<
$product
IFS
=
'/'
read
-ra
ADDR
<<<
"
$product
"
docker
exec
$(
docker ps
-qf
"name=emg-pvs_registrar"
)
bash
-c
'ls /mnt/reports/. | grep $ADDR[4]'
>>
${
ADDR
[4]
}
.csv
while
IFS
=
""
read
-r
name
do
docker
exec
$(
docker ps
-qf
"name=emg-pvs_registrar"
)
cat
/mnt/reports/
$name
>>
${
ADDR
[4]
}
.xml
done
<
${
ADDR
[4]
}
.csv
rm
${
ADDR
[4]
}
.csv
done
<
$product_list_file
...
...
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