update
Some checks failed
Backend EC - Modal Deployment / notify-deploy (push) Has been cancelled
Backend EC - Modal Deployment / build-and-push (push) Has been cancelled

This commit is contained in:
DatTT127
2026-07-19 08:11:58 +07:00
parent d8960ec448
commit ff995d716e

View File

@@ -155,21 +155,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/Dockerfile")], 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")], 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")
# 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 = [