Browse Source

FD3-547 se agrega volumen para tftp

Guillermo Espinoza 6 years ago
parent
commit
05e921c118
1 changed files with 8 additions and 6 deletions
  1. 8 6
      tools/src/Release.php

+ 8 - 6
tools/src/Release.php

@@ -80,7 +80,7 @@ class Release extends Command
      * @var string $directory Directorio de instalacion
      */
     protected $directory;
-    
+
     /**
      * @var boolean $_use_nginx_links Para indicar si se crean los links nginx entre los modulos
      */
@@ -343,7 +343,7 @@ class Release extends Command
             $this->_ansible_vars["ENV_LIST"] = "prod,dev,test";
 	        $this->_ansible_vars["API_CIDR"] = "172.20.0.0/24";
             $this->_ansible_vars["MYSQL_ROOT_PASSWORD"] = $this->_mysql_root_pass;
-            
+
             $this->_add_nginx_links = (boolean)$input->getOption('add-nginx-links');
 
             $dObj = new DevOps\FileSystem(realpath($this->directory));
@@ -567,7 +567,7 @@ class Release extends Command
             ->addEnv_file("$module.oauth.env")
             ->addVolumes("./$module/", "/opt/$module")
             ->addVolumes("./$module/web/uploads", "/opt/$module/web/uploads");
-        
+
         $this->addNginxLinks($module, $composer);
 
         $this->addBuild($module, $composer);
@@ -594,7 +594,9 @@ class Release extends Command
         ->image($registry . "fd3/tftp:" . $version)
         ->addEnv_file($host_env_file)
         ->restart($this->_docker_restart_default)
-        ->addPorts(69, '69/udp');
+        ->addPorts(69, '69/udp')
+        ->addVolumes("/tftpboot", "/tftpboot")
+        ;
     }
 
     function addRadius(FileFormat2 $composer, $config = array())
@@ -650,12 +652,12 @@ class Release extends Command
             ;
 
         $this->addNginxLinks($module, $composer);
-        
+
         $this->addBuild($module, $composer);
 
         $this->writeVariablesEnviroment($module . "." . $host_env_file, $module);
     }
-    
+
     function addApi(FileFormat2 $composer, $config = array())
     {
         $module = "api";