Skip to content

Commit dfe2056

Browse files
committed
PI-2517 - update prism docker file and health check in docker compose file
1 parent 2a88acc commit dfe2056

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Dockerfile.prism

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ RUN jq 'del(.components.schemas.Query.properties.subQueries)' /tmp/prisoner-offe
2020
RUN swagger-cli bundle -r -o /prismMocks/prisoner-offender-search.json prisoner-offender-search-tmp1.json
2121

2222
RUN sed -i 's/\*\/\*/application\/json/g' /prismMocks/adjudications.json
23+
RUN sed -i 's/\*\/\*/application\/json/g' /prismMocks/assess-risks-and-needs.json
24+
RUN sed -i 's/\*\/\*/application\/json/g' /prismMocks/case-notes.json
2325
RUN sed -i 's/\*\/\*/application\/json/g' /prismMocks/prisoner-offender-search.json
2426

2527
ENTRYPOINT sh -c 'port=4010; for file in $(ls /prismMocks/*.json | sort); do node dist/index.js mock -p $port -h 0.0.0.0 $file & port=$((port + 1)); done; wait'

docker-compose.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,16 @@ services:
3333
dockerfile: Dockerfile.prism
3434
container_name: prism
3535
healthcheck:
36-
test: 'curl -H "Authorization: Bearer abc" -f http://localhost:4010/reported-adjudications/hearings?hearingDate=1910-06-03 &&
37-
curl -H "Authorization: Bearer abc" -f http://127.0.0.1:4017/prisoner/A1234AL &&
38-
curl -H "Authorization: Bearer abc" -f http://127.0.0.1:4018/case-details/officiis/1134670863'
36+
test: 'curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4010/reported-adjudications/hearings?hearingDate=1910-06-03 &&
37+
curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4011/risks/crn/voluptatem/predictors/all &&
38+
curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4012/case-notes/types?selectableBy=DPS_USER &&
39+
curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4013/public/licences/id/123 &&
40+
curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4014/api/allocation/X1234YZ/primary_pom &&
41+
curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4015/case/abc/supervisions &&
42+
curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4016/api/case-notes/usage &&
43+
curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4017/prisoner/A1234AL &&
44+
curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4018/case-details/crn/1234 &&
45+
curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4019/search?crn=sit'
3946
ports:
4047
- '4010:4010'
4148
- '4011:4011'

0 commit comments

Comments
 (0)