Compare commits

..

11 Commits
test ... master

6 changed files with 20 additions and 97 deletions

3
.idea/.gitignore 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>

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>

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>

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,50 +1,24 @@
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: deploy:
replicas: 2 replicas: 3
configs: configs:
- source: app_config - source: app_config
target: /data/application.yaml target: /data/application.yaml
- source: hikari
target: /data/hikari.properties labels:
entrypoint: ["java", "-Dhikaricp.configurationFile=/data/hikari.properties", "-Djgroups.tunnel.hosts=app-eisa.expertdwh.ru[12001]", "-jar", "/app.war"] - "traefik.http.routers.expertisa-master.rule=HostRegexp(`master\\..+`)"
- "traefik.http.routers.expertisa-master.tls=true"
- "traefik.http.services.expertisa-master.loadbalancer.healthcheck.path=/health"
- "traefik.http.services.expertisa-master.loadbalancer.healthcheck.interval=5s"
environment: environment:
JAVA_TOOL_OPTIONS: "-XX:MaxRAMPercentage=90" JAVA_TOOL_OPTIONS: "-XX:MaxRAMPercentage=90"
labels: network_mode: bridge
- "traefik.http.routers.expertisa-${BRANCH}.rule=HostRegexp(`${BRANCH}\\..+`)"
- "traefik.http.routers.expertisa-${BRANCH}.tls=true"
- "traefik.http.services.expertisa-${BRANCH}.loadbalancer.healthcheck.path=/health"
- "traefik.http.services.expertisa-${BRANCH}.loadbalancer.healthcheck.interval=5s"
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:
@ -52,27 +26,12 @@ configs:
infinispan: infinispan:
embedded: embedded:
enabled: true enabled: true
cluster-name: eisa-${BRANCH} cluster-name: eisa-master
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} branch: master
enabled: true enabled: true
token: ${GIT_TOKEN} token: ${GIT_TOKEN}
file-store-type: s3 file-store-type: s3
@ -81,16 +40,16 @@ configs:
port: 9000 port: 9000
access-key: ZfyTrAp9tsxkvfyyEIbC access-key: ZfyTrAp9tsxkvfyyEIbC
secret-key: jurIHMBGQ54HLu0CXwLSDiahhT6JV6qwZTFhqO37 secret-key: jurIHMBGQ54HLu0CXwLSDiahhT6JV6qwZTFhqO37
bucket: dev bucket: master
db: db:
common-datasource-name: psql common-datasource-name: meta
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}
EWH: EWH:
url: jdbc:postgresql://adb-master.expertdwh.ru:5432/ewh?reWriteBatchedInserts=true url: jdbc:postgresql://adb-master.expertdwh.ru:5432/ewh
username: ewh username: ewh
password: ${EWH_PASSWORD} password: ${EWH_PASSWORD}
pre-script: core-postgresql.preScript pre-script: core-postgresql.preScript
@ -103,8 +62,4 @@ 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}
audit.enabled: true audit.enabled: true
hikari:
content: |
maximumPoolSize=3