diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..8d0c07019 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM fabiomagoo/wildflybase:22.0.1.final + +USER jboss + +# Define as variáveis de ambiente a partir do arquivo .env +ENV $(cat /tmp/adm/.env | grep -v '#' | xargs) + +ADD target/*.war /opt/jboss/wildfly/standalone/deployments/ + +EXPOSE 8080 9990 8787 \ No newline at end of file diff --git a/Dockerfile_base b/Dockerfile_base new file mode 100644 index 000000000..7e6191a58 --- /dev/null +++ b/Dockerfile_base @@ -0,0 +1,18 @@ +FROM jboss/wildfly:22.0.1.Final + +USER jboss + +#set do diretorio de trabalho +WORKDIR /tmp/adm + +# adicionando usuario adm +RUN /opt/jboss/wildfly/bin/add-user.sh -u admin -p rjmaster09 --silent + +#copy do driver +ADD target/ventaboletosadm/WEB-INF/lib/ojdbc8.jar /opt/jboss/wildfly/standalone/deployments/ojdbc8-21.7.0.0.jar + +ADD ./conf/inicial /opt/jboss/wildfly/standalone/configuration/standalone.xml + +EXPOSE 8080 9990 8787 + +CMD /opt/jboss/wildfly/bin/standalone.sh ${DEBUG_ENV} -b 0.0.0.0 -bmanagement 0.0.0.0 -c standalone.xml \ No newline at end of file diff --git a/conf/env-file.env b/conf/env-file.env new file mode 100644 index 000000000..b12010734 --- /dev/null +++ b/conf/env-file.env @@ -0,0 +1,9 @@ +DEBUG_ENV=--debug *:8787 + +SCO_URL=jdbc:oracle:thin:@138.219.88.188:1524/ORCLCDB +SCO_USER=vtabol +SCO_PWD=dev_rj_20 + +READ_URL=jdbc:oracle:thin:@138.219.88.188:1524/ORCLCDB +READ_USER=vtabol +READ_PWD=dev_rj_20 \ No newline at end of file diff --git a/conf/inicial b/conf/inicial new file mode 100644 index 000000000..464d11dce --- /dev/null +++ b/conf/inicial @@ -0,0 +1,588 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${env.SCO_URL} + oracle.jdbc.driver.OracleDriver + ojdbc8-21.7.0.0.jar + + ${env.SCO_USER} + ${env.SCO_PWD} + + + 1 + 10 + false + + + + true + 300000 + + + + + + ${env.READ_URL} + oracle.jdbc.driver.OracleDriver + ojdbc8-21.7.0.0.jar + + ${env.READ_USER} + ${env.READ_PWD} + + + 1 + 10 + false + + + + true + 300000 + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE + h2 + + sa + sa + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${jboss.bind.address:127.0.0.1} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 7523ca0c9..3417b9636 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores ventaboletosadm - 1.48.2 + 1.48.2 war