mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-10 04:28:34 +03:00
f39561f5598f8aa965a1a39ebff5934df59c19ee
Auto Archiver API
An api that uses celery workers to process URL archive requests via bellingcat/auto-archiver, it allows authentication via Google OAuth Apps an d enables CORS, everything runs on docker but development can be done without docker (except for redis).
Development
requires src/.env
cd /src
- console 1 -
docker compose up redisoptionally adddashboardfor flower dashboard andwebif not running uvicorn locally - console 2 -
pipenv shell+celery worker --app=worker.celery --loglevel=info --logfile=logs/celery_dev.logcelery --app=worker.celery worker --loglevel=info --logfile=logs/celery_dev.logcelery 5
- console 3 -
pipenv shell+uvicorn main:app --host 0.0.0.0 --reloadorchestration must be from the console(?) - turn off VPNs if connection to docker is not working
Release
Copy .env and src/.env to deployment, along with the contents of secrets/ including secrets/orchestration.yaml.
Then docker compose up -d.
updating packages/app
If pipenv packages are updated: pipenv lock --requirements -r > requirements.txt (manually comment line -i https://pypi.org/simple) and then docker compose down + docker compose up --build -d to build images with new packages.
Languages
Python
98.3%
Dockerfile
0.9%
Makefile
0.6%
Mako
0.2%