Compare commits

...

25 Commits
master ... test

Author SHA1 Message Date
7a92e754e5 Отключаем debug логи. 2024-11-20 13:09:00 +00:00
9738092f62 Временно включаем Debug логи 2024-11-13 12:55:43 +03:00
25398c4a16 Временно включаем Trace логи 2024-11-13 12:46:47 +03:00
3c9ad2398d Added .gitignore
(cherry picked from commit b1f05c3fe4)
2024-11-13 12:45:29 +03:00
11374e6f7a Тестируем Gossip Router. 2024-10-30 16:04:54 +03:00
09209246e2 Тестируем Gossip Router. 2024-10-30 16:01:46 +03:00
5bf6b5810e Тестируем Gossip Router. 2024-10-30 15:56:35 +03:00
99209ed064 Тестируем Gossip Router. 2024-10-30 15:40:38 +03:00
34dd5650b2 JAVA_TOOL_OPTIONS в настройки стека, вместо Dockerfile 2024-10-30 10:42:52 +03:00
d7102b759f Обновить docker-compose.yml 2024-10-29 16:56:17 +00:00
f5552e2735 Обновить docker-compose.yml 2024-10-29 16:53:37 +00:00
86f9e25e2a reWriteBatchedInserts для соединений с AD и PG 2024-10-28 14:23:54 +00:00
StepanDemin
f5af5bf2a0 убраны логи hikari 2024-10-22 08:39:32 +03:00
StepanDemin
d66d394a9a изменено количество соединений с бд в пуле до 3 2024-10-22 08:26:18 +03:00
StepanDemin
5e5afb5afd добавлено имя для сетевого связывания 2024-10-08 09:32:13 +03:00
StepanDemin
52629d9949 изменён volume для psql 2024-10-07 18:11:39 +03:00
StepanDemin
ca49c5a6b7 добавлено подключение к s3/dev 2024-10-07 16:01:08 +03:00
StepanDemin
e1ef4d060c добавлен volume 2024-10-04 16:14:58 +03:00
StepanDemin
d7ef3121e1 обновлён ci-cd для развёртывания на двух нодах и с постгре 2024-10-04 15:28:28 +03:00
6e07280e96 pre/post скрипты для Postgresql 2024-09-27 13:04:05 +03:00
65f66abc78 Убираем infinispan, т.к. по умолчанию он будет выключен. 2024-09-13 17:31:21 +03:00
ba9b25bf9c Убрал management из настроек. 2024-08-20 18:15:17 +03:00
abca60e5d6 restart: unless-stopped 2024-07-03 17:10:47 +03:00
fa5877841c Меняем ветку метаданных на имя ветки разработки. 2024-07-03 09:20:14 +03:00
903a256002 test docker-compose.yml 2024-07-02 22:13:05 +03:00
7 changed files with 97 additions and 26 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/.idea/misc.xml
/.idea/vcs.xml
/.idea/workspace.xml

3
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/misc.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_18" default="true" project-jdk-name="18" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/expert-isa-2-cicd.iml" filepath="$PROJECT_DIR$/.idea/expert-isa-2-cicd.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@ -1,46 +1,86 @@
services: services:
eisa: eisa:
image: git.expertdwh.ru/ewh/expertisa:master image: git.expertdwh.ru/ewh/expertisa:${BRANCH}
pull_policy: always pull_policy: always
volumes: restart: unless-stopped
- /opt/docker/eisa/master:/data deploy:
- /opt/docker/eisa/master-files:/data/uploaded-files replicas: 2
configs: configs:
- source: app_config - source: app_config
target: /data/application.yaml target: /data/application.yaml
- source: hikari
target: /data/hikari.properties
entrypoint: ["java", "-Dhikaricp.configurationFile=/data/hikari.properties", "-Djgroups.tunnel.hosts=app-eisa.expertdwh.ru[12001]", "-jar", "/app.war"]
environment:
JAVA_TOOL_OPTIONS: "-XX:MaxRAMPercentage=90"
labels: labels:
- "traefik.http.routers.expertisa-master.rule=HostRegexp(`master\\..+`)" - "traefik.http.routers.expertisa-${BRANCH}.rule=HostRegexp(`${BRANCH}\\..+`)"
- "traefik.http.routers.expertisa-master.tls=true" - "traefik.http.routers.expertisa-${BRANCH}.tls=true"
- "traefik.http.services.expertisa-master.loadbalancer.healthcheck.path=/actuator/health" - "traefik.http.services.expertisa-${BRANCH}.loadbalancer.healthcheck.path=/health"
- "traefik.http.services.expertisa-master.loadbalancer.healthcheck.interval=5s" - "traefik.http.services.expertisa-${BRANCH}.loadbalancer.healthcheck.interval=5s"
network_mode: bridge networks:
- expertisa-twonodes-postgresql
depends_on:
- psql
psql:
container_name: psql-${BRANCH}
image: postgres:latest
environment:
POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "admin"
POSTGRES_DB: "expertisa-metadata"
networks:
- expertisa-twonodes-postgresql
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata:
name: pgdata-${BRANCH}
networks:
expertisa-twonodes-postgresql:
external: true
configs: configs:
app_config: app_config:
content: | content: |
infinispan: infinispan:
embedded: embedded:
cluster-name: master enabled: true
cluster-name: eisa-${BRANCH}
stack: tunnel
eisa: eisa:
force-core-update: true force-core-update: true
metadata-git: metadata-git:
url: https://git.expertdwh.ru/EWH/expert-isa-2-metadata url: https://git.expertdwh.ru/EWH/expert-isa-2-metadata
branch: master branch: ${BRANCH}
enabled: true enabled: true
token: ${GIT_TOKEN} token: ${GIT_TOKEN}
file-store-type: s3
s3:
endpoint: minio.app.expertdwh.ru
port: 9000
access-key: ZfyTrAp9tsxkvfyyEIbC
secret-key: jurIHMBGQ54HLu0CXwLSDiahhT6JV6qwZTFhqO37
bucket: dev
db: db:
common-datasource-name: meta common-datasource-name: psql
jdbc: jdbc:
meta: psql:
url: jdbc:postgresql://app.expertdwh.ru:5432/eisa-master url: jdbc:postgresql://psql-${BRANCH}:5432/expertisa-metadata?reWriteBatchedInserts=true
username: ewh username: admin
password: ${EWH_PASSWORD} password: admin
EWH: EWH:
url: jdbc:postgresql://adb-master.expertdwh.ru:5432/ewh url: jdbc:postgresql://adb-master.expertdwh.ru:5432/ewh?reWriteBatchedInserts=true
username: ewh username: ewh
password: ${EWH_PASSWORD} password: ${EWH_PASSWORD}
pre-script: core-postgresql.preScript
post-script: core-postgresql.postScript
EWH_ORA: EWH_ORA:
url: jdbc:oracle:thin:@oracle.expertdwh.ru:1521:ewh url: jdbc:oracle:thin:@oracle.expertdwh.ru:1521:ewh
username: ewh username: ewh
@ -49,12 +89,8 @@ configs:
url: jdbc:oracle:thin:@oracle.expertdwh.ru:1521:ewh url: jdbc:oracle:thin:@oracle.expertdwh.ru:1521:ewh
username: dwh username: dwh
password: ${DWH_PASSWORD} password: ${DWH_PASSWORD}
management: audit.enabled: true
endpoints:
web: hikari:
exposure: content: |
include: '*' maximumPoolSize=3
jmx:
exposure:
include: '*'
audit.enabled: true