-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (32 loc) · 1.07 KB
/
Makefile
File metadata and controls
44 lines (32 loc) · 1.07 KB
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
SHELL := /bin/bash
XARGS=
USER_ID := $(shell ./getuid.sh)
path_makefile := $(abspath $(lastword $(MAKEFILE_LIST)))
rundir := $(dir $(path_makefile))
.PHONY: help init up down clean ps
help:
@echo "Usage: make <target>\n"
@echo "where <target> is: 'init', 'up', 'down', 'clean' or 'ps' '\n"
init:
@echo "# Please change if you have different settings" > .env
@echo "DATA_DIR=/data" >> .env
@echo "TOPCONSDB_DIR=/data/topcons2_database" >> .env
@echo "BLASTDB_DIR=/data/blastdb" >> .env
@echo "ROSETTA_DIR=/data/rosetta/rosetta_bin_linux_2016.15.58628_bundle" >> .env
@echo "SCRATCH_DIR=/scratch" >> .env
@echo "" >> .env
@echo "# Please don't change from here" >> .env
@echo "WEB_STATIC=${rundir}/proj/pred/static" >> .env
@echo "USER_ID=$(USER_ID)" >> .env
up: .env docker-compose-apps.yml
@docker-compose -f docker-compose-apps.yml up -d $(XARGS)
down: #.env
@docker-compose -f docker-compose-apps.yml down -v
clean:
rm -f .env
ps:
@docker-compose -f docker-compose-apps.yml ps
clean-all: clean clean-volumes
preflight-check:
@echo "Ensure the system is up"
sleep 2