qiaofeng1227 2 年之前
父節點
當前提交
9a1ec05b07
共有 2 個文件被更改,包括 5 次插入2 次删除
  1. 1 1
      appmanage/Dockerfile
  2. 4 1
      appmanage/api/utils/docker.py

+ 1 - 1
appmanage/Dockerfile

@@ -18,5 +18,5 @@ RUN chmod +x /etc/supervisor/conf.d/supervisord.conf /cmd.sh
 RUN pip install -r requirements.txt
 RUN pip install -r requirements.txt
 RUN mkdir /data
 RUN mkdir /data
 
 
-# Expose the port in which the application will be deployeds
+# Expose the port in which the application will be deployed
 EXPOSE 5000
 EXPOSE 5000

+ 4 - 1
appmanage/api/utils/docker.py

@@ -185,8 +185,11 @@ def get_map(path):
     if int(code) == 0:
     if int(code) == 0:
         ret = output["result"]
         ret = output["result"]
         env_list = ret.split("\n")
         env_list = ret.split("\n")
+        myLogger.info_logger(env_list)
         for env in env_list:
         for env in env_list:
-            env_dic[env.split("=")[0]] = env.split("=")[1]
+            myLogger.info_logger(env)
+            if "=" in env:
+                env_dic[env.split("=")[0]] = env.split("=")[1]
     return env_dic
     return env_dic
 
 
 def read_env(path, key):
 def read_env(path, key):