Create an Anaconda or other virtual environment for your ADES and activate it.
python setup.py install
Deploy ADES/K8S on laptop
export ADES_PLATFORM="K8s"
python -m flask_ades_wpst.flask_wpst
The endpoints we are interested in are getLandingPage, getProcesses, deployProcess, getProcessDescription, undeployProcess, getJobList, getJobStatus, dismissJob, getJobResult as in Table 1 of http://docs.opengeospatial.org/per/18-050r1.html#_wps_t_restjson. Demonstrate WPS-T endpoints with curl or wget
Landing page: curl -X POST http://127.0.0.1:5000/
Get process list: curl http://127.0.0.1:5000/processes
Deploy process: curl -X POST http://127.0.0.1:5000/processes?proc=<raw-url-to-your-app_desc.json>
To test the deployment and execution of your BCDP application package on a Mac laptop, you should be able to:
kubectl
).git clone https://github.jpl.nasa.gov/SOAMC/flask_ades_wpst.git
cd flask_ades_wpst
mkdir sqlite
python setup.py install
export ADES_PLATFORM="K8s"
python -m flask_ades_wpst.flask_wpst
curl
orwget
curl -X POST http://127.0.0.1:5000/
curl http://127.0.0.1:5000/processes
curl -X POST http://127.0.0.1:5000/processes?proc=<raw-url-to-your-app_desc.json>
curl -H "Content-Type: application/json" -X POST -d '{"<your-key1>": "<your-val1>", "<your-key2>": "<your-val2>", ... }' http://127.0.0.1:5000/processes/hello-world-1.0.0/jobs
curl http://127.0.0.1:5000/processes/<your-proc-id>/jobs
curl http://127.0.0.1:5000/processes/<your-proc-id>/jobs/<your-job-id>
curl -X DELETE http://127.0.0.1:5000/processes/<your-proc-id>/jobs/<your-job-id>
curl http://127.0.0.1:5000/processes/<your-proc-id>/jobs/<your-job-id>/result