Skip to content

Commit

Permalink
feat(deploy): test deployment to kubernetes azure
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Oct 30, 2024
1 parent c33be98 commit 18138c3
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 0 deletions.
Binary file modified documentation/Architecture.pptx
Binary file not shown.
1 change: 1 addition & 0 deletions production/api/app/http_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def post(self, url, data, headers={}):
def http_service_factory_get():
http_service = None
def get():
nonlocal http_service
if http_service is None:
http_service = HttpService()
return http_service
Expand Down
1 change: 1 addition & 0 deletions production/api/app/redis_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def redis_factory_get(host:str, port:int):
redis_instance = None

def get():
nonlocal redis_instance
if redis_instance is None:
redis_instance = RedisClient(host, port)
return redis_instance
Expand Down
1 change: 1 addition & 0 deletions production/ia-worker/app/app_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def init_settings_environments(settings: dict) -> dict:
def app_settings_factory_get():
app_settings_instance = None
def get():
nonlocal app_settings_instance
if app_settings_instance is not None:
return app_settings_instance

Expand Down
1 change: 1 addition & 0 deletions production/ia-worker/app/http_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def post(self, url, data, headers={}):
def http_service_factory_get():
http_service = None
def get():
nonlocal http_service
if http_service is None:
http_service = HttpService()
return http_service
Expand Down
1 change: 1 addition & 0 deletions production/ia-worker/app/redis_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def redis_factory_get(host:str, port:int):
redis_instance = None

def get():
nonlocal redis_instance
if redis_instance is None:
redis_instance = RedisClient(host, port)
return redis_instance
Expand Down

0 comments on commit 18138c3

Please sign in to comment.