Skip to content

Commit ef72abe

Browse files
HIA-574 -- New local image for case-notes
1 parent ea1db52 commit ef72abe

File tree

7 files changed

+28
-1
lines changed

7 files changed

+28
-1
lines changed

Dockerfile.setup-case-notes-api

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM node:current-alpine3.17
2+
3+
RUN apk update && apk add bash
4+
5+
COPY src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/prismMocks/case-notes-api-docs.json /case-notes-api-docs.json
6+
7+
RUN npm install -g @stoplight/prism-cli
8+
9+
CMD prism mock -p 4010 -h 0.0.0.0 /case-notes-api-docs.json

docker-compose.yml

+10
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,16 @@ services:
114114
ports:
115115
- '4070:4010'
116116

117+
case-notes-api:
118+
build:
119+
context: .
120+
dockerfile: Dockerfile.setup-case-notes-api
121+
container_name: case-notes-api
122+
healthcheck:
123+
test: 'wget --header="Authorization: Bearer abc" http://0.0.0.0:4010/case-notes/1234 -O /dev/null'
124+
ports:
125+
- '4080:4010'
126+
117127
local-stack-aws:
118128
image: localstack/localstack:0.14.0
119129
container_name: local-stack-aws

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/prismMocks/case-notes-api-docs.json

+1
Large diffs are not rendered by default.

src/main/resources/application-local-docker.yml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ services:
1515
base-url: http://adjudications-api:4010
1616
create-and-vary-licence:
1717
base-url: http://create-and-vary-licence-api:4010
18+
case-notes:
19+
base-url: http://case-notes-api:4010
1820
hmpps-auth:
1921
base-url: http://hmpps-auth:8080
2022

src/main/resources/application-local.yml

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ services:
1717
base-url: http://localhost:4045
1818
create-and-vary-licence:
1919
base-url: http://localhost:4070
20+
case-notes:
21+
base-url: http://localhost:4080
2022

2123
hmpps.sqs:
2224
provider: localstack

src/main/resources/application-test.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ services:
2626
base-url: http://localhost:4006
2727
create-and-vary-licence:
2828
base-url: http://localhost:4007
29+
case-notes:
30+
base-url: http://localhost:4008
2931

3032
hmpps.sqs:
3133
provider: localstack
@@ -57,4 +59,3 @@ authorisation:
5759
- "/health/readiness"
5860
- "/health/liveness"
5961
- "/info"
60-
-

src/main/resources/application.yml

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ services:
7171
base-url: http://localhost:4045
7272
create-and-vary-licence:
7373
base-url: http://localhost:4070
74+
case-notes:
75+
base-url: http://localhost:4080
7476

7577
sentry:
7678
traces-sample-rate: "0.05"

0 commit comments

Comments
 (0)