-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
78 lines (55 loc) · 2.3 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
include .environment
TMP_OUT?=${PWD}/out
# make these variables from .environment available
export XPLAN_USER
export XPLAN_EMAIL
export XPLAN_DOCKER_NAMESPACE
export REMOTE_WORK_DIR
export APP_NAME
export APP_DEPLOYMENT_SYSTEM
export APP_EXECUTION_SYSTEM
export APP_VERSION
export APP_BASE_PATH
export APP_DOCKER_NAMESPACE
export APP_DOCKER_REPO
export APP_DOCKER_TAG
export REACTOR_NAME
export REACTOR_ALIAS
export REACTOR_BASE_PATH
export REACTOR_DOCKER_HUB_ORG
export REACTOR_DOCKER_IMAGE_TAG
export REACTOR_DOCKER_IMAGE_VERSION
# TODO check that each value above is actually set otherwise raise an error
export APP_CONTAINER_FULL_NAME=${APP_DOCKER_NAMESPACE}/${APP_DOCKER_REPO}:${APP_DOCKER_TAG}
export REACTOR_CONTAINER_FULL_NAME=${REACTOR_DOCKER_HUB_ORG}/${REACTOR_DOCKER_IMAGE_TAG}:${REACTOR_DOCKER_IMAGE_VERSION}
export XPLAN_DESIGN_APP_ID="${APP_NAME}-${APP_VERSION}"
all: build test deploy
build: build-xplan-design-app
test: test-apps test-components
test-apps: test-xplan-design-app
test-apps-remote: test-xplan-design-app-remote
build-xplan-design-app:
scripts/build_design_app.sh
test-xplan-design-app: build-xplan-design-app test-xplan-design-app-local
test-xplan-design-app-local: build-xplan-design-app
sh scripts/run_docker.sh ${TMP_OUT} ${APP_CONTAINER_FULL_NAME} experiment.transcriptic.2020-05-04-YeastSTATES-1-0-Growth-Curves YEAST_STATES
test-xplan-design-app-remote:
tapis auth init
bash scripts/run_tapis_app.sh ${REMOTE_WORK_DIR}
test-components:
deploy: build deploy-apps deploy-reactors
deploy-apps: deploy-xplan-design-app
deploy-reactors: deploy-xplan-reactor
deploy-xplan-design-app: clean-deploy-xplan-design-app build-xplan-design-app
scripts/deploy_design_app.sh
clean-deploy: clean-deploy-xplan-design-app
clean-deploy-xplan-design-app:
rm assets || true
rm apps/xplan_design/assets/assets || true
deploy-xplan-reactor:
scripts/create_reactor_if_not_exists.sh
test-xplan-reactor-remote: test-xplan-reactor-remote1 test-xplan-reactor-remote2
test-xplan-reactor-remote1:
CHALLENGE_PROBLEM=YEAST_STATES EXPERIMENT_ID=experiment.transcriptic.2020-05-04-YeastSTATES-1-0-Growth-Curves scripts/run_reactor.sh
test-xplan-reactor-remote2:
CHALLENGE_PROBLEM=YEAST_STATES EXPERIMENT_ID=experiment.transcriptic.2020-03-06-YeastSTATES-Beta-Estradiol-OR-Gate-Plant-TF-Dose-Response scripts/run_reactor.sh