Browse Source

Modificaciones para implementación de HTTPS

Daniel Libonati 7 years ago
parent
commit
4a839c5f8c
1 changed files with 21 additions and 6 deletions
  1. 21 6
      tools/src/Release.php

+ 21 - 6
tools/src/Release.php

@@ -398,6 +398,7 @@ class Release extends Command
             ->addService($module)
             ->image($registry . "fd3/$module:" . $version)
             ->restart($this->_docker_restart_default)
+            ->build("base/")
             ->addLinks("mysql:mysql")
             ->addEnv_file("running.env")
             ->addEnv_file($host_env_file)
@@ -421,9 +422,10 @@ class Release extends Command
             ->addService($module)
             ->image($registry . "fd3/$module:" . $version)
             ->restart($this->_docker_restart_default)
+            ->build("ftth/")
             ->addLinks("mysql:mysql")
             ->addLinks("base")
-            ->addLinks("base", $this->getDomain("base"))
+            //->addLinks("base", $this->getDomain("base"))
             ->addEnv_file("running.env")
             ->addEnv_file($host_env_file)
             ->addEnv_file($module . "." . $host_env_file)
@@ -449,10 +451,11 @@ class Release extends Command
             ->addService($module)
             ->image($registry . "fd3/$module:" . $version)
             ->restart($this->_docker_restart_default)
+            ->build("stats/")
             ->addLinks("mysql:mysql")
             ->addLinks("jsonep_mysql:jsonep_mysql")
             ->addLinks("base")
-            ->addLinks("base", $this->getDomain("base"))
+            //->addLinks("base", $this->getDomain("base"))
             ->addVolumes("./$module/", "/opt/$module")
             ->addEnv_file("running.env")
             ->addEnv_file($host_env_file)
@@ -476,9 +479,10 @@ class Release extends Command
             ->addService($module)
             ->image($registry . "fd3/$module:" . $version)
             ->restart($this->_docker_restart_default)
+            ->build("mapas/")
             ->addLinks("mysql:mysql")
             ->addLinks("base")
-            ->addLinks("base", $this->getDomain("base"))
+            //->addLinks("base", $this->getDomain("base"))
             ->addEnv_file("running.env")
             ->addEnv_file($host_env_file)
             ->addEnv_file($module . "." . $host_env_file)
@@ -502,9 +506,10 @@ class Release extends Command
             ->addService($module)
             ->image($registry . "fd3/$module:" . $version)
             ->restart($this->_docker_restart_default)
+            ->build("cablemodem/")
             ->addLinks("mysql:mysql")
             ->addLinks("base")
-            ->addLinks("base", $this->getDomain("base"))
+            //->addLinks("base", $this->getDomain("base"))
             ->addEnv_file("running.env")
             ->addEnv_file($host_env_file)
             ->addEnv_file($module . "." . $host_env_file)
@@ -551,9 +556,10 @@ class Release extends Command
             ->addService($module)
             ->image($registry . "fd3/$module:" . $version)
             ->restart($this->_docker_restart_default)
+            ->build("radius/")
             ->addLinks("mysql:mysql")
             ->addLinks("base")
-            ->addLinks("base", $this->getDomain("base"))
+            //->addLinks("base", $this->getDomain("base"))
             ->addEnv_file("running.env")
             ->addEnv_file($host_env_file)
             ->addEnv_file($module . "." . $host_env_file)
@@ -576,9 +582,10 @@ class Release extends Command
             ->addService($module)
             ->image($registry . "fd3/$module:" . $version)
             ->restart($this->_docker_restart_default)
+            ->build("dhcp/")
             ->addLinks("mysql:mysql")
             ->addLinks("base")
-            ->addLinks("base", $this->getDomain("base"))
+            //->addLinks("base", $this->getDomain("base"))
             ->addEnv_file("running.env")
             ->addEnv_file($host_env_file)
             ->addEnv_file($module . "." . $host_env_file)
@@ -605,6 +612,14 @@ class Release extends Command
             ->restart($this->_docker_restart_default)
             ->addPorts(80, 80)
             ->addPorts(443, 443)
+            ->addVolumes("./base/", "/opt/base")
+            ->addVolumes("./ftth/", "/opt/ftth")
+            ->addVolumes("./mapas/", "/opt/mapas")
+            ->addVolumes("./radius/", "/opt/radius")
+            ->addVolumes("./stats/", "/opt/stats")
+            ->addVolumes("./cablemodem/", "/opt/cablemodem")
+            ->addVolumes("./dhcp/", "/opt/dhcp")
+            ->addVolumes("./grafana/", "/opt/grafana")
             ->addVolumes("/var/run/docker.sock", "/tmp/docker.sock:ro")
             ->addVolumes("./extra/nginx/certs", "/etc/nginx/certs:ro")
             ->addVolumes("./extra/nginx/conf.d", "/etc/nginx/conf.d")