We need mamba
to install the requirements.
Use your existing mamba
or install it from here:
https://github.com/conda-forge/miniforge
Get the source:
git clone https://github.com/FREVA-CLINT/duck.git
cd duck
Create the conda environment for duck:
mamba env create
Activate the duck environment:
conda activate duck
Install duck in this environment:
pip install -e .
Start your duck as a web service:
duck start -d
See it is responding by sending a WPS GetCapabilities
request:
http://localhost:5000?service=WPS&request=GetCapabilities
You can stop the service with:
duck stop
You need to start your service with the hostname and IP address to be accessible from outside.
Example:
duck start --hostname smartduck.lake.earth -b 194.100.0.10
Check if it is running:
duck status
Check access:
http://smartduck.lake.earth:5000?service=WPS&request=GetCapabilities
Stop it:
duck stop