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
73e0e803
Commit
73e0e803
authored
4 years ago
by
Mussab Abdalla
Browse files
Options
Downloads
Patches
Plain Diff
check python gdal
parent
79c9a8e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!29
Preprocessor test
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testing/gitlab_test.sh
+2
-2
2 additions, 2 deletions
testing/gitlab_test.sh
testing/preprocessor_test.py
+7
-1
7 additions, 1 deletion
testing/preprocessor_test.py
with
9 additions
and
3 deletions
testing/gitlab_test.sh
+
2
−
2
View file @
73e0e803
...
...
@@ -39,10 +39,10 @@ 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 g++ python3-dev musl-dev py-pip libffi-dev openssl-dev make gdal gdal-dev
apk update
&&
apk add bash postgresql-dev gcc g++
python3
python3-dev musl-dev py-pip libffi-dev openssl-dev make gdal gdal-dev
pip3
install
-r
requirements.txt
python preprocessor_test.py
python
3
preprocessor_test.py
./docker-stack-wait.sh
-n
renderer
-n
registrar
-n
preprocessor
-n
ingestor
-n
sftp emg-pvs
docker service
ls
...
...
This diff is collapsed.
Click to expand it.
testing/preprocessor_test.py
+
7
−
1
View file @
73e0e803
from
osgeo
import
gdal
\ No newline at end of file
import
sys
from
osgeo
import
gdal
version_num
=
int
(
gdal
.
VersionInfo
(
'
VERSION_NUM
'
))
print
(
version_num
)
if
version_num
<
1100000
:
sys
.
exit
(
'
ERROR: Python bindings of GDAL 1.10 or later required
'
)
\ 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