Compare commits
28 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
ff3186c85e | ||
|
32fc4709db | ||
|
2a0f35bd79 | ||
7a92e754e5 | |||
9738092f62 | |||
25398c4a16 | |||
3c9ad2398d | |||
11374e6f7a | |||
09209246e2 | |||
5bf6b5810e | |||
99209ed064 | |||
34dd5650b2 | |||
d7102b759f | |||
f5552e2735 | |||
86f9e25e2a | |||
|
f5af5bf2a0 | ||
|
d66d394a9a | ||
|
5e5afb5afd | ||
|
52629d9949 | ||
|
ca49c5a6b7 | ||
|
e1ef4d060c | ||
|
d7ef3121e1 | ||
6e07280e96 | |||
65f66abc78 | |||
ba9b25bf9c | |||
abca60e5d6 | |||
fa5877841c | |||
903a256002 |
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
/.idea/misc.xml
|
||||||
|
/.idea/vcs.xml
|
||||||
|
/.idea/workspace.xml
|
3
.idea/.gitignore
vendored
Normal file
3
.idea/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
9
.idea/expert-isa-2-cicd.iml
Normal file
9
.idea/expert-isa-2-cicd.iml
Normal 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
6
.idea/misc.xml
Normal 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
8
.idea/modules.xml
Normal 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
6
.idea/vcs.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -1,46 +1,98 @@
|
|||||||
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
|
||||||
|
#spring:
|
||||||
|
# mail:
|
||||||
|
# host: smtp.gmail.com
|
||||||
|
# port: 587
|
||||||
|
# username: expertisaewh@gmail.com
|
||||||
|
# password: ${NOTIFICATION_PASSWORD}
|
||||||
|
# properties:
|
||||||
|
# mail:
|
||||||
|
# smtp:
|
||||||
|
# auth: true
|
||||||
|
# starttls:
|
||||||
|
# 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: 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 +101,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:
|
|
||||||
endpoints:
|
|
||||||
web:
|
|
||||||
exposure:
|
|
||||||
include: '*'
|
|
||||||
jmx:
|
|
||||||
exposure:
|
|
||||||
include: '*'
|
|
||||||
audit.enabled: true
|
audit.enabled: true
|
||||||
|
|
||||||
|
hikari:
|
||||||
|
content: |
|
||||||
|
maximumPoolSize=3
|
Loading…
Reference in New Issue
Block a user