Commit 86e836248524f1fa93ef09653c65d29bbe839f56
1 parent
7fb2a041
Exists in
sei-v3.0.0-oracle-dockerimages
Ajuste em configuração do docker composer para versão 7 da box
Showing
5 changed files
with
148 additions
and
159 deletions
Show diff stats
Vagrantfile
@@ -26,7 +26,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | @@ -26,7 +26,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | ||
26 | # Configurações padrão da máquina virtual host | 26 | # Configurações padrão da máquina virtual host |
27 | # TODO: Reduzir a quantidade de memória utilizada para testes | 27 | # TODO: Reduzir a quantidade de memória utilizada para testes |
28 | config.vm.provider "virtualbox" do |vb| | 28 | config.vm.provider "virtualbox" do |vb| |
29 | - vb.customize ["modifyvm", :id, "--memory", "4096", "--usb", "off", "--audio", "none"] | 29 | + vb.customize ["modifyvm", :id, "--memory", "2048", "--usb", "off", "--audio", "none"] |
30 | end | 30 | end |
31 | 31 | ||
32 | # Provisionamento da máquina virtual responsável por manter os containers do Docker | 32 | # Provisionamento da máquina virtual responsável por manter os containers do Docker |
@@ -39,6 +39,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | @@ -39,6 +39,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | ||
39 | docker.pull_images "guilhermeadc/sei3_memcached" | 39 | docker.pull_images "guilhermeadc/sei3_memcached" |
40 | end | 40 | end |
41 | 41 | ||
42 | - config.vm.provision "shell", inline: 'curl -L "https://github.com/docker/compose/releases/download/1.8.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose' | ||
43 | - config.vm.provision "shell", run: "always", inline: "cd /mnt/sei/ops && docker-compose up -d" | 42 | + config.vm.provision "shell", inline: 'curl -L "https://github.com/docker/compose/releases/download/1.8.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose && cp /mnt/sei/ops/docker-compose.yml / ' |
43 | + config.vm.provision "shell", run: "always", inline: "docker-compose up -d" | ||
44 | end | 44 | end |
Vagrantfile_Distrib
@@ -36,11 +36,11 @@ Vagrant.configure(2) do |config| | @@ -36,11 +36,11 @@ Vagrant.configure(2) do |config| | ||
36 | config.vm.network :forwarded_port, guest: 80, host: 80 # SIP e SEI (Apache) | 36 | config.vm.network :forwarded_port, guest: 80, host: 80 # SIP e SEI (Apache) |
37 | config.vm.network :forwarded_port, guest: 3306, host: 3306 # Banco de Dados (Mysql) | 37 | config.vm.network :forwarded_port, guest: 3306, host: 3306 # Banco de Dados (Mysql) |
38 | config.vm.network :forwarded_port, guest: 1521, host: 1521 # Banco de Dados (Oracle) | 38 | config.vm.network :forwarded_port, guest: 1521, host: 1521 # Banco de Dados (Oracle) |
39 | - config.vm.network :forwarded_port, guest: 8080, host: 8180 # iSQL (Oracle) | 39 | + config.vm.network :forwarded_port, guest: 1433, host: 1433 # Banco de Dados (SQL Server) |
40 | config.vm.network :forwarded_port, guest: 8080, host: 8080 # Jod Converter (Tomcat) | 40 | config.vm.network :forwarded_port, guest: 8080, host: 8080 # Jod Converter (Tomcat) |
41 | config.vm.network :forwarded_port, guest: 8983, host: 8983 # Solr Indexer (Jetty) | 41 | config.vm.network :forwarded_port, guest: 8983, host: 8983 # Solr Indexer (Jetty) |
42 | config.vm.network :forwarded_port, guest: 1080, host: 1080 # MailCatcher | 42 | config.vm.network :forwarded_port, guest: 1080, host: 1080 # MailCatcher |
43 | 43 | ||
44 | # Inicialização dos containers em caso de reinicialização da máquina host | 44 | # Inicialização dos containers em caso de reinicialização da máquina host |
45 | - config.vm.provision "shell", run: "always", inline: "docker restart oracle && docker restart mysql && docker restart jod && docker restart solr && docker restart memcached && docker restart smtp && docker restart httpd" | 45 | + config.vm.provision "shell", run: "always", inline: "docker-compose up -d" |
46 | end | 46 | end |
docker-compose.yml
@@ -24,17 +24,17 @@ services: | @@ -24,17 +24,17 @@ services: | ||
24 | ports: | 24 | ports: |
25 | - "3306:3306" | 25 | - "3306:3306" |
26 | 26 | ||
27 | - oracle: | ||
28 | - image: guilhermeadc/sei3_oracle-11g | ||
29 | - container_name: oracle | ||
30 | - ports: | ||
31 | - - "1521:1521" | 27 | +# oracle: |
28 | +# image: guilhermeadc/sei3_oracle-11g | ||
29 | +# container_name: oracle | ||
30 | +# ports: | ||
31 | +# - "1521:1521" | ||
32 | 32 | ||
33 | - sqlserver: | ||
34 | - image: guilhermeadc/sei3_sqlserver-2016 | ||
35 | - container_name: sqlserver | ||
36 | - ports: | ||
37 | - - "1433:1433" | 33 | +# sqlserver: |
34 | +# image: guilhermeadc/sei3_sqlserver-2016 | ||
35 | +# container_name: sqlserver | ||
36 | +# ports: | ||
37 | +# - "1433:1433" | ||
38 | 38 | ||
39 | solr: | 39 | solr: |
40 | image: guilhermeadc/sei3_solr-6.1 | 40 | image: guilhermeadc/sei3_solr-6.1 |
@@ -51,8 +51,8 @@ services: | @@ -51,8 +51,8 @@ services: | ||
51 | - /mnt/sei/src:/opt | 51 | - /mnt/sei/src:/opt |
52 | links: | 52 | links: |
53 | - mysql:mysql | 53 | - mysql:mysql |
54 | - - oracle:oracle | ||
55 | - - sqlserver:sqlserver | 54 | +# - oracle:oracle |
55 | +# - sqlserver:sqlserver | ||
56 | - memcached:memcached | 56 | - memcached:memcached |
57 | - solr:solr | 57 | - solr:solr |
58 | - smtp:smtp | 58 | - smtp:smtp |
httpd/assets/ConfiguracaoSEI.php
@@ -2,98 +2,93 @@ | @@ -2,98 +2,93 @@ | ||
2 | 2 | ||
3 | class ConfiguracaoSEI extends InfraConfiguracao { | 3 | class ConfiguracaoSEI extends InfraConfiguracao { |
4 | 4 | ||
5 | - private static $instance = null; | 5 | + private static $instance = null; |
6 | + | ||
7 | + public static function getInstance(){ | ||
8 | + if (ConfiguracaoSEI::$instance == null) { | ||
9 | + ConfiguracaoSEI::$instance = new ConfiguracaoSEI(); | ||
10 | + } | ||
11 | + return ConfiguracaoSEI::$instance; | ||
12 | + } | ||
13 | + | ||
14 | + public function getArrConfiguracoes(){ | ||
15 | + return array( | ||
16 | + | ||
17 | + 'SEI' => array( | ||
18 | + 'URL' => 'http://localhost/sei', | ||
19 | + 'Producao' => false, | ||
20 | + 'RepositorioArquivos' => '/var/sei/arquivos'), | ||
21 | + | ||
22 | + 'PaginaSEI' => array( | ||
23 | + 'NomeSistema' => 'SEI', | ||
24 | + 'NomeSistemaComplemento' => SEI_VERSAO, | ||
25 | + 'LogoMenu' => ''), | ||
26 | + | ||
27 | + 'SessaoSEI' => array( | ||
28 | + 'SiglaOrgaoSistema' => 'ABC', | ||
29 | + 'SiglaSistema' => 'SEI', | ||
30 | + 'PaginaLogin' => 'http://localhost/sip/login.php', | ||
31 | + 'SipWsdl' => 'http://localhost/sip/controlador_ws.php?servico=wsdl', | ||
32 | + 'https' => false), | ||
33 | + | ||
34 | + 'BancoSEI' => array( | ||
35 | + 'Servidor' => 'mysql', | ||
36 | + 'Porta' => '3306', | ||
37 | + 'Banco' => 'sei', | ||
38 | + 'Usuario' => 'sei_user', | ||
39 | + 'Senha' => 'sei_user', | ||
40 | + 'Tipo' => 'MySql'), //MySql, SqlServer ou Oracle | ||
41 | + | ||
42 | +// 'BancoSEI' => array( | ||
43 | +// 'Servidor' => 'oracle', | ||
44 | +// 'Porta' => '1521', | ||
45 | +// 'Banco' => 'sei', | ||
46 | +// 'Usuario' => 'sei', | ||
47 | +// 'Senha' => 'sei_user', | ||
48 | +// 'Tipo' => 'Oracle'), //MySql, SqlServer ou Oracle | ||
49 | + | ||
50 | +// 'BancoSEI' => array( | ||
51 | +// 'Servidor' => 'sqlserver', | ||
52 | +// 'Porta' => '1433', | ||
53 | +// 'Banco' => 'sei', | ||
54 | +// 'Usuario' => 'sei_user', | ||
55 | +// 'Senha' => 'sei_user', | ||
56 | +// 'Tipo' => 'SqlServer'), //MySql, SqlServer ou Oracle | ||
57 | + | ||
58 | + 'CacheSEI' => array('Servidor' => 'memcached', | ||
59 | + 'Porta' => '11211'), | ||
60 | + | ||
61 | + 'JODConverter' => array('Servidor' => 'http://jod:8080/converter/service'), | ||
62 | + | ||
63 | + 'Edoc' => array('Servidor' => 'http://[Servidor .NET]'), | ||
64 | + | ||
65 | + 'Solr' => array( | ||
66 | + 'Servidor' => 'http://solr:8983/solr', | ||
67 | + 'CoreProtocolos' => 'sei-protocolos', | ||
68 | + 'CoreBasesConhecimento' => 'sei-bases-conhecimento', | ||
69 | + 'CorePublicacoes' => 'sei-publicacoes'), | ||
70 | + | ||
71 | + 'HostWebService' => array( | ||
72 | + 'Edoc' => array('[Servidor .NET]'), | ||
73 | + 'Sip' => array('*'), //Referências (IP e nome na rede) de todas as máquinas que executam o SIP. | ||
74 | + 'Publicacao' => array('*'), //Referências (IP e nome na rede) das máquinas de veículos de publicação externos cadastrados no SEI. | ||
75 | + 'Ouvidoria' => array('*'), //Referências (IP e nome na rede) da máquina que hospeda o formulário de Ouvidoria personalizado. Se utilizar o formulário padrão do SEI, então configurar com as máquinas dos nós de aplicação do SEI. | ||
76 | + ), | ||
77 | + | ||
78 | + 'InfraMail' => array( | ||
79 | + 'Tipo' => '2', //1 = sendmail (neste caso não é necessário configurar os atributos abaixo), 2 = SMTP | ||
80 | + 'Servidor' => 'smtp', | ||
81 | + 'Porta' => '1025', | ||
82 | + 'Codificacao' => '8bit', //8bit, 7bit, binary, base64, quoted-printable | ||
83 | + 'MaxDestinatarios' => 999, //numero maximo de destinatarios por mensagem | ||
84 | + 'MaxTamAnexosMb' => 999, //tamanho maximo dos anexos em Mb por mensagem | ||
85 | + 'Seguranca' => 'TLS', //TLS, SSL ou vazio | ||
86 | + 'Autenticar' => false, //se true então informar Usuario e Senha | ||
87 | + 'Usuario' => '', | ||
88 | + 'Senha' => '', | ||
89 | + 'Protegido' => 'desenv@instituicao.gov.br' //campo usado em desenvolvimento, se tiver um email preenchido entao todos os emails enviados terao o destinatario ignorado e substituído por este valor (evita envio incorreto de email) | ||
90 | + ) | ||
91 | + ); | ||
92 | + } | ||
93 | +} | ||
6 | 94 | ||
7 | - public static function getInstance(){ | ||
8 | - if (ConfiguracaoSEI::$instance == null) { | ||
9 | - ConfiguracaoSEI::$instance = new ConfiguracaoSEI(); | ||
10 | - } | ||
11 | - | ||
12 | - return ConfiguracaoSEI::$instance; | ||
13 | - } | ||
14 | - | ||
15 | - public function getArrConfiguracoes(){ | ||
16 | - return array( | ||
17 | - 'SEI' => array( | ||
18 | - 'URL' => 'http://localhost/sei', | ||
19 | - 'Producao' => false, | ||
20 | - 'RepositorioArquivos' => '/var/sei/arquivos'), | ||
21 | - | ||
22 | - 'PaginaSEI' => array( | ||
23 | - 'NomeSistema' => 'SEI', | ||
24 | - 'NomeSistemaComplemento' => SEI_VERSAO, | ||
25 | - 'LogoMenu' => ''), | ||
26 | - | ||
27 | - 'SessaoSEI' => array( | ||
28 | - 'SiglaOrgaoSistema' => 'ABC', | ||
29 | - 'SiglaSistema' => 'SEI', | ||
30 | - 'PaginaLogin' => 'http://localhost/sip/login.php', | ||
31 | - 'SipWsdl' => 'http://localhost/sip/controlador_ws.php?servico=wsdl', | ||
32 | - 'https' => false), | ||
33 | - | ||
34 | - // CONFIGURAÇÃO PARA BANCO DE DADOS ORACLE | ||
35 | - // 'BancoSEI' => array( | ||
36 | - // 'Servidor' => 'mysql', | ||
37 | - // 'Porta' => 3306, | ||
38 | - // 'Banco' => 'sei', | ||
39 | - // 'Usuario' => 'sei_user', | ||
40 | - // 'Senha' => 'sei_user', | ||
41 | - // 'Tipo' => 'MySql'), //MySql ou SqlServer | ||
42 | - | ||
43 | - // CONFIGURAÇÃO PARA BANCO DE DADOS ORACLE | ||
44 | - // 'BancoSEI' => array( | ||
45 | - // 'Servidor' => 'oracle', | ||
46 | - // 'Porta' => 1521, | ||
47 | - // 'Banco' => 'sei', | ||
48 | - // 'Usuario' => 'sei', | ||
49 | - // 'Senha' => 'sei_user', | ||
50 | - // 'Tipo' => 'Oracle'), //MySql ou SqlServer | ||
51 | - | ||
52 | - // CONFIGURAÇÃO PARA BANCO DE DADOS SQL SERVER | ||
53 | - 'BancoSEI' => array( | ||
54 | - 'Servidor' => 'sqlserver', | ||
55 | - 'Porta' => 1433, | ||
56 | - 'Banco' => 'sei', | ||
57 | - 'Usuario' => 'sei_user', | ||
58 | - 'Senha' => 'yourStrong(!)Password', | ||
59 | - 'Tipo' => 'SqlServer'), //MySql ou SqlServer | ||
60 | - | ||
61 | - 'CacheSEI' => array( | ||
62 | - 'Servidor' => 'memcached', | ||
63 | - 'Porta' => 11211), | ||
64 | - | ||
65 | - 'JODConverter' => array('Servidor' => 'http://jod:8080/converter/service'), | ||
66 | - | ||
67 | - 'Edoc' => array('Servidor' => 'http://[Servidor .NET]'), | ||
68 | - | ||
69 | - 'Solr' => array( | ||
70 | - 'Servidor' => 'http://solr:8983/solr', | ||
71 | - 'CoreProtocolos' => 'sei-protocolos', | ||
72 | - 'TempoCommitProtocolos' => 300, | ||
73 | - 'CoreBasesConhecimento' => 'sei-bases-conhecimento', | ||
74 | - 'TempoCommitBasesConhecimento' => 60, | ||
75 | - 'CorePublicacoes' => 'sei-publicacoes', | ||
76 | - 'TempoCommitPublicacoes' => 60), | ||
77 | - | ||
78 | - 'HostWebService' => array( | ||
79 | - 'Edoc' => array('*'), | ||
80 | - 'Sip' => array('*'), | ||
81 | - 'Publicacao' => array('*'), | ||
82 | - 'Ouvidoria' => array('*'),), | ||
83 | - | ||
84 | - 'InfraMail' => array( | ||
85 | - 'Tipo' => '2', | ||
86 | - 'Servidor' => 'smtp', | ||
87 | - 'Porta' => 1025, | ||
88 | - 'Codificacao' => '8bit', | ||
89 | - 'MaxDestinatarios' => 999, | ||
90 | - 'MaxTamAnexosMb' => 999, | ||
91 | - 'Seguranca' => '', | ||
92 | - 'Autenticar' => false, | ||
93 | - 'Usuario' => '', | ||
94 | - 'Senha' => '', | ||
95 | - 'Protegido' => '') | ||
96 | - ); | ||
97 | - } | ||
98 | - } | ||
99 | - ?> |
httpd/assets/ConfiguracaoSip.php
@@ -16,7 +16,7 @@ class ConfiguracaoSip extends InfraConfiguracao { | @@ -16,7 +16,7 @@ class ConfiguracaoSip extends InfraConfiguracao { | ||
16 | 'Sip' => array( | 16 | 'Sip' => array( |
17 | 'URL' => 'http://localhost/sip', | 17 | 'URL' => 'http://localhost/sip', |
18 | 'Producao' => false), | 18 | 'Producao' => false), |
19 | - | 19 | + |
20 | 'PaginaSip' => array('NomeSistema' => 'SIP'), | 20 | 'PaginaSip' => array('NomeSistema' => 'SIP'), |
21 | 21 | ||
22 | 'SessaoSip' => array( | 22 | 'SessaoSip' => array( |
@@ -25,59 +25,53 @@ class ConfiguracaoSip extends InfraConfiguracao { | @@ -25,59 +25,53 @@ class ConfiguracaoSip extends InfraConfiguracao { | ||
25 | 'PaginaLogin' => 'http://localhost/sip/login.php', | 25 | 'PaginaLogin' => 'http://localhost/sip/login.php', |
26 | 'SipWsdl' => 'http://localhost/sip/controlador_ws.php?servico=wsdl', | 26 | 'SipWsdl' => 'http://localhost/sip/controlador_ws.php?servico=wsdl', |
27 | 'https' => false), | 27 | 'https' => false), |
28 | + | ||
29 | + 'BancoSip' => array( | ||
30 | + 'Servidor' => 'mysql', | ||
31 | + 'Porta' => '3306', | ||
32 | + 'Banco' => 'sip', | ||
33 | + 'Usuario' => 'sip_user', | ||
34 | + 'Senha' => 'sip_user', | ||
35 | + 'Tipo' => 'MySql'), //MySql, SqlServer ou Oracle | ||
28 | 36 | ||
29 | - // CONFIGURAÇÃO PARA BASE DE DADOS MYSQL | ||
30 | - // 'BancoSip' => array( | ||
31 | - // 'Servidor' => 'mysql', | ||
32 | - // 'Porta' => 3306, | ||
33 | - // 'Banco' => 'sip', | ||
34 | - // 'Usuario' => 'sip_user', | ||
35 | - // 'Senha' => 'sip_user', | ||
36 | - // 'Tipo' => 'MySql'), //MySql ou SqlServer), | ||
37 | - | ||
38 | - | ||
39 | - // CONFIGURAÇÃO PARA BANCO DE DADOS ORACLE | ||
40 | - // 'BancoSip' => array( | ||
41 | - // 'Servidor' => 'oracle', | ||
42 | - // 'Porta' => 1521, | ||
43 | - // 'Banco' => 'sip', | ||
44 | - // 'Usuario' => 'sip', | ||
45 | - // 'Senha' => 'sip_user', | ||
46 | - // 'Tipo' => 'Oracle'), //MySql ou SqlServer | ||
47 | - | ||
48 | - // CONFIGURAÇÃO PARA BANCO DE DADOS SQL SERVER | ||
49 | - 'BancoSip' => array( | ||
50 | - 'Servidor' => 'sqlserver', | ||
51 | - 'Porta' => 1433, | ||
52 | - 'Banco' => 'sip', | ||
53 | - 'Usuario' => 'sip_user', | ||
54 | - 'Senha' => 'sip_user', | ||
55 | - 'Tipo' => 'SqlServer'), //MySql ou SqlServer | 37 | +// 'BancoSip' => array( |
38 | +// 'Servidor' => 'oracle', | ||
39 | +// 'Porta' => '1521', | ||
40 | +// 'Banco' => 'sip', | ||
41 | +// 'Usuario' => 'sip', | ||
42 | +// 'Senha' => 'sip_user', | ||
43 | +// 'Tipo' => 'Oracle'), //MySql, SqlServer ou Oracle | ||
56 | 44 | ||
45 | +// 'BancoSip' => array( | ||
46 | +// 'Servidor' => 'sqlserver', | ||
47 | +// 'Porta' => '1433', | ||
48 | +// 'Banco' => 'sip', | ||
49 | +// 'Usuario' => 'sip_user', | ||
50 | +// 'Senha' => 'sip_user', | ||
51 | +// 'Tipo' => 'SqlServer'), //MySql, SqlServer ou Oracle | ||
57 | 52 | ||
58 | - 'CacheSip' => array( | ||
59 | - 'Servidor' => 'memcached', | ||
60 | - 'Porta' => 11211), | 53 | + 'CacheSip' => array('Servidor' => 'memcached', |
54 | + 'Porta' => '11211'), | ||
61 | 55 | ||
62 | 'HostWebService' => array( | 56 | 'HostWebService' => array( |
63 | - 'Replicacao' => array('*'), | ||
64 | - 'Pesquisa' => array('*'), | ||
65 | - 'Autenticacao' => array('*')), | ||
66 | - | ||
67 | - 'InfraMail' => array( | ||
68 | - 'Tipo' => '2', | ||
69 | - 'Servidor' => 'smtp', | ||
70 | - 'Porta' => 1025, | ||
71 | - 'Codificacao' => '8bit', | ||
72 | - 'MaxDestinatarios' => 999, | ||
73 | - 'MaxTamAnexosMb' => 999, | ||
74 | - 'Seguranca' => '', | ||
75 | - 'Autenticar' => false, | ||
76 | - 'Usuario' => '', | ||
77 | - 'Senha' => '', | ||
78 | - 'Protegido' => '') | 57 | + 'Replicacao' => array('*'), //endereço ou IP da máquina que implementa o serviço de replicação de usuários |
58 | + 'Pesquisa' => array('*'), //endereços/IPs das máquinas do SEI | ||
59 | + 'Autenticacao' => array('*')), //endereços/IPs das máquinas do SEI | ||
79 | 60 | ||
61 | + 'InfraMail' => array( | ||
62 | + 'Tipo' => '2', //1 = sendmail (neste caso não é necessário configurar os atributos abaixo), 2 = SMTP | ||
63 | + 'Servidor' => 'smtp', | ||
64 | + 'Porta' => '1025', | ||
65 | + 'Codificacao' => '8bit', //8bit, 7bit, binary, base64, quoted-printable | ||
66 | + 'MaxDestinatarios' => 999, //numero maximo de destinatarios por mensagem | ||
67 | + 'MaxTamAnexosMb' => 999, //tamanho maximo dos anexos em Mb por mensagem | ||
68 | + 'Seguranca' => 'TLS', //TLS, SSL ou vazio | ||
69 | + 'Autenticar' => false, //se true então informar Usuario e Senha | ||
70 | + 'Usuario' => '', | ||
71 | + 'Senha' => '', | ||
72 | + 'Protegido' => 'desenv@instituicao.gov.br' //campo usado em desenvolvimento, se tiver um email preenchido entao todos os emails enviados terao o destinatario ignorado e substituído por este valor (evita envio incorreto de email) | ||
73 | + ) | ||
80 | ); | 74 | ); |
81 | } | 75 | } |
82 | } | 76 | } |
83 | -?> | 77 | + |