From d91778cca7aa2fdc13b7091b5cf4d305e787b77a Mon Sep 17 00:00:00 2001 From: Pavel Zilke Date: Tue, 21 Oct 2025 09:50:59 +0300 Subject: [PATCH] Added config/NODEJS_version for TC build --- config/NODEJS_version | 1 + config/docker-compose.yaml | 14 - config/entrypoint.sh | 48 -- config/micord.env | 22 - config/patches/add-logger-database.cli | 3 - config/patches/default.cli | 68 -- config/patches/system/add-demo-user.sh | 1 - .../patches/system/add-postgresql-driver.cli | 5 - config/patches/system/init.cli | 14 - config/standalone.xml | 590 ------------------ 10 files changed, 1 insertion(+), 765 deletions(-) create mode 100644 config/NODEJS_version delete mode 100644 config/docker-compose.yaml delete mode 100644 config/entrypoint.sh delete mode 100644 config/micord.env delete mode 100644 config/patches/add-logger-database.cli delete mode 100644 config/patches/default.cli delete mode 100644 config/patches/system/add-demo-user.sh delete mode 100644 config/patches/system/add-postgresql-driver.cli delete mode 100644 config/patches/system/init.cli delete mode 100644 config/standalone.xml diff --git a/config/NODEJS_version b/config/NODEJS_version new file mode 100644 index 0000000..9a2a0e2 --- /dev/null +++ b/config/NODEJS_version @@ -0,0 +1 @@ +v20 diff --git a/config/docker-compose.yaml b/config/docker-compose.yaml deleted file mode 100644 index 8306fba..0000000 --- a/config/docker-compose.yaml +++ /dev/null @@ -1,14 +0,0 @@ -version: "3" -services: - webbpm-app: - build: - context: . - dockerfile: Dockerfile - volumes: - - ./cde-xml:/cde-xml - ports: - - 8080 - - 8787 - - 9990 - env_file: - - micord.env diff --git a/config/entrypoint.sh b/config/entrypoint.sh deleted file mode 100644 index 7178804..0000000 --- a/config/entrypoint.sh +++ /dev/null @@ -1,48 +0,0 @@ -#! /bin/bash -set -e - -function wait_for_server() { - until `$JBOSS_HOME/bin/jboss-cli.sh -c ":read-attribute(name=server-state)" 2> /dev/null | grep -q running`; do - echo "Retry ..." - done -} - -echo "dump environment variables to env.properties file" -printenv > env.properties - -echo "starting JBoss" -nohup $JBOSS_HOME/bin/standalone.sh --admin-only 1>&2 2>/dev/null & - -# running system patches -wait_for_server -$JBOSS_HOME/bin/jboss-cli.sh --connect --file="./patches/system/init.cli" --properties=env.properties -$JBOSS_HOME/bin/jboss-cli.sh --connect --file="./patches/system/add-postgresql-driver.cli" --properties=env.properties -bash "./patches/system/add-demo-user.sh" - -# running project patches -find ./patches/ -type f -name '*.cli' -not -path './patches/system/*' -print0 | -while IFS= read -r -d '' f; do - wait_for_server - echo "running $f" - $JBOSS_HOME/bin/jboss-cli.sh --connect --file="$f" --properties=env.properties -done; - -find ./patches/ -type f -name '*.sh' -not -path './patches/system/*' -print0 | -while IFS= read -r -d '' f; do - wait_for_server - echo "running $f" - bash "$f" -done - -echo "stopping JBoss" -wait_for_server -$JBOSS_HOME/bin/jboss-cli.sh --connect --command=:shutdown - -if ! [[ -z $SERVER_START ]]; then - echo "starting JBoss in standalone" - sleep 10 # without this occurs error "address already in use" - /opt/jboss/wildfly/bin/standalone.sh -c standalone.xml -b 0.0.0.0 -bmanagement 0.0.0.0 -else - echo "cleaning up JBoss logs" - rm -rf $JBOSS_HOME/standalone/log -fi diff --git a/config/micord.env b/config/micord.env deleted file mode 100644 index 0827e7a..0000000 --- a/config/micord.env +++ /dev/null @@ -1,22 +0,0 @@ -TZ=Europe/Moscow - -# App datasource -DB_APP_USERNAME=ervu_eks -DB_APP_PASSWORD=ervu_eks -DB_APP_HOST=10.10.31.118 -DB_APP_PORT=5432 -DB_APP_NAME=ervu_eks - -# Security datasource -DB_SEC_USERNAME=ervu_eks_sec -DB_SEC_PASSWORD=ervu_eks_sec -DB_SEC_HOST=10.10.31.118 -DB_SEC_PORT=5432 -DB_SEC_NAME=ervu_eks - -# Person datasource -DB_PERSON_USERNAME=ervu -DB_PERSON_PASSWORD=ervu -DB_PERSON_HOST=10.10.31.118 -DB_PERSON_PORT=5432 -DB_PERSON_NAME=person_registry diff --git a/config/patches/add-logger-database.cli b/config/patches/add-logger-database.cli deleted file mode 100644 index 83ee893..0000000 --- a/config/patches/add-logger-database.cli +++ /dev/null @@ -1,3 +0,0 @@ -/subsystem=logging/logger=org.jooq.tools:add() -/subsystem=logging/logger=org.jooq.tools:write-attribute(name=level, value=DEBUG) -/subsystem=logging/logger=org.jooq.tools:add-handler(name=CONSOLE) \ No newline at end of file diff --git a/config/patches/default.cli b/config/patches/default.cli deleted file mode 100644 index 9394dd1..0000000 --- a/config/patches/default.cli +++ /dev/null @@ -1,68 +0,0 @@ -xa-data-source add \ - --name=AppDS \ - --enabled=true \ - --driver-name=postgresql \ - --jndi-name=java:/webbpm/AppDS \ - --user-name=${env.DB_APP_USERNAME:app_user} \ - --password=${env.DB_APP_PASSWORD:apppassword} \ - --use-ccm=true \ - --valid-connection-checker-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker \ - --validate-on-match=false \ - --background-validation=true \ - --background-validation-millis=5000 \ - --exception-sorter-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter \ - --statistics-enabled=true \ - --max-pool-size=50 \ - --query-timeout=300 \ - --xa-datasource-properties=ServerName=${env.DB_APP_HOST:db},PortNumber=${env.DB_APP_PORT:5432},DatabaseName=${env.DB_APP_NAME:app} - -xa-data-source add \ - --name=SECURITYDS \ - --enabled=true \ - --driver-name=postgresql \ - --jndi-name=java:/webbpm/security-ds \ - --user-name=${env.DB_SEC_USERNAME:security_user} \ - --password=${env.DB_SEC_PASSWORD:secpassword} \ - --max-pool-size=70 \ - --valid-connection-checker-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker \ - --validate-on-match=false \ - --background-validation=true \ - --background-validation-millis=5000 \ - --exception-sorter-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter \ - --statistics-enabled=true \ - --query-timeout=300 \ - --xa-datasource-properties=ServerName=${env.DB_SEC_HOST:db},PortNumber=${env.DB_SEC_PORT:5432},DatabaseName=${env.DB_SEC_NAME:app} - -data-source add \ - --name=PERSONDS \ - --enabled=true \ - --driver-name=postgresql \ - --connection-url=jdbc:postgresql://${env.DB_PERSON_HOST:db}:${env.DB_PERSON_PORT:5432}/${env.DB_PERSON_NAME:person_registry} \ - --jndi-name=java:/webbpm/personRegistryDS \ - --user-name=${env.DB_PERSON_USERNAME:ervu} \ - --password=${env.DB_PERSON_PASSWORD:ervu} \ - --valid-connection-checker-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker \ - --validate-on-match=false \ - --background-validation=true \ - --background-validation-millis=5000 \ - --exception-sorter-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter \ - --statistics-enabled=true \ - --query-timeout=300 \ - --max-pool-size=10 - -/system-property=ldap.mapping.login.param:add(value=${env.WEBBPM_LDAP_LOGIN_ATTR:uid}) -/system-property=ldap.mapping.org.code.param:add(value=${env.WEBBPM_LDAP_ORGANIZATION_ATTR:ou}) -/system-property=jboss.as.management.blocking.timeout:add(value=900) -/subsystem=undertow/server=default-server/http-listener=default/:write-attribute(name=record-request-start-time,value=true) -/subsystem=undertow/server=default-server/host=default-host/setting=access-log:add(pattern=%h %t "%r" %s %b %D) -/system-property=webbpm.cache.hazelcast.hosts:add(value="127.0.0.1") -/system-property=webbpm.cache.hazelcast.outbound_port_definitions:add(value="5801-5820") -/system-property=webbpm.security.session.active.count:add(value="20") -/system-property=security.password.regex:add(value="^((?=(.*\\d){1,})(?=.*[a-zа-яё])(?=.*[A-ZА-ЯЁ]).{8,})$") -/system-property=gar.enable:add(value=false) -/system-property=fias.enable:add(value=false) -/system-property=bpmn.enable:add(value=false) -/system-property=config.data.executor.url:add(value="http://localhost:8080/config-data-executor/api") -/system-property=config.data.executor.socket.timeout:add(value="10") -/system-property=config.data.executor.connection.timeout:add(value="10") -/system-property=configDirectory:add(value="/cde-xml") diff --git a/config/patches/system/add-demo-user.sh b/config/patches/system/add-demo-user.sh deleted file mode 100644 index 32b2986..0000000 --- a/config/patches/system/add-demo-user.sh +++ /dev/null @@ -1 +0,0 @@ -$JBOSS_HOME/bin/add-user.sh demo@example.com demo diff --git a/config/patches/system/add-postgresql-driver.cli b/config/patches/system/add-postgresql-driver.cli deleted file mode 100644 index 66566bf..0000000 --- a/config/patches/system/add-postgresql-driver.cli +++ /dev/null @@ -1,5 +0,0 @@ -/subsystem=datasources/jdbc-driver=postgresql:add( \ - driver-name="postgresql", \ - driver-module-name="org.postgresql", \ - driver-xa-datasource-class-name="org.postgresql.xa.PGXADataSource" \ -) diff --git a/config/patches/system/init.cli b/config/patches/system/init.cli deleted file mode 100644 index 100c4d3..0000000 --- a/config/patches/system/init.cli +++ /dev/null @@ -1,14 +0,0 @@ -/system-property=webbpm.mode:add(value=production) -/system-property=authentication.method:add(value=form) -/subsystem=undertow/configuration=filter/gzip=gzipFilter:add() -/subsystem=undertow/server=default-server/host=default-host/\ - filter-ref=gzipFilter:add(predicate="exists('%{o,Content-Type}') and regex(pattern='(?:application/javascript|text/css|text/html|text/xml|application/json)(;.*)?', value=%{o,Content-Type}, full-match=true)") -/subsystem=undertow/configuration=filter/response-header=vary-header:add(header-name="Vary", header-value="Accept-Encoding") -/subsystem=undertow/server=default-server/host=default-host/filter-ref=vary-header:add() -/subsystem=undertow/server=default-server/http-listener=default/:write-attribute(name=max-post-size,value=${env.MAX_POST_SIZE:104857600}) -data-source remove --name=ExampleDS -/subsystem=ee/service=default-bindings:remove -/system-property=jboss.bind.address.management:add(value=0.0.0.0) -/system-property=jboss.bind.address:add(value=0.0.0.0) -module add --name=org.postgresql --resources=./patches/system/postgresql-driver.jar --dependencies=javax.api,javax.transaction.api -shutdown --restart diff --git a/config/standalone.xml b/config/standalone.xml deleted file mode 100644 index c7534f1..0000000 --- a/config/standalone.xml +++ /dev/null @@ -1,590 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 10.10.31.118 - 5432 - ervu_eks - postgresql - - ervu_eks - ervu_eks - - - - false - true - 5000 - - - - - 10.10.31.118 - 5432 - ervu_eks - postgresql - - ervu_eks_sec - ervu_eks_sec - - - - false - true - 5000 - - - - - - jdbc:postgresql://10.10.31.118:5432/person_registry - postgresql - - ervu - ervu - - - - false - true - 5000 - - - - 300 - - - - - org.h2.jdbcx.JdbcDataSource - - - org.postgresql.xa.PGXADataSource - - - - - - - - - - - - - - - - - false - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${jboss.bind.address:127.0.0.1} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -