EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 73e0e803 authored by Mussab Abdalla's avatar Mussab Abdalla
Browse files

check python gdal

parent 79c9a8e1
No related branches found
No related tags found
1 merge request!29Preprocessor test
......@@ -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
python3 preprocessor_test.py
./docker-stack-wait.sh -n renderer -n registrar -n preprocessor -n ingestor -n sftp emg-pvs
docker service ls
......
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment