Yicong-Huang commented on code in PR #6131:
URL: https://github.com/apache/texera/pull/6131#discussion_r3560988159


##########
amber/src/main/scala/org/apache/texera/web/resource/pythonvirtualenvironment/PveManager.scala:
##########
@@ -94,11 +94,15 @@ object PveManager {
     }
   }
 
+  // The lock file is copied to /tmp/system-requirements-lock.txt inside every
+  // deployed image (see bin/computing-unit-master.dockerfile), so single-node
+  // Docker and Kubernetes both find it there. Only a source-tree dev run reads
+  // the repo-relative amber/ copy. `isLocal` alone can't distinguish a
+  // containerized single-node run (also non-k8s) from a dev run, so probe.
   private def getSystemPath(isLocal: Boolean): Path = {
-    Paths.get(
-      if (isLocal) "amber/system-requirements-lock.txt"
-      else "/tmp/system-requirements-lock.txt"
-    )
+    val deployPath = Paths.get("/tmp/system-requirements-lock.txt")
+    if (Files.exists(deployPath)) deployPath
+    else Paths.get("amber/system-requirements-lock.txt")

Review Comment:
   I don't think we should rely on "system-requirements-lock.txt" any more. we 
removed it in #5608 



##########
bin/single-node/nginx.conf:
##########
@@ -95,6 +95,12 @@ http {
             proxy_set_header Host $host;
         }
 
+        location /api/pve/ {
+            proxy_pass http://workflow-runtime-coordinator-service:8085;
+            proxy_set_header Host $host;
+            proxy_set_header X-Real-IP $remote_addr;
+        }
+

Review Comment:
   this should be moved before `/api`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to