From 8c6d07d0e2db08f6a3390ad536e7953aaea93c18 Mon Sep 17 00:00:00 2001 From: DatTT127 Date: Sun, 19 Jul 2026 00:58:17 +0700 Subject: [PATCH] update --- .../backend_deploy/gitea_modal_build.py | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/workspace/sprint_1_2/CODEBASE/deps/implementation/backend_deploy/gitea_modal_build.py b/workspace/sprint_1_2/CODEBASE/deps/implementation/backend_deploy/gitea_modal_build.py index 9d20704..0700253 100644 --- a/workspace/sprint_1_2/CODEBASE/deps/implementation/backend_deploy/gitea_modal_build.py +++ b/workspace/sprint_1_2/CODEBASE/deps/implementation/backend_deploy/gitea_modal_build.py @@ -84,7 +84,7 @@ def build_and_push( # Explicitly use the inside-container paths workspace_root = Path("/workspace") # Adjust this path if your Dockerfile lives in a specific subdirectory inside your workspace - dockerfile_path = workspace_root / "workspace/deps/implementation/backend_deploy/Dockerfile" + dockerfile_path = workspace_root / "workspace/sprint_1_2/CODEBASE/deps/implementation/backend_deploy/Dockerfile" # Prepare docker config for Kaniko if pushing to ECR docker_config_dir = None @@ -112,21 +112,21 @@ def build_and_push( print(f"ECR auth configured for {registry}") # --- INSPECT MODAL WORKSPACE DIRECTORIES HERE --- Success - print("\n=== DEBUG: Inspecting Modal Container Filesystem ===") - try: - # 1. Print the contents of the /workspace root directory - print(f"Contents of {workspace_root}:") - workspace_files = subprocess.run(["ls", "-la", str(workspace_root / "workspace/sprint_1_2/CODEBASE/deps/implementation/backend_deploy/")], capture_output=True, text=True) - print(workspace_files.stdout) + # print("\n=== DEBUG: Inspecting Modal Container Filesystem ===") + # try: + # # 1. Print the contents of the /workspace root directory + # print(f"Contents of {workspace_root}:") + # workspace_files = subprocess.run(["ls", "-la", str(workspace_root / "workspace/sprint_1_2/CODEBASE/deps/implementation/backend_deploy/Dockerfile")], capture_output=True, text=True) + # print(workspace_files.stdout) - # # 2. Verify exactly where the copied Kaniko binary lives - # print("Checking for Kaniko binary location:") - # kaniko_check = subprocess.run(["ls", "-la", "/usr/local/bin/kaniko"], capture_output=True, text=True) - # print(kaniko_check.stdout if kaniko_check.returncode == 0 else "❌ Kaniko not found in /usr/local/bin/kaniko\n") + # # # 2. Verify exactly where the copied Kaniko binary lives + # # print("Checking for Kaniko binary location:") + # # kaniko_check = subprocess.run(["ls", "-la", "/usr/local/bin/kaniko"], capture_output=True, text=True) + # # print(kaniko_check.stdout if kaniko_check.returncode == 0 else "❌ Kaniko not found in /usr/local/bin/kaniko\n") - except Exception as e: - print(f"Failed to run inspection: {e}") - print("==================================================\n") + # except Exception as e: + # print(f"Failed to run inspection: {e}") + # print("==================================================\n") # Build with Kaniko kaniko_cmd = [