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