From 1183a8b0faa26e5978fa3e8d70aeeac58de0774b Mon Sep 17 00:00:00 2001 From: Charles OuGuo Date: Mon, 26 Feb 2024 22:34:23 -0500 Subject: [PATCH] Define worker env vars --- src/python/fitbit_challenges/worker/BUILD.bazel | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/python/fitbit_challenges/worker/BUILD.bazel b/src/python/fitbit_challenges/worker/BUILD.bazel index 89c00991..1bc27997 100644 --- a/src/python/fitbit_challenges/worker/BUILD.bazel +++ b/src/python/fitbit_challenges/worker/BUILD.bazel @@ -34,6 +34,22 @@ py_oci_image( base = "@python3_image", binary = ":binary", entrypoint = ["/src/python/fitbit_challenges/worker/binary"], + env = { + "FLASK_APP": "app.py", + "FLASK_DEBUG": "True", + "API_PORT": "5000", + "FRONTEND_PROTOCOL": "http", + "FRONTEND_HOST": "frontend", + "FRONTEND_PORT": "5001", + "DB_HOST": "pg", + "DB_USERNAME": "admin", + "DB_PASSWORD": "development", + "DATABASE_NAME": "api_development", + "FITBIT_CLIENT_ID": "testing", + "FITBIT_CLIENT_SECRET": "testing", + "FITBIT_VERIFICATION_CODE": "testing", + "FLASK_SECRET_KEY": "testing", + }, ) platform(