OGC layer including EOxC browser connected to Euro Data Cube's Sentinel-Hub service.
Demonstrator deployed on EOxHub
$ git clone https://github.com/eurodatacube/ogc-edc.git
$ cd ogc-edc
$ export SH_CLIENT_ID=<oauth_clientid>
$ export SH_CLIENT_SECRET=<oauth_clientsecret>
$ pip install requirements.txt
$ pytest --capture=no
$ env FLASK_APP=edc_ogc/app.py flask run
* Serving Flask app "edc_ogc/app.py"
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
docker run -p 5000:5000 -e SH_CLIENT_ID=<oauth_clientid> -e SH_CLIENT_SECRET=<oauth_clientsecret> eurodatacube/ogc-edc
Using development setup, with autoreload:
docker run -it -e SH_CLIENT_ID=<oauth_clientid> -e SH_CLIENT_SECRET=<oauth_clientsecret> -v `pwd`/edc_ogc:/home/ogc/edc_ogc -p 5000:5000 eurodatacube/ogc-edc flask run --host=0.0.0.0 --reload
http://localhost:5000/?service=WMS&version=1.1.0&request=GetMap&layers=AGRICULTURE&styles=&srs=EPSG:4326&bbox=14.043549,46.580095,14.167831,46.652688&width=512&height=512&format=image/png
Travis-CI will automatically build docker images on checkin which will be pushed to docker hub.