Skip to content

Commit

Permalink
fix: remove super do nome da base de referência
Browse files Browse the repository at this point in the history
  • Loading branch information
caduvieira committed Aug 23, 2023
1 parent 7d2122d commit b419347
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions containers/databases/mariadb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ ENV MYSQL_ROOT_PASSWORD=P@ssword

COPY assets/my.cnf /etc/mysql/mariadb.conf.d/sei.cnf
COPY assets/pre-install.sql /docker-entrypoint-initdb.d/1_pre-install.sql
ADD ${GIT_DB_REF}/mysql/v4.0.x.1/sei_super_4.0.x.1_BD_Ref_Exec.sql /docker-entrypoint-initdb.d/2_sei_4_0_0_BD_Ref_Exec.sql
ADD ${GIT_DB_REF}/mysql/v4.0.x.1/sip_super_4.0.x.1_BD_Ref_Exec.sql /docker-entrypoint-initdb.d/3_sip_4_0_0_BD_Ref_Exec.sql
ADD ${GIT_DB_REF}/mysql/v4.0.x.1/sei_4.0.x.1_BD_Ref_Exec.sql /docker-entrypoint-initdb.d/2_sei_4_0_0_BD_Ref_Exec.sql
ADD ${GIT_DB_REF}/mysql/v4.0.x.1/sip_4.0.x.1_BD_Ref_Exec.sql /docker-entrypoint-initdb.d/3_sip_4_0_0_BD_Ref_Exec.sql
COPY assets/pos-install.sql /docker-entrypoint-initdb.d/9_pos-install.sql

RUN chmod 644 /etc/mysql/mariadb.conf.d/sei.cnf
Expand Down
4 changes: 2 additions & 2 deletions containers/databases/oracle/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ ENV TERM xterm \
ORACLE_ALLOW_REMOTE=true \
NLS_LANG=PORTUGUESE_BRAZIL.WE8MSWIN1252

ADD ${GIT_DB_REF}/oracle/v4.0.x.1/sei_super_4.0.x.1_BD_Ref_Exec.dmp \
${GIT_DB_REF}/oracle/v4.0.x.1/sip_super_4.0.x.1_BD_Ref_Exec.dmp \
ADD ${GIT_DB_REF}/oracle/v4.0.x.1/sei_4.0.x.1_BD_Ref_Exec.dmp \
${GIT_DB_REF}/oracle/v4.0.x.1/sip_4.0.x.1_BD_Ref_Exec.dmp \
assets/pre-install.sql \
assets/sei-config.sql \
assets/sip-config.sql \
Expand Down
4 changes: 2 additions & 2 deletions containers/databases/oracle/assets/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_SID=XE
export NLS_LANG=PORTUGUESE_BRAZIL.WE8MSWIN1252

mv /tmp/sei_super_4.0.x.1_BD_Ref_Exec.dmp /tmp/sei_4_0_0_BD_Ref_Exec.dmp
mv /tmp/sip_super_4.0.x.1_BD_Ref_Exec.dmp /tmp/sip_4_0_0_BD_Ref_Exec.dmp
mv /tmp/sei_4.0.x.1_BD_Ref_Exec.dmp /tmp/sei_4_0_0_BD_Ref_Exec.dmp
mv /tmp/sip_4.0.x.1_BD_Ref_Exec.dmp /tmp/sip_4_0_0_BD_Ref_Exec.dmp

# Inicialização do servidor
/usr/sbin/startup.sh
Expand Down
4 changes: 2 additions & 2 deletions containers/databases/sqlserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ ENV TERM xterm \

ADD assets/install.sh \
assets/restore.sql \
${GIT_DB_REF}/sqlserver/v4.0.x.1/sei_super_4.0.x.1_BD_Ref_Exec.bak \
${GIT_DB_REF}/sqlserver/v4.0.x.1/sip_super_4.0.x.1_BD_Ref_Exec.bak \
${GIT_DB_REF}/sqlserver/v4.0.x.1/sei_4.0.x.1_BD_Ref_Exec.bak \
${GIT_DB_REF}/sqlserver/v4.0.x.1/sip_4.0.x.1_BD_Ref_Exec.bak \
/tmp/

RUN bash /tmp/install.sh
4 changes: 2 additions & 2 deletions containers/databases/sqlserver/assets/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export SA_PASSWORD='yourStrong(!)Password'
/opt/mssql/bin/sqlservr &
sleep 30

mv /tmp/sip_super_4.0.x.1_BD_Ref_Exec.bak /tmp/sip_sqlserver.bak
mv /tmp/sei_super_4.0.x.1_BD_Ref_Exec.bak /tmp/sei_sqlserver.bak
mv /tmp/sip_4.0.x.1_BD_Ref_Exec.bak /tmp/sip_sqlserver.bak
mv /tmp/sei_4.0.x.1_BD_Ref_Exec.bak /tmp/sei_sqlserver.bak

tsql -S localhost -U sa -P $SA_PASSWORD < /tmp/restore.sql

Expand Down

0 comments on commit b419347

Please sign in to comment.