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
5dc4a403
Commit
5dc4a403
authored
4 years ago
by
Mussab Abdalla
Browse files
Options
Downloads
Patches
Plain Diff
initial preprocressor test
parent
2021a130
No related branches found
No related tags found
1 merge request
!29
Preprocessor test
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testing/gitlab_test.sh
+6
-3
6 additions, 3 deletions
testing/gitlab_test.sh
testing/preprocessor_test.sh
+32
-0
32 additions, 0 deletions
testing/preprocessor_test.sh
with
38 additions
and
3 deletions
testing/gitlab_test.sh
+
6
−
3
View file @
5dc4a403
...
...
@@ -28,22 +28,25 @@ mkdir data
docker swarm init
docker network create
-d
overlay emg-extnet
# creat the docker secrets
# creat
e
the docker secrets
printf
$OS_PASSWORD_DOWNLOAD
| docker secret create OS_PASSWORD_DOWNLOAD -
printf
$DJANGO_PASSWORD
| docker secret create DJANGO_PASSWORD -
printf
$OS_PASSWORD
| docker secret create OS_PASSWORD -
# creat docker configs
# creat
e
docker configs
printf
$sftp_users_emg
| docker config create sftp_users_emg -
docker stack deploy
-c
../docker-compose.emg.yml
-c
../docker-compose.emg.dev.yml emg-pvs
# installing the requirments
apk update
&&
apk add bash postgresql-dev gcc python3-dev musl-dev py-pip gdal libffi-dev openssl-dev make
pip3
install
-r
requirements.txt
./docker-stack-wait.sh
-n
renderer
-n
registrar
-n
preprocessor
-n
ingestor
-n
sftp emg-pvs
docker service
ls
# perform the testing
bash ./preprocessor_test.sh
bash ./registrar_test.sh product_list.csv
if
[
$?
-ne
0
]
...
...
This diff is collapsed.
Click to expand it.
testing/preprocessor_test.sh
0 → 100755
+
32
−
0
View file @
5dc4a403
#!/bin/sh
OS_PASSWORD
=
$(
docker
exec
-it
$(
docker ps
-qf
"name=emg-pvs_preprocessor"
)
cat
/run/secrets/OS_PASSWORD
)
preprocessing the images and save the results
in
the result bucket
docker
exec
-e
OS_PASSWORD
=
$OS_PASSWORD
-it
$(
docker ps
-qf
"name=emg-pvs_preprocessor"
)
\
preprocessor preprocess
--config-file
testing/testing_preprocessor_config.yml KS03_AIS_PSH_1G_20160101T113020_20160101T113022_KGS_019339_75CE.tar
ST_AUTH_VERSION
=
3
OS_AUTH_URL
=
https://auth.cloud.ovh.net/v3/
OS_USERNAME
=
xqNChf3Rz5vs
OS_TENANT_NAME
=
7398560954290261
OS_TENANT_ID
=
1b418c4359064774af5d55da3f4bcac0
OS_REGION_NAME
=
SERCO-DIAS1
# gaining the necessary credentials and mapping them as env variables
swift auth
--auth-version
$ST_AUTH_VERSION
--os-identity-api-version
3
--os-auth-url
$OS_AUTH_URL
\
--os-username
$OS_USERNAME
--os-password
$OS_PASSWORD
--os-tenant-name
$OS_TENANT_NAME
--os-tenant-id
$OS_TENANT_ID
\
--os-region-name
$OS_REGION_NAME
preprocessor_results
>
preprocessor_test.txt
IFS
=
"="
while
read
key value
;
do
if
[
"
$key
"
=
"export OS_STORAGE_URL"
]
;
then
export
SWIFT_STORAGE_URL
=
$value
else
export
SWIFT_AUTH_TOKEN
=
$value
fi
done
< preprocessor_test.txt
gdalinfo /vsiswift/preprocessor_results/KS03_AIS_PSH_1G_20160101T113020_20160101T113022_KGS_019339_75CE.tar/K3_20160101113014_19339_02281264_L1G.tif
rm
preprocessor_test.txt
\ No newline at end of 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