From ab4db36445cb687981499854e7e388f556b015b6 Mon Sep 17 00:00:00 2001 From: Carlos Mesquita Date: Wed, 4 Sep 2024 11:55:58 +0100 Subject: [PATCH] Switched cli token to GOOGLE_APPLICATION_CREDENTIALS --- Dockerfile | 2 ++ modules/batch_users/service.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 939b732..243c05c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,8 @@ FROM python:3.11-slim # Allow statements and log messages to immediately appear in the logs ENV PYTHONUNBUFFERED True +ENV GOOGLE_APPLICATION_CREDENTIALS=/app/firebase-configs/encoach-staging.json + # Copy local code to the container image. ENV APP_HOME /app WORKDIR $APP_HOME diff --git a/modules/batch_users/service.py b/modules/batch_users/service.py index f4550f4..8cca45e 100644 --- a/modules/batch_users/service.py +++ b/modules/batch_users/service.py @@ -118,7 +118,6 @@ class BatchUsers: f'--rounds={os.getenv("FIREBASE_SCRYPT_ROUNDS")} ' f'--mem-cost={os.getenv("FIREBASE_SCRYPT_MEM_COST")} ' f'--project={os.getenv("FIREBASE_PROJECT_ID")} ' - f'--token={os.getenv("FIREBASE_CLI_TOKEN")}' ) result = subprocess.run(command, shell=True, cwd=directory, capture_output=True, text=True)