Skip to content

Commit

Permalink
Adding openshift profile for Openshift deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
anandvarkeyphilips committed Dec 9, 2018
1 parent 0b56f4e commit 0089ca6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.exnihilo</groupId>
<artifactId>enterprise-validator</artifactId>
<version>2.1.0</version>
<version>2.2.0</version>
<packaging>jar</packaging>
<name>Enterprise Validator</name>

Expand Down
30 changes: 23 additions & 7 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,35 @@
application:
name: @project.name@
artifactId: @project.artifactId@
version: @project.version@
spring:
profiles.active: default
pid.fail-on-write-error: true
pid.file: /packages/config/${application.artifactId}/${application.artifactId}.pid
server:
port: 8090
servlet.context-path: /enterprise-validator
servlet.context-path: /${application.artifactId}
logging:
level.root: info
level.io.exnihilo: debug
file: /packages/logs/enterprise-validator/enterprise-validator.log
spring.pid.fail-on-write-error: true
spring.pid.file: /packages/config/enterprise-validator/enterprise-validator.pid

file: /packages/logs/${application.artifactId}/${application.artifactId}.log
management:
endpoints:
web.exposure.include: "*"
web.exposure.exclude: loggers
endpoint:
shutdown.enabled: true

application.version: @project.version@
application.name: @project.name@
---
#This section contains the properties that will be over-written for the Docker environment
spring:
profiles: openshift
pid.fail-on-write-error: true
pid.file: ${application.artifactId}.pid
server:
port: 8080
servlet.context-path: /
logging:
level.root: info
level.io.exnihilo: info
file: logs/${application.artifactId}.log

0 comments on commit 0089ca6

Please sign in to comment.