This is a fastapi app that provides a REST API for publishing datasets to the Atlas.
pip install -r requirements.txt
cd app
uvicorn main:app --reload
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install git+https://github.com/djtfmartin/python-dwca-reader.git
pip install git+https://github.com/AtlasOfLivingAustralia/dwc-dataframe-validator.git
pip install -r requirements.txt
cd app
uvicorn main:app --reload
pip install -r requirements.txt
pip install pytest pytest-coverage
pip install git+https://github.com/djtfmartin/python-dwca-reader.git
pip install git+https://github.com/AtlasOfLivingAustralia/dwc-dataframe-validator.git
pip install uvicorn
pytest --cov
Access to localhost:8000 after running the following:
docker build -t publishing-service .
docker compose up
docker buildx build --platform=linux/amd64 -t atlasoflivingaustralia/publishing-service .
docker push atlasoflivingaustralia/publishing-service:<tag-number>
The Swagger UI for REST services are available at http://localhost:5000
.
The docker images for publishing-service are available on docker hub.
Commits to this develop
branch will result in a new image being built and pushed to the latest
tag on docker hub.
The helm charts for publishing-service are available in the helm-charts repository.