Browse Source

Update kea docker

Espinoza Guillermo 6 years ago
parent
commit
668bd24c2a
1 changed files with 11 additions and 3 deletions
  1. 11 3
      tools/src/Release.php

+ 11 - 3
tools/src/Release.php

@@ -195,6 +195,11 @@ class Release extends Command
                 'OAUTH' => false,
                 'MODULE_INSTALL' => true
             ),
+            "kea" => array(
+                'HOST_ENV' => false,
+                'OAUTH' => false,
+                'MODULE_INSTALL' => true
+            ),
             "geoserver" => array(
                 'HOST_ENV' => true,
                 "VAR_ENV" => array(
@@ -238,6 +243,9 @@ class Release extends Command
             ->addOption('extra-repo', null, InputOption::VALUE_REQUIRED, 'Git clone Url fot the app Base', "git@bitbucket.org:ikflowdat/extra.git")
             ->addOption('extra-ref', null, InputOption::VALUE_REQUIRED, 'Git reference (branch or tag) to clone the Extra files and apps', "master")
             ->addOption('extra-build', null, InputOption::VALUE_REQUIRED, 'Generate image build', "false")
+            ->addOption('kea-repo', null, InputOption::VALUE_REQUIRED, 'Git clone Url for KEA', "git@bitbucket.org:ikflowdat/kea.git")
+            ->addOption('kea-ref', null, InputOption::VALUE_REQUIRED, 'Git reference (branch or tag) to clone KEA files and apps', "master")
+            ->addOption('kea-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('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)
@@ -1000,13 +1008,13 @@ class Release extends Command
         $module = 'kea';
         $composer
             ->addService("kea")
-            ->image($registry . "fd3/kea:" . $version)
-            ->build("./extra/kea/")
+            ->image($registry . "fd3/kea-1.4.0:" . $version)
+            // ->build("./extra/kea/")
             ->restart($this->_docker_restart_default)
             ->addEnv_file("running.env")
             ->addEnv_file("host.env")
             ->addEnv_file($module . "." . $host_env_file)
-            ->addVolumes("./extra/kea/conf/kea-ctrl-agent.conf", "/usr/local/etc/kea/kea-ctrl-agent.conf")
+            ->addVolumes("./kea/conf/kea-ctrl-agent.conf", "/usr/local/etc/kea/kea-ctrl-agent.conf")
             ;
         $this->writeVariablesEnviroment($module . "." . $host_env_file, $module,
             array(