Merged in feature/level-file-upload (pull request #18)
Switched cli token to GOOGLE_APPLICATION_CREDENTIALS
This commit is contained in:
@@ -6,6 +6,8 @@ FROM python:3.11-slim
|
|||||||
# Allow statements and log messages to immediately appear in the logs
|
# Allow statements and log messages to immediately appear in the logs
|
||||||
ENV PYTHONUNBUFFERED True
|
ENV PYTHONUNBUFFERED True
|
||||||
|
|
||||||
|
ENV GOOGLE_APPLICATION_CREDENTIALS=/app/firebase-configs/encoach-staging.json
|
||||||
|
|
||||||
# Copy local code to the container image.
|
# Copy local code to the container image.
|
||||||
ENV APP_HOME /app
|
ENV APP_HOME /app
|
||||||
WORKDIR $APP_HOME
|
WORKDIR $APP_HOME
|
||||||
|
|||||||
@@ -118,7 +118,6 @@ class BatchUsers:
|
|||||||
f'--rounds={os.getenv("FIREBASE_SCRYPT_ROUNDS")} '
|
f'--rounds={os.getenv("FIREBASE_SCRYPT_ROUNDS")} '
|
||||||
f'--mem-cost={os.getenv("FIREBASE_SCRYPT_MEM_COST")} '
|
f'--mem-cost={os.getenv("FIREBASE_SCRYPT_MEM_COST")} '
|
||||||
f'--project={os.getenv("FIREBASE_PROJECT_ID")} '
|
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)
|
result = subprocess.run(command, shell=True, cwd=directory, capture_output=True, text=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user