|
@@ -151,7 +151,7 @@ class Release extends Command
|
|
'HTTPS_METHOD' => 'nohttps',
|
|
'HTTPS_METHOD' => 'nohttps',
|
|
),
|
|
),
|
|
'OAUTH' => false,
|
|
'OAUTH' => false,
|
|
- 'MODULE_INSTALL' => false
|
|
|
|
|
|
+ 'MODULE_INSTALL' => true
|
|
),
|
|
),
|
|
"pma" => array(
|
|
"pma" => array(
|
|
'HOST_ENV' => true,
|
|
'HOST_ENV' => true,
|
|
@@ -202,6 +202,7 @@ class Release extends Command
|
|
->addOption('extra-build', null, InputOption::VALUE_REQUIRED, 'Generate image build', "false")
|
|
->addOption('extra-build', null, InputOption::VALUE_REQUIRED, 'Generate image build', "false")
|
|
->addOption('host-ip', null, InputOption::VALUE_REQUIRED, 'Ip of the runnning host to be added to the /etc/hosts file, eventually', "127.0.1.1")
|
|
->addOption('host-ip', null, InputOption::VALUE_REQUIRED, 'Ip of the runnning host to be added to the /etc/hosts file, eventually', "127.0.1.1")
|
|
->addOption('domain', null, InputOption::VALUE_REQUIRED, 'Domain where the flowdat will be installed', "flowdat.com")
|
|
->addOption('domain', null, InputOption::VALUE_REQUIRED, 'Domain where the flowdat will be installed', "flowdat.com")
|
|
|
|
+ ->addOption('client', null, InputOption::VALUE_REQUIRED, 'Client name, if is not provided uses, the dirname of the installation', false)
|
|
->addOption('modules', null, InputOption::VALUE_REQUIRED, 'List of modules to install separated by coma.', "all")
|
|
->addOption('modules', null, InputOption::VALUE_REQUIRED, 'List of modules to install separated by coma.', "all")
|
|
->addOption('inventory', null, InputOption::VALUE_REQUIRED, 'Write inventory.ini by default.', true)
|
|
->addOption('inventory', null, InputOption::VALUE_REQUIRED, 'Write inventory.ini by default.', true)
|
|
->addOption('docker-tag', null, InputOption::VALUE_REQUIRED, 'Docker tag to be used', "latest");
|
|
->addOption('docker-tag', null, InputOption::VALUE_REQUIRED, 'Docker tag to be used', "latest");
|
|
@@ -234,9 +235,14 @@ class Release extends Command
|
|
}
|
|
}
|
|
}
|
|
}
|
|
$this->_domain = $input->getOption("domain");
|
|
$this->_domain = $input->getOption("domain");
|
|
|
|
+ $this->_client = $input->getOption("client");
|
|
|
|
+ if(!$this->_client){
|
|
|
|
+ $this->_client = basename(realpath($dir));
|
|
|
|
+ }
|
|
$docker_tag = $input->getOption("docker-tag");
|
|
$docker_tag = $input->getOption("docker-tag");
|
|
|
|
|
|
$this->_ansible_vars["DOMAIN"] = $this->_domain;
|
|
$this->_ansible_vars["DOMAIN"] = $this->_domain;
|
|
|
|
+ $this->_ansible_vars["CLIENT"] = $this->_client;
|
|
|
|
|
|
$dObj = new DevOps\FileSystem(realpath($dir));
|
|
$dObj = new DevOps\FileSystem(realpath($dir));
|
|
$dObj->dirExists()->realpath();
|
|
$dObj->dirExists()->realpath();
|
|
@@ -325,6 +331,7 @@ class Release extends Command
|
|
->restart($this->_docker_restart_default)
|
|
->restart($this->_docker_restart_default)
|
|
->addLinks("mysql:mysql")
|
|
->addLinks("mysql:mysql")
|
|
->addLinks("amqp")
|
|
->addLinks("amqp")
|
|
|
|
+ ->addEnv_file("running.env")
|
|
->addEnv_file($host_env_file)
|
|
->addEnv_file($host_env_file)
|
|
->addEnv_file($module . "." . $host_env_file)
|
|
->addEnv_file($module . "." . $host_env_file)
|
|
->addVolumes("./$module/", "/opt/$module");
|
|
->addVolumes("./$module/", "/opt/$module");
|
|
@@ -350,6 +357,7 @@ class Release extends Command
|
|
->addLinks("base")
|
|
->addLinks("base")
|
|
->addLinks("amqp")
|
|
->addLinks("amqp")
|
|
->addLinks("base", $this->getDomain("base"))
|
|
->addLinks("base", $this->getDomain("base"))
|
|
|
|
+ ->addEnv_file("running.env")
|
|
->addEnv_file($host_env_file)
|
|
->addEnv_file($host_env_file)
|
|
->addEnv_file($module . "." . $host_env_file)
|
|
->addEnv_file($module . "." . $host_env_file)
|
|
->addEnv_file($module . ".oauth.env")
|
|
->addEnv_file($module . ".oauth.env")
|
|
@@ -379,6 +387,7 @@ class Release extends Command
|
|
//->addLinks("jsendpoint", "endpoint")
|
|
//->addLinks("jsendpoint", "endpoint")
|
|
//->addLinks("statsd", "statsd")
|
|
//->addLinks("statsd", "statsd")
|
|
->addVolumes("./$module/", "/opt/$module")
|
|
->addVolumes("./$module/", "/opt/$module")
|
|
|
|
+ ->addEnv_file("running.env")
|
|
->addEnv_file($host_env_file)
|
|
->addEnv_file($host_env_file)
|
|
->addEnv_file($module . "." . $host_env_file)
|
|
->addEnv_file($module . "." . $host_env_file)
|
|
->addEnv_file("$module.oauth.env");
|
|
->addEnv_file("$module.oauth.env");
|
|
@@ -404,6 +413,7 @@ class Release extends Command
|
|
->addLinks("base")
|
|
->addLinks("base")
|
|
->addLinks("amqp")
|
|
->addLinks("amqp")
|
|
->addLinks("base", $this->getDomain("base"))
|
|
->addLinks("base", $this->getDomain("base"))
|
|
|
|
+ ->addEnv_file("running.env")
|
|
->addEnv_file($host_env_file)
|
|
->addEnv_file($host_env_file)
|
|
->addEnv_file($module . "." . $host_env_file)
|
|
->addEnv_file($module . "." . $host_env_file)
|
|
->addEnv_file("$module.oauth.env")
|
|
->addEnv_file("$module.oauth.env")
|
|
@@ -431,6 +441,7 @@ class Release extends Command
|
|
->addLinks("base")
|
|
->addLinks("base")
|
|
->addLinks("amqp")
|
|
->addLinks("amqp")
|
|
->addLinks("base", $this->getDomain("base"))
|
|
->addLinks("base", $this->getDomain("base"))
|
|
|
|
+ ->addEnv_file("running.env")
|
|
->addEnv_file($host_env_file)
|
|
->addEnv_file($host_env_file)
|
|
->addEnv_file($module . "." . $host_env_file)
|
|
->addEnv_file($module . "." . $host_env_file)
|
|
->addEnv_file("$module.oauth.env")
|
|
->addEnv_file("$module.oauth.env")
|
|
@@ -458,6 +469,7 @@ class Release extends Command
|
|
->addLinks("base")
|
|
->addLinks("base")
|
|
->addLinks("amqp")
|
|
->addLinks("amqp")
|
|
->addLinks("base", $this->getDomain("base"))
|
|
->addLinks("base", $this->getDomain("base"))
|
|
|
|
+ ->addEnv_file("running.env")
|
|
->addEnv_file($host_env_file)
|
|
->addEnv_file($host_env_file)
|
|
->addEnv_file($module . "." . $host_env_file)
|
|
->addEnv_file($module . "." . $host_env_file)
|
|
->addEnv_file("$module.oauth.env")
|
|
->addEnv_file("$module.oauth.env")
|
|
@@ -484,6 +496,7 @@ class Release extends Command
|
|
->addLinks("base")
|
|
->addLinks("base")
|
|
->addLinks("amqp")
|
|
->addLinks("amqp")
|
|
->addLinks("base", $this->getDomain("base"))
|
|
->addLinks("base", $this->getDomain("base"))
|
|
|
|
+ ->addEnv_file("running.env")
|
|
->addEnv_file($host_env_file)
|
|
->addEnv_file($host_env_file)
|
|
->addEnv_file($module . "." . $host_env_file)
|
|
->addEnv_file($module . "." . $host_env_file)
|
|
->addEnv_file("$module.oauth.env")
|
|
->addEnv_file("$module.oauth.env")
|