-
Notifications
You must be signed in to change notification settings - Fork 46
/
Makefile
29 lines (26 loc) · 1.02 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
##
# Scout
#
# @file
# @version 0.1
.DEFAULT_GOAL := help
.PHONY: build run init prune help up down bash-scout
build: ## Build new images
docker-compose build
init: ## Initialize scout database and load demo data
echo "Setup a complete scout database with demo institute, panel and case"
docker-compose run scout-cli scout --host mongodb setup database --yes
docker-compose run scout-cli scout --host mongodb load panel scout/demo/panel_1.txt
docker-compose run scout-cli scout --host mongodb load case scout/demo/643594.config.yaml
up: ## Run Scout software
docker-compose up --detach
down: ## Take down Scout software
docker-compose down --volumes
bash-scout: ## Enter bash on scout web containers
docker-compose exec scout-web /bin/bash
prune: ## Remove orphans and dangling images
docker-compose down --remove-orphans
docker images prune
help: ## Show this help.
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
# end