-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (30 loc) · 1.06 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
# use this to start docker + debugger
all: dcompose populate-rxnorm
npm run debug
# use this to just start debbugger
# this is useful to avoid the slow wait in starting up the docker compose file.
debug:
npm run debug
#run the docker compose file
dcompose:
docker-compose -f compose/docker-compose.yaml up --force-recreate -d
# we need to sleep for db containers to start
sleep 20
# run the scripts to populate sample rxnorm in mysql db
populate-rxnorm:
docker container exec -w "/var/lib/mysql-files/" clinical_rxnormdb "/bin/sh" ./populate_mysql_rxn.sh
# run all tests
verify:
npm run test
test-submission:
npx mocha --exit --timeout 30000 -r ts-node/register test/integration/submission/submission.spec.ts
stop:
docker-compose -f compose/docker-compose.yaml down --remove-orphans
# stop db and delete clinical db only
purge:
docker-compose -f compose/docker-compose.yaml down
# we don't want to remove the rxnorm import
docker volume rm clinical_db_vol
# delete. everything.
nuke:
docker-compose -f compose/docker-compose.yaml down --volumes --remove-orphans