From b090caf9ba4380f6877e0409187afec52f70c97a Mon Sep 17 00:00:00 2001 From: ozone-one <107835405+ozone-one@users.noreply.github.com> Date: Tue, 30 Jan 2024 22:02:43 +0530 Subject: [PATCH 1/5] Update main.py --- main.py | 42 ++++++++++-------------------------------- 1 file changed, 10 insertions(+), 32 deletions(-) diff --git a/main.py b/main.py index 9dea202..b09e04e 100644 --- a/main.py +++ b/main.py @@ -11,43 +11,21 @@ @newrelic.agent.wsgi_application() @app.route('/', methods=['GET', 'POST']) def index(): - n = random.random() - if n > 0.95: - raise Exception("unknown exception occured") - newrelic.agent.notice_error() - return Response( - response=json.dumps({'error': "unknown exception happened"}), - mimetype='application/json', - status=500 - ) - else: - print("success") - return Response( - response=json.dumps({'value': 11}), - mimetype='application/json' - ) + return Response( + response=json.dumps({'value': 11}), + mimetype='application/json' + ) @newrelic.agent.wsgi_application() @app.route('/hello', methods=['GET', 'POST']) def hello(): - n = random.random() - if n > 0.98: - raise Exception("unknown exception occured") - print("unknown exception occured") - newrelic.agent.notice_error() - return Response( - response=json.dumps({'error': "unknown exception happened"}), - mimetype='application/json', - status=500 - ) - else: - print("success") - return Response( - response=json.dumps( - {"route": "/hello", "response": "hello world main branch"}), - mimetype='application/json' - ) + print("success") + return Response( + response=json.dumps( + {"route": "/hello", "response": "hello world main branch"}), + mimetype='application/json' + ) if __name__ == "__main__": From d167af9329a76a5bd9efe47bab18509383d30650 Mon Sep 17 00:00:00 2001 From: ozone-one <107835405+ozone-one@users.noreply.github.com> Date: Tue, 30 Jan 2024 22:03:46 +0530 Subject: [PATCH 2/5] Update main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index b09e04e..d00eeed 100644 --- a/main.py +++ b/main.py @@ -12,7 +12,7 @@ @app.route('/', methods=['GET', 'POST']) def index(): return Response( - response=json.dumps({'value': 11}), + response=json.dumps({'value': "ozone-python-hello-world application"}), mimetype='application/json' ) From e026656bbefe3cd7ff06d2e2f37e0118ec16ec4a Mon Sep 17 00:00:00 2001 From: ozone-one <107835405+ozone-one@users.noreply.github.com> Date: Tue, 30 Jan 2024 22:11:04 +0530 Subject: [PATCH 3/5] Update main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index d00eeed..25b542d 100644 --- a/main.py +++ b/main.py @@ -12,7 +12,7 @@ @app.route('/', methods=['GET', 'POST']) def index(): return Response( - response=json.dumps({'value': "ozone-python-hello-world application"}), + response=json.dumps({"welcome": "to ozone onbaording", 'value': "ozone-python-hello-world application"}), mimetype='application/json' ) From 75cef907676949c5d0007eec09fee7ab16fb83af Mon Sep 17 00:00:00 2001 From: ozone-one <107835405+ozone-one@users.noreply.github.com> Date: Wed, 31 Jan 2024 18:55:13 +0530 Subject: [PATCH 4/5] Update main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 25b542d..768bc7f 100644 --- a/main.py +++ b/main.py @@ -12,7 +12,7 @@ @app.route('/', methods=['GET', 'POST']) def index(): return Response( - response=json.dumps({"welcome": "to ozone onbaording", 'value': "ozone-python-hello-world application"}), + response=json.dumps({"welcome": "to ozone onboarding", 'value': "ozone-python-hello-world application"}), mimetype='application/json' ) From 7a0d4ec7d605bed7ae32014de777a7b5c47ae6e8 Mon Sep 17 00:00:00 2001 From: Ranbir Singh <13351472+binkkatal@users.noreply.github.com> Date: Tue, 24 Jun 2025 15:03:50 +0530 Subject: [PATCH 5/5] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ff783f7..fbae532 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ozregistry.azurecr.io/ozone-public-registry/ozoneprod/python:3.8-slim-buster +FROM blrdbharbor.ozonecloud.ai/ozone-public-registry/ozoneprod/python:3.8-slim-buster WORKDIR /app COPY . . RUN pip3 install -U pip