From 2c18f6d975b26286f234ae7c17353530f3a22c6b Mon Sep 17 00:00:00 2001 From: MacRimi Date: Thu, 12 Mar 2026 23:37:21 +0100 Subject: [PATCH] update oci manager --- AppImage/components/secure-gateway-setup.tsx | 18 +- AppImage/scripts/build_appimage.sh | 3 +- AppImage/scripts/oci_manager.py | 1259 +++++++++--------- 3 files changed, 620 insertions(+), 660 deletions(-) diff --git a/AppImage/components/secure-gateway-setup.tsx b/AppImage/components/secure-gateway-setup.tsx index edd696af..f879ab3b 100644 --- a/AppImage/components/secure-gateway-setup.tsx +++ b/AppImage/components/secure-gateway-setup.tsx @@ -99,11 +99,14 @@ export function SecureGatewaySetup() { const loadInitialData = async () => { setLoading(true) try { - // Load runtime info (just for display, deploy will auto-install if needed) + // Load runtime info (checks for Proxmox 9.1+ OCI support) const runtimeRes = await fetchApi("/api/oci/runtime") if (runtimeRes.success && runtimeRes.available) { setRuntimeAvailable(true) setRuntimeInfo({ runtime: runtimeRes.runtime, version: runtimeRes.version }) + } else { + // Show version requirement message + setRuntimeInfo({ runtime: "proxmox-lxc", version: runtimeRes.version || "unknown" }) } // Load app definition @@ -180,8 +183,8 @@ export function SecureGatewaySetup() { if (!result.success) { // Make runtime errors more user-friendly let errorMsg = result.message || "Deployment failed" - if (errorMsg.includes("runtime not available") || errorMsg.includes("Container runtime")) { - errorMsg = "Container runtime (Podman) is required but could not be installed automatically. Please run 'apt install podman' on your Proxmox host first, then try again." + if (errorMsg.includes("9.1") || errorMsg.includes("OCI") || errorMsg.includes("not supported")) { + errorMsg = "OCI containers require Proxmox VE 9.1 or later. Please upgrade your Proxmox installation to use this feature." } setDeployError(errorMsg) setDeploying(false) @@ -805,18 +808,19 @@ export function SecureGatewaySetup() { {runtimeAvailable ? (
- {runtimeInfo?.runtime} {runtimeInfo?.version} available + Proxmox VE {runtimeInfo?.version} - OCI support available
) : ( -
- - Podman will be installed automatically during deployment +
+ + Requires Proxmox VE 9.1+ (current: {runtimeInfo?.version || "unknown"})
)}