qiaofeng1227 2 years ago
parent
commit
9a1ec05b07
2 changed files with 5 additions and 2 deletions
  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 mkdir /data
 
-# Expose the port in which the application will be deployeds
+# Expose the port in which the application will be deployed
 EXPOSE 5000

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

@@ -185,8 +185,11 @@ def get_map(path):
     if int(code) == 0:
         ret = output["result"]
         env_list = ret.split("\n")
+        myLogger.info_logger(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
 
 def read_env(path, key):