|
@@ -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())
|