-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile
59 lines (49 loc) · 1.61 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
build-seeds:
docker compose -f docker-compose.seeds.yaml up
seeds:
docker compose -f docker-compose.seeds.yaml up
docker compose up -d --force-recreate --no-deps devbox
up:
docker compose pull --quiet
docker compose build
docker compose up -d
stop:
docker compose stop
down:
docker compose down
up-video:
docker compose -f compose.yaml -f compose.video.yaml pull --quiet
docker compose build
docker compose -f compose.yaml -f compose.video.yaml up -d
up-matchbox:
docker compose -f compose.yaml -f compose.matchbox.yaml pull --quiet
docker compose build
docker compose -f compose.yaml -f compose.matchbox.yaml up -d
stop-matchbox:
docker compose -f compose.yaml -f compose.matchbox.yaml stop
down-matchbox:
docker compose -f compose.yaml -f compose.matchbox.yaml down
kaitenzushi:
docker pull bedasoftware/kaitenzushi:latest
docker run -d --name fhir-emr-kaitenzushi \
-v $$(pwd)/resources:/app/resources \
bedasoftware/kaitenzushi:latest \
-i resources/tests/TestScript \
-o resources/tests/generated/TestScript \
-d https://github.com/beda-software/beda-emr-core
@CONTAINER_EXIT_CODE=$$(docker wait fhir-emr-kaitenzushi); \
docker rm fhir-emr-kaitenzushi; \
exit $$CONTAINER_EXIT_CODE
testscript:
@if [ -f ".env" ]; then \
export `cat .env | xargs`; \
fi
docker compose -f docker-compose.testscript.yaml pull --quiet
docker compose -f docker-compose.testscript.yaml up --exit-code-from testscript testscript
test:
@if [ -f ".env" ]; then \
export `cat .env | xargs`; \
fi
docker compose -f docker-compose.tests.yaml pull --quiet
docker compose -f docker-compose.tests.yaml up -d
yarn test