From 3dd238d6c3fdaad541c05efc06314e1a96e4008a Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 09:56:06 +0300 Subject: [PATCH 01/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index b69f3b1..874483b 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -9,5 +9,5 @@ build: - venv/bin/pip install -r requirements.txt # Install dependencies within the virtual environment # Specify the start phase command -start: - command: venv/bin/python main.py # Adjust to the path to your application entry point \ No newline at end of file +run: + command: venv/bin/python main.py # Adjust to the path to your application entry point From 56481c95ea5119f31b67559164a122dbee7fdbba Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 10:05:25 +0300 Subject: [PATCH 02/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index 874483b..b5290eb 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -1,5 +1,4 @@ version: 1.0 -name: linguaphoto-backend runtime: python3 # Specify the Python runtime version # Specify the build phase commands From 253f49d768f539776ca2962964b9056243350345 Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 10:10:30 +0300 Subject: [PATCH 03/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index b5290eb..2bb0117 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -4,8 +4,9 @@ runtime: python3 # Specify the Python runtime version # Specify the build phase commands build: commands: - - python3 -m venv venv - - venv/bin/pip install -r requirements.txt # Install dependencies within the virtual environment + build: + - python -m venv venv + - venv/bin/pip install -r requirements.txt # Install dependencies within the virtual environment # Specify the start phase command run: From cfff082c0a5464a691bdd4ace52b45410a05d34a Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 11:11:04 +0300 Subject: [PATCH 04/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index 2bb0117..fb47f7c 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -6,8 +6,9 @@ build: commands: build: - python -m venv venv - - venv/bin/pip install -r requirements.txt # Install dependencies within the virtual environment + - venv/Scripts/activate + - pip install -r requirements.txt # Install dependencies within the virtual environment # Specify the start phase command run: - command: venv/bin/python main.py # Adjust to the path to your application entry point + command: python main.py # Adjust to the path to your application entry point From 8f9978d5e45ed11a3835b852385633091258daa8 Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 11:46:46 +0300 Subject: [PATCH 05/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index fb47f7c..04d02d1 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -6,7 +6,7 @@ build: commands: build: - python -m venv venv - - venv/Scripts/activate + - source venv/Scripts/activate - pip install -r requirements.txt # Install dependencies within the virtual environment # Specify the start phase command From 6127bd3eddb0e165c62d6b0b3bbb95b4f5fec260 Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 13:50:54 +0300 Subject: [PATCH 06/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index 04d02d1..d47cf32 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -5,10 +5,12 @@ runtime: python3 # Specify the Python runtime version build: commands: build: - - python -m venv venv - - source venv/Scripts/activate + - sudo apt-get update # Update package list + - sudo apt-get install -y python3-venv # Install python3-venv + - python3 -m venv venv # Create virtual environment + - source venv/bin/activate # Activate virtual environment - pip install -r requirements.txt # Install dependencies within the virtual environment # Specify the start phase command run: - command: python main.py # Adjust to the path to your application entry point + command: venv/bin/python main.py # Use the virtual environment's Python to run the application From 03f7b08bf44dd371ea4ceba48e4f53f691240cbb Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 13:58:12 +0300 Subject: [PATCH 07/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index d47cf32..baccb84 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -5,8 +5,8 @@ runtime: python3 # Specify the Python runtime version build: commands: build: - - sudo apt-get update # Update package list - - sudo apt-get install -y python3-venv # Install python3-venv + - sudo apt update # Update package list + - sudo apt install -y python3-venv # Install python3-venv - python3 -m venv venv # Create virtual environment - source venv/bin/activate # Activate virtual environment - pip install -r requirements.txt # Install dependencies within the virtual environment From fd7cd98e578bf90e33e361de1cb0e83841b810fe Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 14:05:49 +0300 Subject: [PATCH 08/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index baccb84..6e66bd0 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -5,8 +5,6 @@ runtime: python3 # Specify the Python runtime version build: commands: build: - - sudo apt update # Update package list - - sudo apt install -y python3-venv # Install python3-venv - python3 -m venv venv # Create virtual environment - source venv/bin/activate # Activate virtual environment - pip install -r requirements.txt # Install dependencies within the virtual environment From a899f357df696ed76e332fe85124bd5d4c771d9a Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 14:11:50 +0300 Subject: [PATCH 09/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index 6e66bd0..1537907 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -5,7 +5,7 @@ runtime: python3 # Specify the Python runtime version build: commands: build: - - python3 -m venv venv # Create virtual environment + - python -m venv venv # Create virtual environment - source venv/bin/activate # Activate virtual environment - pip install -r requirements.txt # Install dependencies within the virtual environment From e809c8c977c0ec6520e40458461783e9d16d12ea Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 14:22:51 +0300 Subject: [PATCH 10/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index 1537907..55cd6fb 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -6,6 +6,7 @@ build: commands: build: - python -m venv venv # Create virtual environment + - ls -l venv/bin - source venv/bin/activate # Activate virtual environment - pip install -r requirements.txt # Install dependencies within the virtual environment From bc823ccae41a7d9cecb331c48669ad2af1be883e Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 14:35:09 +0300 Subject: [PATCH 11/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index 55cd6fb..96efe9b 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -7,7 +7,6 @@ build: build: - python -m venv venv # Create virtual environment - ls -l venv/bin - - source venv/bin/activate # Activate virtual environment - pip install -r requirements.txt # Install dependencies within the virtual environment # Specify the start phase command From c6eca2eb88c69372fa94aa370d9ac354bd7677f4 Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 14:47:43 +0300 Subject: [PATCH 12/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index 96efe9b..c72891f 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -5,10 +5,7 @@ runtime: python3 # Specify the Python runtime version build: commands: build: - - python -m venv venv # Create virtual environment - - ls -l venv/bin - pip install -r requirements.txt # Install dependencies within the virtual environment - # Specify the start phase command run: command: venv/bin/python main.py # Use the virtual environment's Python to run the application From 417c79a124e5d252c3bb2cb71025ad4419cc2b69 Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 15:09:02 +0300 Subject: [PATCH 13/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index c72891f..25a0148 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -5,7 +5,7 @@ runtime: python3 # Specify the Python runtime version build: commands: build: - - pip install -r requirements.txt # Install dependencies within the virtual environment + - pip install -r --root-user-action=ignore requirements.txt # Install dependencies within the virtual environment # Specify the start phase command run: command: venv/bin/python main.py # Use the virtual environment's Python to run the application From 33b47fb18282952a331012f7e8f87482eb9490d1 Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 15:24:44 +0300 Subject: [PATCH 14/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index 25a0148..673c11a 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -5,7 +5,7 @@ runtime: python3 # Specify the Python runtime version build: commands: build: - - pip install -r --root-user-action=ignore requirements.txt # Install dependencies within the virtual environment + - pip install --user -r requirements.txt # Install dependencies within the virtual environment # Specify the start phase command run: command: venv/bin/python main.py # Use the virtual environment's Python to run the application From 3a8035947b0fbf6b4e59f5aae1755d5170fb519c Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 15:53:09 +0300 Subject: [PATCH 15/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index 673c11a..3a33e9b 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -5,6 +5,8 @@ runtime: python3 # Specify the Python runtime version build: commands: build: + - python3 -m venv venv + - source venv/bin/activate - pip install --user -r requirements.txt # Install dependencies within the virtual environment # Specify the start phase command run: From c45b09330d3af1dc523c22e091dfb5efa44af829 Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:05:37 +0300 Subject: [PATCH 16/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index 3a33e9b..c3c9828 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -5,9 +5,9 @@ runtime: python3 # Specify the Python runtime version build: commands: build: - - python3 -m venv venv + - python -m venv venv - source venv/bin/activate - - pip install --user -r requirements.txt # Install dependencies within the virtual environment + - pip install -r requirements.txt # Install dependencies within the virtual environment # Specify the start phase command run: - command: venv/bin/python main.py # Use the virtual environment's Python to run the application + command: python main.py # Use the virtual environment's Python to run the application From 318646771942fb2560c7fa0a70249d4ee559e2bf Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 22:17:30 +0300 Subject: [PATCH 17/17] Update apprunner.yaml --- linguaphoto/apprunner.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/linguaphoto/apprunner.yaml b/linguaphoto/apprunner.yaml index c3c9828..174e574 100644 --- a/linguaphoto/apprunner.yaml +++ b/linguaphoto/apprunner.yaml @@ -1,13 +1,15 @@ version: 1.0 -runtime: python3 # Specify the Python runtime version +runtime: python311 # Specify the Python runtime version # Specify the build phase commands build: commands: build: - - python -m venv venv - - source venv/bin/activate - - pip install -r requirements.txt # Install dependencies within the virtual environment + - python3 -m pip install --upgrade pip + - python3 -m venv venv + - source venv/Scripts/activate + - pip3 install -r requirements.txt # Install dependencies within the virtual environment + # Specify the start phase command run: - command: python main.py # Use the virtual environment's Python to run the application + command: python3 main.py # Adjust to the path to your application entry point