Skip to content

Commit

Permalink
Merge pull request #64 from aodn/features/5384-display-version
Browse files Browse the repository at this point in the history
Features/5384 display version
  • Loading branch information
utas-raymondng authored Apr 18, 2024
2 parents f1d0b17 + 5d4c902 commit f6d5070
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ docker-compose -f docker-compose-dev.yaml up [-d: in daemon mode | --build: to s
| Logfile | `/manage/logfile` | Edge |
| Beans info | `/manage/beans` | Edge |
| Env info | `/manage/env` | Edge |
| Info | `/manage/info` | Edge |
| Info (Show version) | `/manage/info` | Edge |
| Health check | `/manage/health` | Edge |
| POST/GET/DELETE against specific record | `/api/v1/indexer/index/{records-uuid}` | All |
| Bulk index | `/api/v1/indexer/index/all` | All |
Expand Down
1 change: 1 addition & 0 deletions indexer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>

<name>es-indexer</name>
<artifactId>indexer</artifactId>

<properties>
Expand Down
5 changes: 5 additions & 0 deletions indexer/src/main/resources/application-staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
management:
endpoints:
web:
exposure:
include: "health,info,env,beans,logfile"
12 changes: 12 additions & 0 deletions indexer/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ app:
authToken: ${INDEXER_APIKEY:sample-auth-token}

management:
info:
env:
enabled: true
endpoints:
web:
base-path: /manage
exposure:
include: "health,info"
health:
elasticsearch:
enabled: false
Expand All @@ -45,6 +50,13 @@ springdoc:
enabled: true
disable-swagger-default-url: true

# Actuator info point
info:
application:
name: '@project.name@'
description: '@project.description@'
version: '@project.version@'

logging:
level:
au.org.aodn.esindexer: INFO
1 change: 1 addition & 0 deletions indexer/src/main/resources/log4j2-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<TimeBasedTriggeringPolicy />
<SizeBasedTriggeringPolicy size="10 MB"/>
</Policies>
<DefaultRolloverStrategy max="20"/>
</RollingFile>
</Appenders>
<Loggers>
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
<version>0.0.0</version>
<packaging>pom</packaging>
<name>es-indexer</name>
<description>es-indexer</description>

<description>Meta data indexer for Elastic Search</description>

<modules>
<module>cloudoptimized</module>
Expand Down

0 comments on commit f6d5070

Please sign in to comment.