|
@@ -95,6 +95,7 @@ class Release extends Command
|
|
|
$this->_mysql_user = "iksop";
|
|
|
$this->_mysql_pass = "235r2342gtfsw";
|
|
|
$this->_mysql_root_pass = "235r2342gtfsw";
|
|
|
+ $this->_mysql_max_connections = 10000;
|
|
|
$this->_docker_restart_default = "on-failure:10";
|
|
|
$this->_user_system = ['users' =>
|
|
|
[
|
|
@@ -269,7 +270,6 @@ class Release extends Command
|
|
|
}
|
|
|
$this->_domain = $input->getOption("domain");
|
|
|
$this->_client = $input->getOption("client");
|
|
|
- $this->_dir = realpath($dir);
|
|
|
|
|
|
if (!$this->_client) {
|
|
|
$this->_client = basename(realpath($this->directory));
|
|
@@ -635,7 +635,9 @@ class Release extends Command
|
|
|
array(
|
|
|
"MYSQL_ROOT_PASSWORD" => $this->_mysql_root_pass,
|
|
|
"MYSQL_USER" => $this->_mysql_user,
|
|
|
- "MYSQL_PASSWORD" => $this->_mysql_pass));
|
|
|
+ "MYSQL_PASSWORD" => $this->_mysql_pass,
|
|
|
+ "MYSQL_MAX_CONNECTIONS" => $this->_mysql_max_connections,
|
|
|
+ ));
|
|
|
}
|
|
|
|
|
|
function addRedis(FileFormat2 $composer, $config = array(), $flavor = "dev")
|
|
@@ -836,6 +838,21 @@ class Release extends Command
|
|
|
->addEnviroment("AMQP_KEY", "ftth")
|
|
|
->addVolumes("./ftth/", "/opt/ftth");
|
|
|
|
|
|
+ $composer
|
|
|
+ ->addService("cablemodem_tasklogger_worker")
|
|
|
+ ->image($registry . "fd3/cablemodem:" . $version)
|
|
|
+ ->build("./cablemodem/")
|
|
|
+ ->command("bin/console rabbitmq:consumer flowdat_tasklogger")
|
|
|
+ ->restart($this->_docker_restart_default)
|
|
|
+ ->addLinks("mysql")
|
|
|
+ ->addLinks("base")
|
|
|
+ ->addLinks("amqp")
|
|
|
+ ->addLinks("nginx", $this->getDomain("base"))
|
|
|
+ ->addEnv_file("running.env")
|
|
|
+ ->addEnv_file("host.env")
|
|
|
+ ->addEnviroment("AMQP_KEY", "cablemodem")
|
|
|
+ ->addVolumes("./cablemodem/", "/opt/cablemodem");
|
|
|
+
|
|
|
$composer
|
|
|
->addService("stats_command_worker")
|
|
|
->image($registry . "fd3/stats:" . $version)
|