Commit eeea584cca451da43ec79bc36ac56444475f7e28

Authored by Guilherme Andrade Del Cantoni
1 parent 0c2aaae1

Instalação dos componetes de conexão do SQL Server

docker-compose.yml
... ... @@ -32,6 +32,7 @@ services:
32 32  
33 33 solr:
34 34 image: guilhermeadc/sei3_solr-6.1
  35 + container_name: solr
35 36 ports:
36 37 - "8983:8983"
37 38  
... ...
httpd/Dockerfile 0 → 100644
... ... @@ -0,0 +1,41 @@
  1 +################################################################################
  2 +# Dockerfile de construção do container WebApp utilizado pelo SEI e pelo SIP
  3 +#
  4 +# Container preparado e configurado para uso em desenvolvimento e testes
  5 +################################################################################
  6 +
  7 +FROM centos:centos6
  8 +MAINTAINER Guilherme Andrade Del Cantoni <guilherme.cantoni@planejamento.gov.br>
  9 +
  10 +############################# INÍCIO DA INSTALAÇÃO #############################
  11 +ENV TERM xterm
  12 +
  13 +# Arquivos de instalação de componentes do SEI
  14 +COPY assets/msttcore-fonts-2.0-3.noarch.rpm /tmp
  15 +COPY oracle/oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm /tmp/
  16 +COPY oracle/oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm /tmp/
  17 +COPY oracle/oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.rpm /tmp/
  18 +COPY oracle/install_oracle.sh /tmp/
  19 +
  20 +# Instalação do SEI e demais componentes acessórios
  21 +COPY install.sh /install.sh
  22 +COPY entrypoint.sh /entrypoint.sh
  23 +
  24 +RUN bash /install.sh
  25 +
  26 +# Configuração dos parâmetros do SEI e SIP
  27 +COPY assets/LEIAME.txt /var/www/html/
  28 +COPY assets/sei.ini /etc/php.d/sei.ini
  29 +COPY assets/xdebug.ini /etc/php.d/xdebug.ini
  30 +COPY assets/sei.conf /etc/httpd/conf.d/sei.conf
  31 +COPY assets/ConfiguracaoSip.php /ConfiguracaoSip.php
  32 +COPY assets/ConfiguracaoSEI.php /ConfiguracaoSEI.php
  33 +
  34 +# Configuração do Gearman e Supervisor, componentes necessários para a
  35 +# integração do SEI com Processo Eletrônico Nacional
  36 +COPY assets/supervisord.conf /etc/supervisord.conf
  37 +
  38 +##################### FIM DA INSTALAÇÃO #####################
  39 +
  40 +EXPOSE 80
  41 +CMD ["/entrypoint.sh"]
... ...
httpd/assets/ConfiguracaoSEI.php 0 → 100644
... ... @@ -0,0 +1,91 @@
  1 +<?
  2 +
  3 +class ConfiguracaoSEI extends InfraConfiguracao {
  4 +
  5 + private static $instance = null;
  6 +
  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' => getenv("MYSQL_PORT_3306_TCP_ADDR"),
  37 + 'Porta' => getenv("MYSQL_PORT_3306_TCP_PORT"),
  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' => getenv("ORACLE_PORT_1521_TCP_ADDR"),
  46 + 'Porta' => getenv("ORACLE_PORT_1521_TCP_PORT"),
  47 + 'Banco' => 'sei',
  48 + 'Usuario' => 'sei_user',
  49 + 'Senha' => 'sei_user',
  50 + 'Tipo' => 'Oracle'), //MySql ou SqlServer
  51 + */
  52 +
  53 + 'CacheSEI' => array(
  54 + 'Servidor' => getenv("MEMCACHED_PORT_11211_TCP_ADDR"),
  55 + 'Porta' => getenv("MEMCACHED_PORT_11211_TCP_PORT")),
  56 +
  57 + 'JODConverter' => array('Servidor' => 'http://'.getenv("JOD_PORT_8080_TCP_ADDR").':'.getenv("JOD_PORT_8080_TCP_PORT").'/converter/service'),
  58 +
  59 + 'Edoc' => array('Servidor' => 'http://[Servidor .NET]'),
  60 +
  61 + 'Solr' => array(
  62 + 'Servidor' => 'http://'.getenv("SOLR_PORT_8983_TCP_ADDR").':'.getenv("SOLR_PORT_8983_TCP_PORT").'/solr',
  63 + 'CoreProtocolos' => 'sei-protocolos',
  64 + 'TempoCommitProtocolos' => 300,
  65 + 'CoreBasesConhecimento' => 'sei-bases-conhecimento',
  66 + 'TempoCommitBasesConhecimento' => 60,
  67 + 'CorePublicacoes' => 'sei-publicacoes',
  68 + 'TempoCommitPublicacoes' => 60),
  69 +
  70 + 'HostWebService' => array(
  71 + 'Edoc' => array('*'),
  72 + 'Sip' => array('*'),
  73 + 'Publicacao' => array('*'),
  74 + 'Ouvidoria' => array('*'),),
  75 +
  76 + 'InfraMail' => array(
  77 + 'Tipo' => '2',
  78 + 'Servidor' => getenv("SMTP_PORT_1025_TCP_ADDR"),
  79 + 'Porta' => getenv("SMTP_PORT_1025_TCP_PORT"),
  80 + 'Codificacao' => '8bit',
  81 + 'MaxDestinatarios' => 999,
  82 + 'MaxTamAnexosMb' => 999,
  83 + 'Seguranca' => '',
  84 + 'Autenticar' => false,
  85 + 'Usuario' => '',
  86 + 'Senha' => '',
  87 + 'Protegido' => '')
  88 + );
  89 + }
  90 + }
  91 + ?>
... ...
httpd/assets/ConfiguracaoSip.php 0 → 100644
... ... @@ -0,0 +1,73 @@
  1 +<?
  2 +
  3 +class ConfiguracaoSip extends InfraConfiguracao {
  4 +
  5 + private static $instance = null;
  6 +
  7 + public static function getInstance(){
  8 + if (ConfiguracaoSip::$instance == null) {
  9 + ConfiguracaoSip::$instance = new ConfiguracaoSip();
  10 + }
  11 + return ConfiguracaoSip::$instance;
  12 + }
  13 +
  14 + public function getArrConfiguracoes(){
  15 + return array(
  16 + 'Sip' => array(
  17 + 'URL' => 'http://localhost/sip',
  18 + 'Producao' => false),
  19 +
  20 + 'PaginaSip' => array('NomeSistema' => 'SIP'),
  21 +
  22 + 'SessaoSip' => array(
  23 + 'SiglaOrgaoSistema' => 'ABC',
  24 + 'SiglaSistema' => 'SIP',
  25 + 'PaginaLogin' => 'http://localhost/sip/login.php',
  26 + 'SipWsdl' => 'http://localhost/sip/controlador_ws.php?servico=wsdl',
  27 + 'https' => false),
  28 +
  29 + // CONFIGURAÇÃO PARA BASE DE DADOS MYSQL
  30 + 'BancoSip' => array(
  31 + 'Servidor' => getenv("MYSQL_PORT_3306_TCP_ADDR"),
  32 + 'Porta' => getenv("MYSQL_PORT_3306_TCP_PORT"),
  33 + 'Banco' => 'sip',
  34 + 'Usuario' => 'sip_user',
  35 + 'Senha' => 'sip_user',
  36 + 'Tipo' => 'MySql'), //MySql ou SqlServer),
  37 +
  38 + // CONFIGURAÇÃO PARA BASE DE DADOS ORACLE
  39 +/* 'BancoSip' => array(
  40 + 'Servidor' => getenv("ORACLE_PORT_1521_TCP_ADDR"),
  41 + 'Porta' => getenv("ORACLE_PORT_1521_TCP_PORT"),
  42 + 'Banco' => 'sip',
  43 + 'Usuario' => 'sip_user',
  44 + 'Senha' => 'sip_user',
  45 + 'Tipo' => 'Oracle'), //MySql ou SqlServer),
  46 +*/
  47 +
  48 + 'CacheSip' => array(
  49 + 'Servidor' => getenv("MEMCACHED_PORT_11211_TCP_ADDR"),
  50 + 'Porta' => getenv("MEMCACHED_PORT_11211_TCP_PORT")),
  51 +
  52 + 'HostWebService' => array(
  53 + 'Replicacao' => array('*'),
  54 + 'Pesquisa' => array('*'),
  55 + 'Autenticacao' => array('*')),
  56 +
  57 + 'InfraMail' => array(
  58 + 'Tipo' => '2',
  59 + 'Servidor' => getenv("SMTP_PORT_1025_TCP_ADDR"),
  60 + 'Porta' => getenv("SMTP_PORT_1025_TCP_PORT"),
  61 + 'Codificacao' => '8bit',
  62 + 'MaxDestinatarios' => 999,
  63 + 'MaxTamAnexosMb' => 999,
  64 + 'Seguranca' => '',
  65 + 'Autenticar' => false,
  66 + 'Usuario' => '',
  67 + 'Senha' => '',
  68 + 'Protegido' => '')
  69 +
  70 + );
  71 + }
  72 +}
  73 +?>
... ...
httpd/assets/LEIAME.txt 0 → 100644
... ... @@ -0,0 +1 @@
  1 +Seguindo as orientações no manual de instalação do SEI 3.0.0, os códigos-fontes do projeto foram movidos para o diretório /opt
... ...
httpd/assets/msttcore-fonts-2.0-3.noarch.rpm 0 → 100644
No preview for this file type
httpd/assets/sei.conf 0 → 100644
... ... @@ -0,0 +1,37 @@
  1 +KeepAlive On
  2 +MaxKeepAliveRequests 100
  3 +KeepAliveTimeout 15
  4 +
  5 +Alias "/sei" "/opt/sei/web"
  6 +Alias "/sip" "/opt/sip/web"
  7 +Alias "/infra_css" "/opt/infra/infra_css"
  8 +Alias "/infra_js" "/opt/infra/infra_js"
  9 +
  10 +<VirtualHost *:80>
  11 +
  12 + DocumentRoot /var/www/html
  13 +
  14 + ServerAdmin admin@dominio.gov.br
  15 + ServerName localhost
  16 +
  17 + DirectoryIndex index.php index.html
  18 + IndexIgnore *
  19 +
  20 + EnableSendfile Off
  21 + HostnameLookups Off
  22 + ServerSignature Off
  23 + AddDefaultCharset iso-8859-1
  24 +
  25 + # Bloqueia acesso à qualquer arquivo ou diretório externo ao DocumentRoot
  26 + <Directory />
  27 + AllowOverride None
  28 + # Require all denied
  29 + </Directory>
  30 +
  31 + <Directory ~ "(/opt/sei/web|/opt/sip/web|/opt/infra/infra_css|/opt/infra/infra_js)" >
  32 + AllowOverride None
  33 + Options None
  34 + # Require all granted
  35 + </Directory>
  36 +
  37 +</VirtualHost>
... ...
httpd/assets/sei.ini 0 → 100644
... ... @@ -0,0 +1,17 @@
  1 +[php]
  2 +include_path = ".:/php/includes:/opt/infra/infra_php"
  3 +error_reporting = E_ALL
  4 +display_errors = On
  5 +display_startup_errors = On
  6 +track_errors = On
  7 +html_errors = On
  8 +post_max_size = 110M
  9 +upload_max_filesize = 100M
  10 +default_charset = "iso-8859-1"
  11 +session.gc_maxlifetime = 28800
  12 +short_open_tag = On
  13 +default_socket_timeout = 1200
  14 +max_input_vars = 2000
  15 +magic-quotes-gpc = 0
  16 +magic_quotes_runtime = 0
  17 +magic_quotes_sybase = 0
... ...
httpd/assets/supervisord.conf 0 → 100644
... ... @@ -0,0 +1,75 @@
  1 +
  2 +[supervisord]
  3 +http_port=/var/tmp/supervisor.sock ; (default is to run a UNIX domain socket server)
  4 +;http_port=127.0.0.1:9001 ; (alternately, ip_address:port specifies AF_INET)
  5 +;sockchmod=0700 ; AF_UNIX socketmode (AF_INET ignore, default 0700)
  6 +;sockchown=nobody.nogroup ; AF_UNIX socket uid.gid owner (AF_INET ignores)
  7 +;umask=022 ; (process file creation umask;default 022)
  8 +logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
  9 +logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
  10 +logfile_backups=10 ; (num of main logfile rotation backups;default 10)
  11 +loglevel=info ; (logging level;default info; others: debug,warn)
  12 +pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
  13 +nodaemon=false ; (start in foreground if true;default false)
  14 +minfds=1024 ; (min. avail startup file descriptors;default 1024)
  15 +minprocs=200 ; (min. avail process descriptors;default 200)
  16 +
  17 +;nocleanup=true ; (don't clean up tempfiles at start;default false)
  18 +;http_username=user ; (default is no username (open system))
  19 +;http_password=123 ; (default is no password (open system))
  20 +;childlogdir=/tmp ; ('AUTO' child log dir, default $TEMP)
  21 +;user=chrism ; (default is current user, required if root)
  22 +;directory=/tmp ; (default is not to cd during start)
  23 +;environment=KEY=value ; (key value pairs to add to environment)
  24 +
  25 +[supervisorctl]
  26 +serverurl=unix:///var/tmp/supervisor.sock ; use a unix:// URL for a unix socket
  27 +;serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket
  28 +;username=chris ; should be same as http_username if set
  29 +;password=123 ; should be same as http_password if set
  30 +;prompt=mysupervisor ; cmd line prompt (default "supervisor")
  31 +
  32 +; The below sample program section shows all possible program subsection values,
  33 +; create one or more 'real' program: sections to be able to control them under
  34 +; supervisor.
  35 +
  36 +;[program:theprogramname]
  37 +;command=/bin/cat ; the program (relative uses PATH, can take args)
  38 +;priority=999 ; the relative start priority (default 999)
  39 +;autostart=true ; start at supervisord start (default: true)
  40 +;autorestart=true ; retstart at unexpected quit (default: true)
  41 +;startsecs=10 ; number of secs prog must stay running (def. 10)
  42 +;startretries=3 ; max # of serial start failures (default 3)
  43 +;exitcodes=0,2 ; 'expected' exit codes for process (default 0,2)
  44 +;stopsignal=QUIT ; signal used to kill process (default TERM)
  45 +;stopwaitsecs=10 ; max num secs to wait before SIGKILL (default 10)
  46 +;user=chrism ; setuid to this UNIX account to run the program
  47 +;log_stdout=true ; if true, log program stdout (default true)
  48 +;log_stderr=true ; if true, log program stderr (def false)
  49 +;logfile=/var/log/cat.log ; child log path, use NONE for none; default AUTO
  50 +;logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB)
  51 +;logfile_backups=10 ; # of logfile backups (default 10)
  52 +
  53 +[program:sei_processar_pendencias]
  54 +command=/usr/bin/php -c /etc/php.ini /var/www/html/sei/modulos/pen/rn/ProcessarPendenciasRN.php
  55 +numprocs=1
  56 +directory=/var/www/html/sei/
  57 +autostart=true
  58 +autorestart=true
  59 +log_stderr=true
  60 +stdout_logfile=/tmp/sei.log
  61 +stdout_logfile_maxbytes=1MB
  62 +stderr_logfile=/tmp/sei_error.log
  63 +stderr_logfile_maxbytes=1MB
  64 +
  65 +[program:sei_monitorar_pendencias]
  66 +command=/usr/bin/php -c /etc/php.ini /var/www/html/sei/modulos/pen/rn/PendenciasTramiteRN.php
  67 +numprocs=1
  68 +directory=/var/www/html/sei/
  69 +autostart=true
  70 +autorestart=true
  71 +log_stderr=true
  72 +stdout_logfile=/tmp/sei.log
  73 +stdout_logfile_maxbytes=1MB
  74 +stderr_logfile=/tmp/sei_error.log
  75 +
... ...
httpd/assets/xdebug.ini 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +; Enable xdebug extension module
  2 +zend_extension=/usr/lib64/php/modules/xdebug.so
  3 +xdebug.remote_enable=1
  4 +xdebug.remote_host=localhost
  5 +xdebug.remote_port=9000
  6 +xdebug.remote_handler=dbgp
  7 +xdebug.remote_mode=req
  8 +xdebug.remote_connect_back=1
  9 +xdebug.idekey=default
... ...
httpd/entrypoint.sh 0 → 100644
... ... @@ -0,0 +1,38 @@
  1 +#!/usr/bin/env bash
  2 +
  3 +# Atribuição dos parâmetros de configuração do SEI
  4 +if [ -f /opt/sei/config/ConfiguracaoSEI.php ] && [ ! -f /opt/sei/config/ConfiguracaoSEI.php~ ]; then
  5 + mv /opt/sei/config/ConfiguracaoSEI.php /opt/sei/config/ConfiguracaoSEI.php~
  6 +fi
  7 +
  8 +if [ ! -f /opt/sei/config/ConfiguracaoSEI.php ]; then
  9 + cp /ConfiguracaoSEI.php /opt/sei/config/ConfiguracaoSEI.php
  10 +fi
  11 +
  12 +# Atribuição dos parâmetros de configuração do SIP
  13 +if [ -f /opt/sip/config/ConfiguracaoSip.php ] && [ ! -f /opt/sip/config/ConfiguracaoSip.php~ ]; then
  14 + mv /opt/sip/config/ConfiguracaoSip.php /opt/sip/config/ConfiguracaoSip.php~
  15 +fi
  16 +
  17 +if [ ! -f /opt/sip/config/ConfiguracaoSip.php ]; then
  18 + cp /ConfiguracaoSip.php /opt/sip/config/ConfiguracaoSip.php
  19 +fi
  20 +
  21 +# Ajustes de permissões diversos para desenvolvimento do SEI
  22 +chmod +x /opt/sei/bin/wkhtmltopdf-amd64
  23 +chmod +x /opt/sei/bin/pdfboxmerge.jar
  24 +chown -R 777 /opt
  25 +chmod -R 777 /var/sei/arquivos
  26 +#chmod -R 777 /opt/sei/temp
  27 +#chmod -R 777 /opt/sip/temp
  28 +
  29 +# Inicialização das rotinas de agendamento
  30 +/etc/init.d/rsyslog start
  31 +/etc/init.d/crond start
  32 +
  33 +# Inicialização do Gearman e Supervisor, componentes para integração com Processo Eletrônico Nacional
  34 +/etc/init.d/gearmand start
  35 +/etc/init.d/supervisord start
  36 +
  37 +# Inicialização do servidor web
  38 +/usr/sbin/httpd -DFOREGROUND
... ...
httpd/install.sh 0 → 100644
... ... @@ -0,0 +1,62 @@
  1 +#!/usr/bin/env bash
  2 +
  3 +set -e
  4 +
  5 +# Instalação dos componentes básicos do servidor web apache
  6 +yum -y update
  7 +yum -y install httpd24u mysql56u memcached openssl wget curl unzip gcc java-1.8.0-openjdk libxml2 crontabs
  8 +
  9 +# Instalação do PHP e demais extenções necessárias para o projeto
  10 +wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
  11 +wget https://centos6.iuscommunity.org/ius-release.rpm
  12 +rpm -ivh epel-release-latest-6.noarch.rpm
  13 +rpm -ivh ius-release.rpm
  14 +yum -y update
  15 +
  16 +# Instalação do PHP e demais extenções necessárias para o projeto
  17 +yum -y install php56u php56u-common php56u-cli php56u-pear php56u-bcmath php56u-gd php56u-gmp php56u-imap php56u-intl php56u-ldap php56u-mbstring php56u-mysqli \
  18 + php56u-odbc php56u-pdo php56u-pecl-apc php56u-pspell php56u-zlib php56u-snmp php56u-soap php56u-xml php56u-xmlrpc php56u-zts php56u-devel \
  19 + php56u-pecl-apc-devel php56u-pecl-memcache php56u-calendar php56u-shmop php56u-intl php56u-mcrypt php56u-pecl-xdebug
  20 +
  21 +# Configuração do charset do Apache
  22 +echo "AddDefaultCharset iso-8859-1" | tee -a /etc/httpd/conf/httpd.conf
  23 +
  24 +# Correção do bug do VirtualBox relacionado ao Sendfile. http://docs.vagrantup.com/v2/synced-folders/virtualbox.html
  25 +echo "EnableSendfile Off" | tee -a /etc/httpd/conf/httpd.conf
  26 +
  27 +# Instalação do componentes UploadProgress
  28 +pecl install uploadprogress && \
  29 +echo "extension=uploadprogress.so" >> /etc/php.d/uploadprogress.ini
  30 +
  31 +# Instalação de pacote de fontes do windows
  32 +rpm -Uvh /tmp/msttcore-fonts-2.0-3.noarch.rpm
  33 +
  34 +# Instalação dos componentes de conexão do Oracle (Oracle Instant Client)
  35 +bash /tmp/install_oracle.sh
  36 +
  37 +# Instalação dos componentes de conexão do SQL Server
  38 +yum -y install freetds freetds-devel php-mssql
  39 +
  40 +# Instalação de componentes para teste do Barramento de Seriços do PEN
  41 +yum -y install supervisor gearmand libgearman libgearman-devel php56u-pecl-gearman
  42 +
  43 +# Configuração de permissão do diretório de arquivos
  44 +mkdir -p /var/sei/arquivos
  45 +chmod -R 777 /var/sei/arquivos
  46 +
  47 +# Configuração dos serviços de background do Cron
  48 +mkdir /var/log/sei
  49 +sed -i '/session required pam_loginuid.so/c\#session required pam_loginuid.so' /etc/pam.d/crond
  50 +echo "0 * * * * root /usr/bin/php -c /etc/php.ini /opt/sei/scripts/AgendamentoTarefaSEI.php 2>&1 >> /var/log/sei/agendamento_sei.log" > /etc/cron.d/sei
  51 +echo "0 * * * * root /usr/bin/php -c /etc/php.ini /opt/sip/scripts/AgendamentoTarefaSip.php 2>&1 >> /var/log/sip/agendamento_sip.log" > /etc/cron.d/sip
  52 +echo "00 01 * * * root rm -rf /opt/sei/temp/*" >> /etc/cron.d/sei
  53 +echo "00 01 * * * root rm -rf /opt/sip/temp/*" >> /etc/cron.d/sip
  54 +
  55 +# Remover arquivos temporários
  56 +rm -rf /tmp/*
  57 +yum clean all
  58 +
  59 +# Configuração de permissões de execução no script de inicialização do container
  60 +chmod +x /entrypoint.sh
  61 +
  62 +exit 0
... ...
httpd/oracle/install_oracle.sh 0 → 100644
... ... @@ -0,0 +1,22 @@
  1 +#!/usr/bin/env bash
  2 +
  3 +set -e
  4 +
  5 +# Instala?o de depend?cias do projeto
  6 +yum -y install libaio
  7 +
  8 +# Instala?o dos pacotes Basic e SDK Instant Client
  9 +rpm -Uvh /tmp/oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm
  10 +rpm -Uvh /tmp/oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm
  11 +rpm -Uvh /tmp/oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.rpm
  12 +
  13 +# Instala?o dos OCI8 extension
  14 +printf "\n" | pecl install oci8-2.0.12
  15 +
  16 +# Habilita?o da extens? do Oracle
  17 +echo "extension=oci8.so" > /etc/php.d/oci8.ini
  18 +
  19 +# Configura?o de diret?io do Oracle Instant Client no dynamic linker/loader
  20 +echo "/usr/lib/oracle/11.2/client64/lib" > /etc/ld.so.conf.d/oracle-11.conf
  21 +
  22 +exit 0
... ...
httpd/oracle/oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm 0 → 100644
No preview for this file type
httpd/oracle/oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm 0 → 100644
No preview for this file type
httpd/oracle/oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.rpm 0 → 100644
No preview for this file type
sei/Dockerfile
... ... @@ -1,41 +0,0 @@
1   -################################################################################
2   -# Dockerfile de construção do container WebApp utilizado pelo SEI e pelo SIP
3   -#
4   -# Container preparado e configurado para uso em desenvolvimento e testes
5   -################################################################################
6   -
7   -FROM centos:centos6
8   -MAINTAINER Guilherme Andrade Del Cantoni <guilherme.cantoni@planejamento.gov.br>
9   -
10   -############################# INÍCIO DA INSTALAÇÃO #############################
11   -ENV TERM xterm
12   -
13   -# Arquivos de instalação de componentes do SEI
14   -COPY assets/msttcore-fonts-2.0-3.noarch.rpm /tmp
15   -COPY oracle/oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm /tmp/
16   -COPY oracle/oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm /tmp/
17   -COPY oracle/oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.rpm /tmp/
18   -COPY oracle/install_oracle.sh /tmp/
19   -
20   -# Instalação do SEI e demais componentes acessórios
21   -COPY install.sh /install.sh
22   -COPY entrypoint.sh /entrypoint.sh
23   -
24   -RUN bash /install.sh
25   -
26   -# Configuração dos parâmetros do SEI e SIP
27   -COPY assets/LEIAME.txt /var/www/html/
28   -COPY assets/sei.ini /etc/php.d/sei.ini
29   -COPY assets/xdebug.ini /etc/php.d/xdebug.ini
30   -COPY assets/sei.conf /etc/httpd/conf.d/sei.conf
31   -COPY assets/ConfiguracaoSip.php /ConfiguracaoSip.php
32   -COPY assets/ConfiguracaoSEI.php /ConfiguracaoSEI.php
33   -
34   -# Configuração do Gearman e Supervisor, componentes necessários para a
35   -# integração do SEI com Processo Eletrônico Nacional
36   -COPY assets/supervisord.conf /etc/supervisord.conf
37   -
38   -##################### FIM DA INSTALAÇÃO #####################
39   -
40   -EXPOSE 80
41   -CMD ["/entrypoint.sh"]
sei/assets/ConfiguracaoSEI.php
... ... @@ -1,91 +0,0 @@
1   -<?
2   -
3   -class ConfiguracaoSEI extends InfraConfiguracao {
4   -
5   - private static $instance = null;
6   -
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' => getenv("MYSQL_PORT_3306_TCP_ADDR"),
37   - 'Porta' => getenv("MYSQL_PORT_3306_TCP_PORT"),
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' => getenv("ORACLE_PORT_1521_TCP_ADDR"),
46   - 'Porta' => getenv("ORACLE_PORT_1521_TCP_PORT"),
47   - 'Banco' => 'sei',
48   - 'Usuario' => 'sei_user',
49   - 'Senha' => 'sei_user',
50   - 'Tipo' => 'Oracle'), //MySql ou SqlServer
51   - */
52   -
53   - 'CacheSEI' => array(
54   - 'Servidor' => getenv("MEMCACHED_PORT_11211_TCP_ADDR"),
55   - 'Porta' => getenv("MEMCACHED_PORT_11211_TCP_PORT")),
56   -
57   - 'JODConverter' => array('Servidor' => 'http://'.getenv("JOD_PORT_8080_TCP_ADDR").':'.getenv("JOD_PORT_8080_TCP_PORT").'/converter/service'),
58   -
59   - 'Edoc' => array('Servidor' => 'http://[Servidor .NET]'),
60   -
61   - 'Solr' => array(
62   - 'Servidor' => 'http://'.getenv("SOLR_PORT_8983_TCP_ADDR").':'.getenv("SOLR_PORT_8983_TCP_PORT").'/solr',
63   - 'CoreProtocolos' => 'sei-protocolos',
64   - 'TempoCommitProtocolos' => 300,
65   - 'CoreBasesConhecimento' => 'sei-bases-conhecimento',
66   - 'TempoCommitBasesConhecimento' => 60,
67   - 'CorePublicacoes' => 'sei-publicacoes',
68   - 'TempoCommitPublicacoes' => 60),
69   -
70   - 'HostWebService' => array(
71   - 'Edoc' => array('*'),
72   - 'Sip' => array('*'),
73   - 'Publicacao' => array('*'),
74   - 'Ouvidoria' => array('*'),),
75   -
76   - 'InfraMail' => array(
77   - 'Tipo' => '2',
78   - 'Servidor' => getenv("SMTP_PORT_1025_TCP_ADDR"),
79   - 'Porta' => getenv("SMTP_PORT_1025_TCP_PORT"),
80   - 'Codificacao' => '8bit',
81   - 'MaxDestinatarios' => 999,
82   - 'MaxTamAnexosMb' => 999,
83   - 'Seguranca' => '',
84   - 'Autenticar' => false,
85   - 'Usuario' => '',
86   - 'Senha' => '',
87   - 'Protegido' => '')
88   - );
89   - }
90   - }
91   - ?>
sei/assets/ConfiguracaoSip.php
... ... @@ -1,73 +0,0 @@
1   -<?
2   -
3   -class ConfiguracaoSip extends InfraConfiguracao {
4   -
5   - private static $instance = null;
6   -
7   - public static function getInstance(){
8   - if (ConfiguracaoSip::$instance == null) {
9   - ConfiguracaoSip::$instance = new ConfiguracaoSip();
10   - }
11   - return ConfiguracaoSip::$instance;
12   - }
13   -
14   - public function getArrConfiguracoes(){
15   - return array(
16   - 'Sip' => array(
17   - 'URL' => 'http://localhost/sip',
18   - 'Producao' => false),
19   -
20   - 'PaginaSip' => array('NomeSistema' => 'SIP'),
21   -
22   - 'SessaoSip' => array(
23   - 'SiglaOrgaoSistema' => 'ABC',
24   - 'SiglaSistema' => 'SIP',
25   - 'PaginaLogin' => 'http://localhost/sip/login.php',
26   - 'SipWsdl' => 'http://localhost/sip/controlador_ws.php?servico=wsdl',
27   - 'https' => false),
28   -
29   - // CONFIGURAÇÃO PARA BASE DE DADOS MYSQL
30   - 'BancoSip' => array(
31   - 'Servidor' => getenv("MYSQL_PORT_3306_TCP_ADDR"),
32   - 'Porta' => getenv("MYSQL_PORT_3306_TCP_PORT"),
33   - 'Banco' => 'sip',
34   - 'Usuario' => 'sip_user',
35   - 'Senha' => 'sip_user',
36   - 'Tipo' => 'MySql'), //MySql ou SqlServer),
37   -
38   - // CONFIGURAÇÃO PARA BASE DE DADOS ORACLE
39   -/* 'BancoSip' => array(
40   - 'Servidor' => getenv("ORACLE_PORT_1521_TCP_ADDR"),
41   - 'Porta' => getenv("ORACLE_PORT_1521_TCP_PORT"),
42   - 'Banco' => 'sip',
43   - 'Usuario' => 'sip_user',
44   - 'Senha' => 'sip_user',
45   - 'Tipo' => 'Oracle'), //MySql ou SqlServer),
46   -*/
47   -
48   - 'CacheSip' => array(
49   - 'Servidor' => getenv("MEMCACHED_PORT_11211_TCP_ADDR"),
50   - 'Porta' => getenv("MEMCACHED_PORT_11211_TCP_PORT")),
51   -
52   - 'HostWebService' => array(
53   - 'Replicacao' => array('*'),
54   - 'Pesquisa' => array('*'),
55   - 'Autenticacao' => array('*')),
56   -
57   - 'InfraMail' => array(
58   - 'Tipo' => '2',
59   - 'Servidor' => getenv("SMTP_PORT_1025_TCP_ADDR"),
60   - 'Porta' => getenv("SMTP_PORT_1025_TCP_PORT"),
61   - 'Codificacao' => '8bit',
62   - 'MaxDestinatarios' => 999,
63   - 'MaxTamAnexosMb' => 999,
64   - 'Seguranca' => '',
65   - 'Autenticar' => false,
66   - 'Usuario' => '',
67   - 'Senha' => '',
68   - 'Protegido' => '')
69   -
70   - );
71   - }
72   -}
73   -?>
sei/assets/LEIAME.txt
... ... @@ -1 +0,0 @@
1   -Seguindo as orientações no manual de instalação do SEI 3.0.0, os códigos-fontes do projeto foram movidos para o diretório /opt
sei/assets/msttcore-fonts-2.0-3.noarch.rpm
No preview for this file type
sei/assets/sei.conf
... ... @@ -1,37 +0,0 @@
1   -KeepAlive On
2   -MaxKeepAliveRequests 100
3   -KeepAliveTimeout 15
4   -
5   -Alias "/sei" "/opt/sei/web"
6   -Alias "/sip" "/opt/sip/web"
7   -Alias "/infra_css" "/opt/infra/infra_css"
8   -Alias "/infra_js" "/opt/infra/infra_js"
9   -
10   -<VirtualHost *:80>
11   -
12   - DocumentRoot /var/www/html
13   -
14   - ServerAdmin admin@dominio.gov.br
15   - ServerName localhost
16   -
17   - DirectoryIndex index.php index.html
18   - IndexIgnore *
19   -
20   - EnableSendfile Off
21   - HostnameLookups Off
22   - ServerSignature Off
23   - AddDefaultCharset iso-8859-1
24   -
25   - # Bloqueia acesso à qualquer arquivo ou diretório externo ao DocumentRoot
26   - <Directory />
27   - AllowOverride None
28   - # Require all denied
29   - </Directory>
30   -
31   - <Directory ~ "(/opt/sei/web|/opt/sip/web|/opt/infra/infra_css|/opt/infra/infra_js)" >
32   - AllowOverride None
33   - Options None
34   - # Require all granted
35   - </Directory>
36   -
37   -</VirtualHost>
sei/assets/sei.ini
... ... @@ -1,17 +0,0 @@
1   -[php]
2   -include_path = ".:/php/includes:/opt/infra/infra_php"
3   -error_reporting = E_ALL
4   -display_errors = On
5   -display_startup_errors = On
6   -track_errors = On
7   -html_errors = On
8   -post_max_size = 110M
9   -upload_max_filesize = 100M
10   -default_charset = "iso-8859-1"
11   -session.gc_maxlifetime = 28800
12   -short_open_tag = On
13   -default_socket_timeout = 1200
14   -max_input_vars = 2000
15   -magic-quotes-gpc = 0
16   -magic_quotes_runtime = 0
17   -magic_quotes_sybase = 0
sei/assets/supervisord.conf
... ... @@ -1,75 +0,0 @@
1   -
2   -[supervisord]
3   -http_port=/var/tmp/supervisor.sock ; (default is to run a UNIX domain socket server)
4   -;http_port=127.0.0.1:9001 ; (alternately, ip_address:port specifies AF_INET)
5   -;sockchmod=0700 ; AF_UNIX socketmode (AF_INET ignore, default 0700)
6   -;sockchown=nobody.nogroup ; AF_UNIX socket uid.gid owner (AF_INET ignores)
7   -;umask=022 ; (process file creation umask;default 022)
8   -logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
9   -logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
10   -logfile_backups=10 ; (num of main logfile rotation backups;default 10)
11   -loglevel=info ; (logging level;default info; others: debug,warn)
12   -pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
13   -nodaemon=false ; (start in foreground if true;default false)
14   -minfds=1024 ; (min. avail startup file descriptors;default 1024)
15   -minprocs=200 ; (min. avail process descriptors;default 200)
16   -
17   -;nocleanup=true ; (don't clean up tempfiles at start;default false)
18   -;http_username=user ; (default is no username (open system))
19   -;http_password=123 ; (default is no password (open system))
20   -;childlogdir=/tmp ; ('AUTO' child log dir, default $TEMP)
21   -;user=chrism ; (default is current user, required if root)
22   -;directory=/tmp ; (default is not to cd during start)
23   -;environment=KEY=value ; (key value pairs to add to environment)
24   -
25   -[supervisorctl]
26   -serverurl=unix:///var/tmp/supervisor.sock ; use a unix:// URL for a unix socket
27   -;serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket
28   -;username=chris ; should be same as http_username if set
29   -;password=123 ; should be same as http_password if set
30   -;prompt=mysupervisor ; cmd line prompt (default "supervisor")
31   -
32   -; The below sample program section shows all possible program subsection values,
33   -; create one or more 'real' program: sections to be able to control them under
34   -; supervisor.
35   -
36   -;[program:theprogramname]
37   -;command=/bin/cat ; the program (relative uses PATH, can take args)
38   -;priority=999 ; the relative start priority (default 999)
39   -;autostart=true ; start at supervisord start (default: true)
40   -;autorestart=true ; retstart at unexpected quit (default: true)
41   -;startsecs=10 ; number of secs prog must stay running (def. 10)
42   -;startretries=3 ; max # of serial start failures (default 3)
43   -;exitcodes=0,2 ; 'expected' exit codes for process (default 0,2)
44   -;stopsignal=QUIT ; signal used to kill process (default TERM)
45   -;stopwaitsecs=10 ; max num secs to wait before SIGKILL (default 10)
46   -;user=chrism ; setuid to this UNIX account to run the program
47   -;log_stdout=true ; if true, log program stdout (default true)
48   -;log_stderr=true ; if true, log program stderr (def false)
49   -;logfile=/var/log/cat.log ; child log path, use NONE for none; default AUTO
50   -;logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB)
51   -;logfile_backups=10 ; # of logfile backups (default 10)
52   -
53   -[program:sei_processar_pendencias]
54   -command=/usr/bin/php -c /etc/php.ini /var/www/html/sei/modulos/pen/rn/ProcessarPendenciasRN.php
55   -numprocs=1
56   -directory=/var/www/html/sei/
57   -autostart=true
58   -autorestart=true
59   -log_stderr=true
60   -stdout_logfile=/tmp/sei.log
61   -stdout_logfile_maxbytes=1MB
62   -stderr_logfile=/tmp/sei_error.log
63   -stderr_logfile_maxbytes=1MB
64   -
65   -[program:sei_monitorar_pendencias]
66   -command=/usr/bin/php -c /etc/php.ini /var/www/html/sei/modulos/pen/rn/PendenciasTramiteRN.php
67   -numprocs=1
68   -directory=/var/www/html/sei/
69   -autostart=true
70   -autorestart=true
71   -log_stderr=true
72   -stdout_logfile=/tmp/sei.log
73   -stdout_logfile_maxbytes=1MB
74   -stderr_logfile=/tmp/sei_error.log
75   -
sei/assets/xdebug.ini
... ... @@ -1,9 +0,0 @@
1   -; Enable xdebug extension module
2   -zend_extension=/usr/lib64/php/modules/xdebug.so
3   -xdebug.remote_enable=1
4   -xdebug.remote_host=localhost
5   -xdebug.remote_port=9000
6   -xdebug.remote_handler=dbgp
7   -xdebug.remote_mode=req
8   -xdebug.remote_connect_back=1
9   -xdebug.idekey=default
sei/entrypoint.sh
... ... @@ -1,38 +0,0 @@
1   -#!/usr/bin/env bash
2   -
3   -# Atribuição dos parâmetros de configuração do SEI
4   -if [ -f /opt/sei/config/ConfiguracaoSEI.php ] && [ ! -f /opt/sei/config/ConfiguracaoSEI.php~ ]; then
5   - mv /opt/sei/config/ConfiguracaoSEI.php /opt/sei/config/ConfiguracaoSEI.php~
6   -fi
7   -
8   -if [ ! -f /opt/sei/config/ConfiguracaoSEI.php ]; then
9   - cp /ConfiguracaoSEI.php /opt/sei/config/ConfiguracaoSEI.php
10   -fi
11   -
12   -# Atribuição dos parâmetros de configuração do SIP
13   -if [ -f /opt/sip/config/ConfiguracaoSip.php ] && [ ! -f /opt/sip/config/ConfiguracaoSip.php~ ]; then
14   - mv /opt/sip/config/ConfiguracaoSip.php /opt/sip/config/ConfiguracaoSip.php~
15   -fi
16   -
17   -if [ ! -f /opt/sip/config/ConfiguracaoSip.php ]; then
18   - cp /ConfiguracaoSip.php /opt/sip/config/ConfiguracaoSip.php
19   -fi
20   -
21   -# Ajustes de permissões diversos para desenvolvimento do SEI
22   -chmod +x /opt/sei/bin/wkhtmltopdf-amd64
23   -chmod +x /opt/sei/bin/pdfboxmerge.jar
24   -chown -R 777 /opt
25   -chmod -R 777 /var/sei/arquivos
26   -#chmod -R 777 /opt/sei/temp
27   -#chmod -R 777 /opt/sip/temp
28   -
29   -# Inicialização das rotinas de agendamento
30   -/etc/init.d/rsyslog start
31   -/etc/init.d/crond start
32   -
33   -# Inicialização do Gearman e Supervisor, componentes para integração com Processo Eletrônico Nacional
34   -/etc/init.d/gearmand start
35   -/etc/init.d/supervisord start
36   -
37   -# Inicialização do servidor web
38   -/usr/sbin/httpd -DFOREGROUND
sei/install.sh
... ... @@ -1,59 +0,0 @@
1   -#!/usr/bin/env bash
2   -
3   -set -e
4   -
5   -# Instalação dos componentes básicos do servidor web apache
6   -yum -y update
7   -yum -y install httpd24u mysql56u memcached openssl wget curl unzip gcc java-1.8.0-openjdk libxml2 crontabs
8   -
9   -# Instalação do PHP e demais extenções necessárias para o projeto
10   -wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
11   -wget https://centos6.iuscommunity.org/ius-release.rpm
12   -rpm -ivh epel-release-latest-6.noarch.rpm
13   -rpm -ivh ius-release.rpm
14   -yum -y update
15   -
16   -# Instalação do PHP e demais extenções necessárias para o projeto
17   -yum -y install php56u php56u-common php56u-cli php56u-pear php56u-bcmath php56u-gd php56u-gmp php56u-imap php56u-intl php56u-ldap php56u-mbstring php56u-mysqli \
18   - php56u-odbc php56u-pdo php56u-pecl-apc php56u-pspell php56u-zlib php56u-snmp php56u-soap php56u-xml php56u-xmlrpc php56u-zts php56u-devel \
19   - php56u-pecl-apc-devel php56u-pecl-memcache php56u-calendar php56u-shmop php56u-intl php56u-mcrypt php56u-pecl-xdebug
20   -
21   -# Configuração do charset do Apache
22   -echo "AddDefaultCharset iso-8859-1" | tee -a /etc/httpd/conf/httpd.conf
23   -
24   -# Correção do bug do VirtualBox relacionado ao Sendfile. http://docs.vagrantup.com/v2/synced-folders/virtualbox.html
25   -echo "EnableSendfile Off" | tee -a /etc/httpd/conf/httpd.conf
26   -
27   -# Instalação do componentes UploadProgress
28   -pecl install uploadprogress && \
29   -echo "extension=uploadprogress.so" >> /etc/php.d/uploadprogress.ini
30   -
31   -# Instalação de pacote de fontes do windows
32   -rpm -Uvh /tmp/msttcore-fonts-2.0-3.noarch.rpm
33   -
34   -# Instalação de componentes para teste do Barramento de Seriços do PEN
35   -yum -y install supervisor gearmand libgearman libgearman-devel php56u-pecl-gearman
36   -
37   -# Instalação dos componentes de conexão ao Oracle (Oracle Instant Client)
38   -bash /tmp/install_oracle.sh
39   -
40   -# Configuração de permissão do diretório de arquivos
41   -mkdir -p /var/sei/arquivos
42   -chmod -R 777 /var/sei/arquivos
43   -
44   -# Configuração dos serviços de background do Cron
45   -mkdir /var/log/sei
46   -sed -i '/session required pam_loginuid.so/c\#session required pam_loginuid.so' /etc/pam.d/crond
47   -echo "0 * * * * root /usr/bin/php -c /etc/php.ini /opt/sei/scripts/AgendamentoTarefaSEI.php 2>&1 >> /var/log/sei/agendamento_sei.log" > /etc/cron.d/sei
48   -echo "0 * * * * root /usr/bin/php -c /etc/php.ini /opt/sip/scripts/AgendamentoTarefaSip.php 2>&1 >> /var/log/sip/agendamento_sip.log" > /etc/cron.d/sip
49   -echo "00 01 * * * root rm -rf /opt/sei/temp/*" >> /etc/cron.d/sei
50   -echo "00 01 * * * root rm -rf /opt/sip/temp/*" >> /etc/cron.d/sip
51   -
52   -# Remover arquivos temporários
53   -rm -rf /tmp/*
54   -yum clean all
55   -
56   -# Configuração de permissões de execução no script de inicialização do container
57   -chmod +x /entrypoint.sh
58   -
59   -exit 0
sei/oracle/install_oracle.sh
... ... @@ -1,22 +0,0 @@
1   -#!/usr/bin/env bash
2   -
3   -set -e
4   -
5   -# Instala?o de depend?cias do projeto
6   -yum -y install libaio
7   -
8   -# Instala?o dos pacotes Basic e SDK Instant Client
9   -rpm -Uvh /tmp/oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm
10   -rpm -Uvh /tmp/oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm
11   -rpm -Uvh /tmp/oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.rpm
12   -
13   -# Instala?o dos OCI8 extension
14   -printf "\n" | pecl install oci8-2.0.12
15   -
16   -# Habilita?o da extens? do Oracle
17   -echo "extension=oci8.so" > /etc/php.d/oci8.ini
18   -
19   -# Configura?o de diret?io do Oracle Instant Client no dynamic linker/loader
20   -echo "/usr/lib/oracle/11.2/client64/lib" > /etc/ld.so.conf.d/oracle-11.conf
21   -
22   -exit 0
sei/oracle/oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm
No preview for this file type
sei/oracle/oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm
No preview for this file type
sei/oracle/oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.rpm
No preview for this file type