Browse Source

Add services genieacs

Add remove cache after load all container
gabriel 6 years ago
parent
commit
4b43451690

+ 1 - 46
tools/src/Release.php

@@ -430,11 +430,8 @@ class Release extends Command
                     }
 
                 }
-
             }
-
         }
-
         $modules = implode(",", $modules);
         return $modules;
     }
@@ -479,10 +476,6 @@ class Release extends Command
             "host_env_file" => $host_env_file,
             "registry" => $registry);
 
-
-        /**************************************************************************************/
-        /* Apps / Web UI / PMA */
-        /**************************************************************************************/
         $ip = explode(".", $this->_network_ip);
         array_pop($ip);
         $ip = implode(".", $ip);
@@ -499,8 +492,6 @@ class Release extends Command
                 ->setIp($ip)
                 ->add();
         }
-
-
         $this->_dObj->file("docker-compose.yml")->content($composer->render());
 
         // escribo un archivo inventory.ini por defecto para no tener que lanzar los docker
@@ -770,40 +761,4 @@ class Release extends Command
         $composer->getVolumes()->addVolumen(Api::API_SOCKET_VOLUMEN, 'local');
 
     }
-}
-// 2= Nginx
-// 3= Mongodb
-// 4= Mysql
-// 5= Supervisord
-// 6= Amqp
-// 7= Redis
-// 8= Api
-// 9= Swagger
-//10= Pma
-//11= Base
-//12= Base_log
-//13= Cablemodem
-//14= Cablemodem_cmd
-//15= Cablemodem_task
-//16= Dhcp
-//17= Dhcp_task
-//18= Ftth
-//19= Ftth_cmd
-//20= Ftth_task
-//21= Kea
-//22= Radius
-//23= Stats
-//24= Stats_cmd
-//25= Statsd
-//26= Tftp
-//27= Freeradius
-//28= Genieacs_cwmp
-//29= Genieacs_fs
-//30= Genieacs_gui
-//31= Genieacs_nbi
-//32= Geoserver
-//33= Jsendpoint
-//34= Jsonep_mongo
-//35= Jsonep_mysql
-
-
+}

+ 1 - 1
tools/src/Services/Genieacs_cwmp.php

@@ -31,7 +31,7 @@ class Genieacs_cwmp extends InitialService
      */
     public function add()
     {
-        $module = str_replace("_", "-", $this->getModuleName());
+        $module = $this->getModuleName();
         if ($this->getRelease()->needInstallModule($module)) {
             $this->getComposer()
                 ->addService($module)

+ 1 - 1
tools/src/Services/Genieacs_fs.php

@@ -31,7 +31,7 @@ class Genieacs_fs extends InitialService
      */
     public function add()
     {
-        $module = str_replace("_", "-", $this->getModuleName());
+        $module = $this->getModuleName();
         if ($this->getRelease()->needInstallModule($module)) {
             $this->getComposer()
                 ->addService($module)

+ 1 - 1
tools/src/Services/Genieacs_gui.php

@@ -31,7 +31,7 @@ class Genieacs_gui extends InitialService
      */
     public function add()
     {
-        $module = str_replace("_", "-", $this->getModuleName());
+        $module = $this->getModuleName();
         if ($this->getRelease()->needInstallModule($module)) {
             $this->getComposer()
                 ->addService($module)

+ 2 - 1
tools/src/Services/Genieacs_nbi.php

@@ -31,7 +31,7 @@ class Genieacs_nbi extends InitialService
      */
     public function add()
     {
-        $module = str_replace("_", "-", $this->getModuleName());
+        $module = $this->getModuleName();
         if ($this->getRelease()->needInstallModule($module)) {
             $this->getComposer()
                 ->addService($module)
@@ -43,4 +43,5 @@ class Genieacs_nbi extends InitialService
                 ->network($this->getRelease()->_network_name)->ipv4_address($this->generateIP($this->ip_server));
         }
     }
+
 }