-
Copy the Firebase credentials JSON (
firebase_credentials.json
) into thesrc
directory of the repository. -
Install the requirements.
pip install -r requirements.txt
- Create database volume (execute only once).
docker volume create fiuber-metrics-db-volume
- Start the PostgreSQL instance.
docker run -it --rm \
-e POSTGRES_PASSWORD=admin \
-p 5432:5432 \
-v fiuber-metrics-db-volume:/var/lib/postgresql/data \
postgres
- In another terminal, start the server:
cd src
uvicorn main:app --reload
The API will be available on http://localhost:8000/
.
Execute the following script to build and run the tests using Docker Compose
.
./run_tests.sh
The following GitHub Actions Secrets are required:
DOCKERHUB_USERNAME
DOCKERHUB_TOKEN
KUBE_CONFIG_DATA
(generated withcat kubeconfig.yaml | base64 -w 0
)DATABASE_HOST
DATABASE_PASSWORD
FIREBASE_CREDENTIALS
(generated withcat firebase-credentials.json | base64 -w 0
)