From 184a214bff082607771bb0a2701cb7e8eb774d0a Mon Sep 17 00:00:00 2001
From: ssongliu <73214554+ssongliu@users.noreply.github.com>
Date: Tue, 16 Dec 2025 16:35:59 +0800
Subject: [PATCH] feat: Add hint messages for compose environment variables
(#11351)
---
agent/app/service/snapshot.go | 6 +++++-
frontend/src/components/label/index.vue | 10 ++++++++--
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/agent/app/service/snapshot.go b/agent/app/service/snapshot.go
index 3392e2e7c..976ce4a7b 100644
--- a/agent/app/service/snapshot.go
+++ b/agent/app/service/snapshot.go
@@ -299,7 +299,11 @@ func loadAppImage(list []dto.DataTree) []dto.DataTree {
for i := 0; i < len(list); i++ {
itemAppImage := dto.DataTree{ID: uuid.NewString(), Label: "appImage"}
- stdout, err := cmd.RunDefaultWithStdoutBashCf("cat %s | grep image: ", list[i].Path)
+ appPath := path.Join(global.Dir.DataDir, "apps", list[i].Key, list[i].Name)
+ if list[i].IsLocal {
+ appPath = path.Join(global.Dir.AppDir, "local", strings.TrimPrefix(list[i].Key, "local"), list[i].Name)
+ }
+ stdout, err := cmd.RunDefaultWithStdoutBashCf("cat %s | grep image: ", path.Join(appPath, "docker-compose.yml"))
if err != nil {
list[i].Children = append(list[i].Children, itemAppImage)
continue
diff --git a/frontend/src/components/label/index.vue b/frontend/src/components/label/index.vue
index ed3296928..1a40d7943 100644
--- a/frontend/src/components/label/index.vue
+++ b/frontend/src/components/label/index.vue
@@ -18,11 +18,17 @@
-
+
-
+