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
cb609eab
Commit
cb609eab
authored
4 years ago
by
Mussab Abdalla
Browse files
Options
Downloads
Patches
Plain Diff
using list
parent
118e19b6
No related branches found
No related tags found
2 merge requests
!14
Registrar list
,
!13
test list
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gitlab_test.sh
+5
-3
5 additions, 3 deletions
gitlab_test.sh
registrar_test.sh
+1
-1
1 addition, 1 deletion
registrar_test.sh
with
6 additions
and
4 deletions
gitlab_test.sh
+
5
−
3
View file @
cb609eab
...
...
@@ -8,6 +8,8 @@ docker stack deploy -c docker-compose.emg.yml -c docker-compose.emg.dev.yml emg-
apk update
&&
apk add postgresql-dev gcc python3-dev musl-dev py-pip gdal
pip3
install
-r
requirements.txt
./wait_for_container.sh
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
docker
exec
-i
$(
docker ps
-qf
"name=emg-pvs_registrar"
)
python3 /core/registrar.py
--objects-prefix
"OA/PH1B/0.1/b9/urn:eop:PHR:MULTISPECTRAL_0.5m:DS_PHR1B_201608070959189_FR1_PX_E012N32_0719_00974_4148/0000/PH1B_PHR_FUS_1A_20160807T095918_20160807T095920_TOU_1234_4148.DIMA.tar"
pytest
-s
registrar_test.py
--name
OA/PH1B/0.1/b9/urn:eop:PHR:MULTISPECTRAL_0.5m:DS_PHR1B_201608070959189_FR1_PX_E012N32_0719_00974_4148/0000/PH1B_PHR_FUS_1A_20160807T095918_20160807T095920_TOU_1234_4148.DIMA.tar
\ No newline at end of file
bash ./registrar_test.sh product_list.csv
# 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
# docker exec -i $(docker ps -qf "name=emg-pvs_registrar") python3 /core/registrar.py --objects-prefix "OA/PH1B/0.1/b9/urn:eop:PHR:MULTISPECTRAL_0.5m:DS_PHR1B_201608070959189_FR1_PX_E012N32_0719_00974_4148/0000/PH1B_PHR_FUS_1A_20160807T095918_20160807T095920_TOU_1234_4148.DIMA.tar"
# pytest -s registrar_test.py --name OA/PH1B/0.1/b9/urn:eop:PHR:MULTISPECTRAL_0.5m:DS_PHR1B_201608070959189_FR1_PX_E012N32_0719_00974_4148/0000/PH1B_PHR_FUS_1A_20160807T095918_20160807T095920_TOU_1234_4148.DIMA.tar
\ No newline at end of file
This diff is collapsed.
Click to expand it.
registrar_test.sh
+
1
−
1
View file @
cb609eab
#!/bin/bash
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
#
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
=
","
while
read
product
;
do
docker
exec
-i
$(
docker ps
-qf
"name=emg-pvs_registrar"
)
python3 /registrar.py
--objects-prefix
$product
<<<
$product
...
...
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