2 Commits

7 changed files with 29 additions and 132 deletions

3
.gitignore vendored
View File

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

3
.idea/.gitignore generated vendored
View File

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

View File

@ -1,9 +0,0 @@
<?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 generated
View File

@ -1,6 +0,0 @@
<?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 generated
View File

@ -1,8 +0,0 @@
<?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 generated
View File

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

View File

@ -1,87 +1,33 @@
services: services:
eisa: eisa:
image: git.expertdwh.ru/ewh/expertisa:${BRANCH} image: git.expertdwh.ru/ewh/expertisa:master
pull_policy: always pull_policy: always
restart: unless-stopped restart: unless-stopped
deploy: volumes:
replicas: 2 - /opt/docker/eisa/master:/data
resources: - /opt/docker/eisa/master-files:/data/uploaded-files
limits:
cpus: '4.0'
memory: 4G
configs: configs:
- source: app_config - source: app_config
target: /data/application.yaml target: /data/application.yaml
- source: hikari
target: /data/hikari.properties
entrypoint: ["java", "-Dexpertisa.branch=${BRANCH}", "-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-${BRANCH}.rule=HostRegexp(`${BRANCH}\\..+`)" - "traefik.http.routers.expertisa-master.rule=HostRegexp(`master\\..+`)"
- "traefik.http.routers.expertisa-${BRANCH}.tls=true" - "traefik.http.routers.expertisa-master.tls=true"
- "traefik.http.services.expertisa-${BRANCH}.loadbalancer.healthcheck.path=/health/readiness" - "traefik.http.services.expertisa-master.loadbalancer.healthcheck.path=/actuator/health"
- "traefik.http.services.expertisa-${BRANCH}.loadbalancer.healthcheck.interval=5s" - "traefik.http.services.expertisa-master.loadbalancer.healthcheck.interval=5s"
networks: network_mode: bridge
- expertisa-twonodes-postgresql
depends_on:
- psql
psql:
container_name: psql-${BRANCH}
image: postgres:latest
restart: unless-stopped
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:
enabled: true cluster-name: master
cluster-name: eisa-${BRANCH}
stack: tunnel
spring:
mail:
host: smtp.yandex.ru
port: 465
username: expertisaewh@yandex.ru
password: ${NOTIFICATION_PASSWORD}
properties:
mail:
transport:
protocol: smtps
smtp:
auth: true
ssl:
enable: true
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: ${BRANCH}
enabled: true
token: ${GIT_TOKEN}
personal-tunes-git:
url: https://git.expertdwh.ru/EWH/expert-isa-2-personal-tunes
branch: master branch: master
enabled: true enabled: true
token: ${GIT_TOKEN} token: ${GIT_TOKEN}
@ -89,48 +35,34 @@ configs:
s3: s3:
endpoint: minio.app.expertdwh.ru endpoint: minio.app.expertdwh.ru
port: 9000 port: 9000
access-key: Q13rej1S6TdtXKb5Fuw5 access-key: ZfyTrAp9tsxkvfyyEIbC
secret-key: ArYgb17ovZZutEgxZnIqNKq1h6DfNt7CN5zeiQXg secret-key: jurIHMBGQ54HLu0CXwLSDiahhT6JV6qwZTFhqO37
bucket: dev bucket: master
db: db:
common-datasource-name: psql common-datasource-name: meta
camunda-datasource-name: psql-camunda
jdbc: jdbc:
psql: meta:
url: jdbc:postgresql://psql-${BRANCH}:5432/expertisa-metadata?reWriteBatchedInserts=true url: jdbc:postgresql://app.expertdwh.ru:5432/eisa-master
username: admin username: ewh
password: admin password: ${EWH_PASSWORD}
psql-camunda: EWH:
url: jdbc:postgresql://psql-${BRANCH}:5432/expertisa-metadata?reWriteBatchedInserts=true url: jdbc:postgresql://adb-master.expertdwh.ru:5432/ewh
username: admin
password: admin
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
password: ${EWH_PASSWORD} password: ${EWH_PASSWORD}
pre-script: core-oracle.preScript
DWH_ORA: DWH_ORA:
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}
pre-script: core-oracle.preScript management:
MSSQL: endpoints:
url: jdbc:sqlserver://;serverName=app.expertdwh.ru;databaseName=master;encrypt=true;trustServerCertificate=true web:
username: sa exposure:
password: ${EWH_PASSWORD} include: '*'
uwh: jmx:
url: jdbc:postgresql://app.expertdwh.ru/uwh?reWriteBatchedInserts=true exposure:
username: uwh include: '*'
password: uwh audit.enabled: true
audit.enabled: true
hikari:
content: |
minimumIdle=0
maximumPoolSize=12