Skip to content

Commit

Permalink
Conteiner app-dev-php8 (pasta dev) agora roda os agendamentos do SEI …
Browse files Browse the repository at this point in the history
…e SIP automaticamente

Conteiner app-dev-php8 (pasta dev) agora roda os agendamentos do SEI e SIP automaticamente
  • Loading branch information
marlinhares authored Feb 25, 2025
1 parent f5816e2 commit 53e08c3
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 19 deletions.
4 changes: 2 additions & 2 deletions containers/app-php8/app-dev-php8/assets/conf/cron.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* * * * * root . /crond_env.sh; root /usr/bin/php -c /etc/php.ini /opt/sei/scripts/AgendamentoTarefaSEI.php 2>&1 >> /var/log/sei/agendamento_sei.log
* * * * * root . /crond_env.sh; root /usr/bin/php -c /etc/php.ini /opt/sip/scripts/AgendamentoTarefaSip.php 2>&1 >> /var/log/sip/agendamento_sip.log
* * * * * root . /root/cronenv.sh; /usr/bin/php -c /etc/php.ini /opt/sei/scripts/AgendamentoTarefaSEI.php >> /var/log/sei/agendamento_sei.log 2>> /var/log/sei/agendamento_sei.log
* * * * * root . /root/cronenv.sh; /usr/bin/php -c /etc/php.ini /opt/sip/scripts/AgendamentoTarefaSip.php >> /var/log/sei/agendamento_sip.log 2>> /var/log/sei/agendamento_sip.log
00 01 * * * root rm -rf /opt/sei/temp/*
00 01 * * * root rm -rf /opt/sip/temp/*
9 changes: 4 additions & 5 deletions containers/app-php8/app-dev-php8/assets/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ yum -y update

# Instalação de ferramentas utilitárias e dependências do SEI
yum -y groupinstall 'Development Tools'
yum install -y crontabs mysql net-tools nc
yum install -y cronie mysql net-tools nc


# Instalação do XDebug, versão 3
Expand All @@ -27,15 +27,14 @@ 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

mkdir -p /etc/cron.d/sei

cp /tmp/assets/conf/info.php /var/www/html/
cp /tmp/assets/conf/sei.ini /etc/php.d/
cp /tmp/assets/conf/sei.conf /etc/httpd/conf.d/
cp /tmp/assets/conf/deflate.conf /etc/httpd/conf.d/
#cp /tmp/assets/conf/cron.conf /etc/cron.d/
cp /tmp/assets/conf/cron.conf /etc/cron.d/sei
chown -R root:root /etc/cron.d/
chmod 0644 /etc/cron.d/sei
cp /tmp/assets/conf/xdebug.ini /etc/php.d/

sed -i "s|^SSLCertificateFile |#SSLCertificateFile|" /etc/httpd/conf.d/ssl.conf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ chmod -R 777 /opt/sip/temp
chmod -R 777 /var/sei/arquivos

# Inicialização das rotinas de agendamento
printenv | sed 's/^\(.*\)$$/export \1/g' > /crond_env.sh
chown root:root /etc/cron.d/sei
printenv | sed 's|^|export |' | sed 's|=|="|' | sed 's|$|"|' > /root/cronenv.sh
chown -R root:root /etc/cron.d/
chmod 0644 /etc/cron.d/sei
crond
/usr/sbin/crond start -p

\cp /opt2/remi.tgz /opt/
cd /opt && tar -xvzf remi.tgz
Expand Down
2 changes: 1 addition & 1 deletion containers/envcontainers.env.modelo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DOCKER_REGISTRY=processoeletronico
DOCKER_CONTAINER_VERSAO_PRODUTO=3.6.3
DOCKER_CONTAINER_VERSAO_PRODUTO=3.6.4

IMAGEM_BASE_CENTOS=${DOCKER_REGISTRY}/base-centos7
IMAGEM_BASE_CENTOS_VERSAO=latest
Expand Down
2 changes: 1 addition & 1 deletion dev/envs/env-mysql-sei4.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ENVIRONMENT_VERSION=3.6.2
ENVIRONMENT_VERSION=3.6.4

DOCKER_REGISTRY=processoeletronico

Expand Down
2 changes: 1 addition & 1 deletion dev/envs/env-mysql-sei5.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ENVIRONMENT_VERSION=3.6.2
ENVIRONMENT_VERSION=3.6.4

DOCKER_REGISTRY=processoeletronico

Expand Down
2 changes: 1 addition & 1 deletion dev/envs/env-oracle-sei4.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ENVIRONMENT_VERSION=3.6.2
ENVIRONMENT_VERSION=3.6.4

DOCKER_REGISTRY=processoeletronico

Expand Down
2 changes: 1 addition & 1 deletion dev/envs/env-oracle-sei5.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ENVIRONMENT_VERSION=3.6.2
ENVIRONMENT_VERSION=3.6.4

DOCKER_REGISTRY=processoeletronico

Expand Down
2 changes: 1 addition & 1 deletion dev/envs/env-postgres-sei4.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ENVIRONMENT_VERSION=3.6.2
ENVIRONMENT_VERSION=3.6.4

DOCKER_REGISTRY=processoeletronico

Expand Down
2 changes: 1 addition & 1 deletion dev/envs/env-postgres-sei5.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ENVIRONMENT_VERSION=3.6.2
ENVIRONMENT_VERSION=3.6.4

DOCKER_REGISTRY=processoeletronico

Expand Down
2 changes: 1 addition & 1 deletion dev/envs/env-sqlserver-sei4.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ENVIRONMENT_VERSION=3.6.2
ENVIRONMENT_VERSION=3.6.4

DOCKER_REGISTRY=processoeletronico

Expand Down
2 changes: 1 addition & 1 deletion dev/envs/env-sqlserver-sei5.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ENVIRONMENT_VERSION=3.6.2
ENVIRONMENT_VERSION=3.6.4

DOCKER_REGISTRY=processoeletronico

Expand Down

0 comments on commit 53e08c3

Please sign in to comment.