eapim-portal CI 워크플로 및 JNDI 전환
- gitea actions self-hosted runner 워크플로 - EMS/Gateway 데이터소스 JNDI 적용 및 보강 - 부팅/로깅 경로 /prod/eapim, /logs/eapim 으로 정리
This commit is contained in:
@@ -27,6 +27,7 @@ public class BaseDatasourceConfiguration {
|
||||
protected DataSource jndiLookup(String jndiName) throws NamingException {
|
||||
JndiObjectFactoryBean bean = new JndiObjectFactoryBean();
|
||||
bean.setJndiName(jndiName);
|
||||
bean.setResourceRef(true);
|
||||
bean.setProxyInterface(DataSource.class);
|
||||
bean.afterPropertiesSet();
|
||||
return (DataSource) bean.getObject();
|
||||
|
||||
@@ -57,6 +57,8 @@ public class GatewayDatasourceConfiguration extends BaseDatasourceConfiguration
|
||||
} catch (NamingException e) {
|
||||
log.warn("JNDI lookup failed.", e);
|
||||
}
|
||||
} else {
|
||||
log.warn("gateway.datasource.jndi-name 이 설정되어 있지 않음 - 직접 접속 모드로 진행");
|
||||
}
|
||||
|
||||
log.info("개발환경을 위해 JNDI 대신 직접 DB 접속 시도");
|
||||
|
||||
@@ -70,6 +70,8 @@ public class PortalDatasourceConfiguration extends BaseDatasourceConfiguration {
|
||||
} catch (NamingException e) {
|
||||
log.warn("JNDI lookup failed.", e);
|
||||
}
|
||||
} else {
|
||||
log.warn("ems.datasource.jndi-name 이 설정되어 있지 않음 - 직접 접속 모드로 진행");
|
||||
}
|
||||
|
||||
if (dataSource == null) {
|
||||
|
||||
@@ -21,41 +21,23 @@ spring:
|
||||
|
||||
ems:
|
||||
datasource:
|
||||
jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1598/DAPM
|
||||
# jdbc-url: jdbc:oracle:thin:@//localhost:1599/DAPM
|
||||
# jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1599/DAPM
|
||||
# jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1599/PAPM
|
||||
driver-class-name: oracle.jdbc.OracleDriver
|
||||
username: EMSAPP
|
||||
password: elink1234
|
||||
jndi-name: jdbc/dsOBP_EMS
|
||||
schema: EMSAPP
|
||||
|
||||
hibernate-dialect: org.hibernate.dialect.Oracle12cDialect
|
||||
hibernate-physical-naming-strategy: com.eactive.apim.portal.common.entity.CustomPhysicalNamingStrategy
|
||||
entity-package: com.eactive.apim.portal
|
||||
|
||||
gateway:
|
||||
datasource:
|
||||
jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1598/DAPM
|
||||
# jdbc-url: jdbc:oracle:thin:@//localhost:1599/DAPM
|
||||
# jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1599/DAPM
|
||||
# jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1599/PAPM
|
||||
driver-class-name: oracle.jdbc.OracleDriver
|
||||
username: AGWAPP
|
||||
password: elink1234
|
||||
jndi-name: jdbc/dsOBP_AGW
|
||||
schema: AGWAPP
|
||||
|
||||
hibernate-dialect: org.hibernate.dialect.Oracle12cDialect
|
||||
hibernate-physical-naming-strategy: com.eactive.apim.portal.common.entity.CustomPhysicalNamingStrategy
|
||||
entity-package: com.eactive.eai.data.entity.onl
|
||||
|
||||
|
||||
portal:
|
||||
auth-virtual-code: 654321
|
||||
test-auth-notice-enabled: true
|
||||
|
||||
logging:
|
||||
level:
|
||||
org.hibernate.SQL: DEBUG
|
||||
org.hibernate.type.descriptor.sql.BasicBinder: TRACE
|
||||
|
||||
proxy:
|
||||
targets:
|
||||
stg: http://localhost:10000/monitoring
|
||||
prod: http://localhost:10000/monitoring
|
||||
|
||||
# stg: http://inter-ndapiap01.k-bank.com:7090/monitoring
|
||||
# prod: http://inter-ndapiap01.k-bank.com:7090/monitoring
|
||||
timeout:
|
||||
connect: 5000
|
||||
read: 5000
|
||||
test-auth-notice-enabled: true
|
||||
@@ -38,7 +38,7 @@ spring:
|
||||
enabled: true
|
||||
atomikos:
|
||||
properties:
|
||||
log-base-dir: /Log/eapim/portal
|
||||
log-base-dir: /logs/atomikos
|
||||
log-base-name: adp_tx
|
||||
|
||||
thymeleaf:
|
||||
@@ -82,7 +82,7 @@ portal:
|
||||
allowed-extensions: pdf,doc,docx,xls,xlsx,ppt,pptx,hwp,gif,jpg,jpeg,png
|
||||
|
||||
logging:
|
||||
log-path: /Log/App/eapim/
|
||||
log-path: /logs/eapim
|
||||
|
||||
auth-ttl: 300
|
||||
auth:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<configuration scan="true" scanPeriod="5 seconds">
|
||||
<property name="LOG_PATH" value="/Log/App/eapim//${inst.Name:-devSvrUD}"/>
|
||||
<property name="LOG_PATH" value="/logs/eapim/${inst.Name:-devSvrUD}"/>
|
||||
|
||||
<property name="PATTERN" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n" />
|
||||
<property name="PATTERN_DATE" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%-15thread] %-5level %logger - %msg%n" />
|
||||
|
||||
Reference in New Issue
Block a user