Преглед изворни кода

Merged in FD3-399 (pull request #27)

FD3-399 Se agregaron volumes y env files a supervisord
Guillermo Espinoza пре 7 година
родитељ
комит
f7725bc151
1 измењених фајлова са 13 додато и 1 уклоњено
  1. 13 1
      tools/src/Release.php

+ 13 - 1
tools/src/Release.php

@@ -575,10 +575,15 @@ class Release extends Command
             ->addVolumes("./mongodb", "/data/db");
     }
 
+    /**
+    * @param FileFormat2 $composer
+    * @param array $config
+    */
     function addSupervisord(FileFormat2 $composer, $config = array())
     {
         $version = "latest";
         $registry = "";
+        $host_env_file = "";
         extract($config);
 
         $composer
@@ -591,7 +596,14 @@ class Release extends Command
             ->addVolumes("./extra/supervisord/var/", "/var/log/supervisor/")
             ->addVolumes("./extra/supervisord/sshd_config", "/etc/ssh/sshd_config")
             ->addVolumes("./extra/supervisord/bin/fiberhome", "/usr/bin/fiberhome")
-            ->addVolumes("./extra/supervisord/bin/fiberlink", "/usr/bin/fiberlink");
+            ->addVolumes("./extra/supervisord/bin/fiberlink", "/usr/bin/fiberlink")
+            ->addVolumes("./extra/supervisord/bin/huawei", "/usr/bin/huawei")
+            ->addVolumes("./stats", "/opt/stats")
+            ->addEnv_file("running.env")
+            ->addEnv_file($host_env_file)
+            ->addEnv_file("stats.host.env")
+            ->addEnv_file("stats.oauth.env")
+            ;
     }
 
     function addMySql(FileFormat2 $composer, $config = array())