A REST API to pilot the Ecotaxa pipelines
pip install fastapi
pip install pydantic
pip install "uvicorn[standard]"
<!-- pip3 install opencv-python -->
pip install opencv-python
pip install requests
pip install numpy
uvicorn main:app --reload
ne fonctionne pas en venv ????? why ???
http://127.0.0.1:8000/docs http://127.0.0.1:8000/redoc
python3 -m venv .venv
or
virtualenv -p python3.9.6 venv
source .venv/bin/activate
cf. requirement
pip install pytest
deactivate
ssh niko cd ~/complex/DEEP-OC-multi_plankton_separation
docker build -t deephdc/uc-emmaamblard-deep-oc-multi_plankton_separation .
~/complex/DEEP-OC-multi_plankton_separation$ docker run -ti -p 5000:5000 -p 6006:6006 -p 8888:8888 deephdc/uc-emmaamblard-deep-oc-multi_plankton_separation
~/complex/DEEP-OC-multi_plankton_separation$ docker run -d -ti -p 5000:5000 -p 6006:6006 -p 8888:8888 deephdc/uc-emmaamblard-deep-oc-multi_plankton_separation
~/complex/DEEP-OC-multi_plankton_separation$ docker run -d -ti -p 5000:5000 -p 6006:6006 -p 8889:8888 deephdc/uc-emmaamblard-deep-oc-multi_plankton_separation
use the collection named Happy Pipeline
test happy pipeline : to see if server alive
test DEEP plankton separation - niko alive ? : to see if multi_plankton_separation is alive on Niko server
#docker
docker build -t gateway_api .
Build
docker run -p 8000:8000 -v /Users/sebastiengalvagno/piqv/plankton/:/app/data --name happy_pipeline gateway_api
when use Docker use .env.production else .env.development
at this moment, I can't run in docker because the path are linked to other apps then it can't find the file
a possibility, to use docker, is to make the very long local path in the container and use .env.development