Skip to content

Commit

Permalink
Further renames, tweaks to allow service to run locally (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
awhodgson256 authored Nov 1, 2024
1 parent 045065d commit 8a8855f
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 22 deletions.
6 changes: 2 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
version: "3"
services:
hmpps-template-kotlin:
hmpps-find-and-refer-an-intervention-service:
build:
context: .
networks:
- hmpps
container_name: hmpps-template-kotlin
container_name: hmpps-find-and-refer-an-intervention-service
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health/ping"]
environment:
- SERVER_PORT=8080
- HMPPS_AUTH_URL=http://hmpps-auth:8080/auth
# TODO: Remove this URL and replace with outgoing service URLs
- EXAMPLE_URL=http://hmpps-template-kotlin:8080
- SPRING_PROFILES_ACTIVE=dev

hmpps-auth:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication

@SpringBootApplication
class HmppsTemplateKotlin
class FindAndReferAnIntervention

fun main(args: Array<String>) {
runApplication<HmppsTemplateKotlin>(*args)
runApplication<FindAndReferAnIntervention>(*args)
}
4 changes: 2 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
info.app:
name: HMPPS Template Kotlin
name: HMPPS Find And Refer An Intervention Service
version: 1.0

spring:
application:
name: hmpps-template-kotlin
name: hmpps-find-and-refer-an-intervention-service
codec:
max-in-memory-size: 10MB

Expand Down
37 changes: 24 additions & 13 deletions src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
_ _ _ _ ___ ___ ____
|__| |\/| |__] |__] [__
| | | | | | ___]

___ ____ _ _ ___ _ ____ ___ ____
| |___ |\/| |__] | |__| | |___
| |___ | | | |___ | | | |___

_ _ ____ ___ _ _ _ _
|_/ | | | | | |\ |
| \_ |__| | |___ | | \|

TODO: Please change me by generating your own ASCII art and placing in banner.txt
_ _ __ __ _____ _____ _____ ______ _ _
| | | | \/ | __ \| __ \ / ____| | ____(_) | |
| |__| | \ / | |__) | |__) | (___ | |__ _ _ __ __| |
| __ | |\/| | ___/| ___/ \___ \ | __| | | '_ \ / _` |
| | | | | | | | | | ____) | | | | | | | | (_| |
|_| |_|_| |_|_| |_| |_____/ |_| |_|_| |_|\__,_|
_ _____ __
/\ | | | __ \ / _| /\
/ \ _ __ __| | | |__) |___| |_ ___ _ __ / \ _ __
/ /\ \ | '_ \ / _` | | _ // _ \ _/ _ \ '__| / /\ \ | '_ \
/ ____ \| | | | (_| | | | \ \ __/ || __/ | / ____ \| | | |
/_/ \_\_| |_|\__,_| |_| \_\___|_| \___|_| /_/ \_\_| |_|
_____ _ _ _
|_ _| | | | | (_)
| | _ __ | |_ ___ _ ____ _____ _ __ | |_ _ ___ _ __
| | | '_ \| __/ _ \ '__\ \ / / _ \ '_ \| __| |/ _ \| '_ \
_| |_| | | | || __/ | \ V / __/ | | | |_| | (_) | | | |
|_____|_| |_|\__\___|_| \_/ \___|_| |_|\__|_|\___/|_| |_|
_____ _
/ ____| (_)
| (___ ___ _ ____ ___ ___ ___
\___ \ / _ \ '__\ \ / / |/ __/ _ \
____) | __/ | \ V /| | (_| __/
|_____/ \___|_| \_/ |_|\___\___|
2 changes: 1 addition & 1 deletion src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</encoder>
</appender>

<logger name="uk.gov.justice.digital.hmpps.findandreferanintervention.HmppsFindAndReferInterventionKt" additivity="false" level="DEBUG">
<logger name="uk.gov.justice.digital.hmpps.findandreferanintervention.HmppsFindAndReferAnInterventionKt" additivity="false" level="DEBUG">
<appender-ref ref="consoleAppender"/>
</logger>

Expand Down

0 comments on commit 8a8855f

Please sign in to comment.