Skip to content

Commit be42db4

Browse files
committed
PI-2517 - add curl to prism container
1 parent 5e04eb0 commit be42db4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Dockerfile.prism

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM stoplight/prism:5
22

33

4-
RUN apk add --no-cache jq
4+
RUN apk add --no-cache curl jq
55
RUN npm install -g @apidevtools/swagger-cli
66
COPY src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/prismMocks /prismMocks
77
ADD https://ministryofjustice.github.io/hmpps-probation-integration-services/tech-docs/projects/external-api-and-delius/api-docs.json /prismMocks/ndelius.json

docker-compose.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ services:
3333
dockerfile: Dockerfile.prism
3434
container_name: prism
3535
healthcheck:
36-
test: 'wget --header="Authorization: Bearer abc" http://127.0.0.1:4017/prisoner/A1234AL -O /dev/null'
36+
test: 'curl -H "Authorization: Bearer abc" http://127.0.0.1:4017/prisoner/A1234AL &&
37+
curl -H "Authorization: Bearer abc" http://127.0.0.1:4018/case-details/officiis/1134670863'
3738
ports:
3839
- '4010:4010'
3940
- '4011:4011'

0 commit comments

Comments
 (0)