-
Notifications
You must be signed in to change notification settings - Fork 3
/
MakeFile
61 lines (47 loc) · 3.08 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
# Glygen deployment MakeFile
.PHONY: prod beta test dev clean
GLYGEN_NETWORK = glygen-network
GLYGEN_NETWORK_BETA = glygen-network-beta
GLYGEN_NETWORK_DEV = glygen-network-dev
GLYGEN_NETWORK_TEST = glygen-network-test
GLYGEN_NETWORK_BIOM_PROD = glygen-network-biom-prod
GLYGEN_NETWORK_BIOM_DEV = glygen-network-biom-dev
network:
@docker network ls --format='{{ .Name }}' | grep ^${GLYGEN_NETWORK}$$ > /dev/null 2>&1 || docker network create ${GLYGEN_NETWORK};
network-beta:
@docker network ls --format='{{ .Name }}' | grep ^${GLYGEN_NETWORK_BETA}$$ > /dev/null 2>&1 || docker network create ${GLYGEN_NETWORK_BETA};
network-dev:
@docker network ls --format='{{ .Name }}' | grep ^${GLYGEN_NETWORK_DEV}$$ > /dev/null 2>&1 || docker network create ${GLYGEN_NETWORK_DEV};
network-test:
@docker network ls --format='{{ .Name }}' | grep ^${GLYGEN_NETWORK_TEST}$$ > /dev/null 2>&1 || docker network create ${GLYGEN_NETWORK_TEST};
network-biom-prod:
@docker network ls --format='{{ .Name }}' | grep ^${GLYGEN_NETWORK_BIOM_PROD}$$ > /dev/null 2>&1 || docker network create ${GLYGEN_NETWORK_BIOM_PROD};
network-biom-dev:
@docker network ls --format='{{ .Name }}' | grep ^${GLYGEN_NETWORK_BIOM_DEV}$$ > /dev/null 2>&1 || docker network create ${GLYGEN_NETWORK_BIOM_DEV};
prod: network
@docker-compose -f docker-compose.yml -f docker-compose.prod.yml --project-name glygen-frontend rm --force
@docker-compose -f docker-compose.yml -f docker-compose.prod.yml --project-name glygen-frontend up --no-start --build
@docker image prune --force
beta: network-beta
@docker-compose -f docker-compose.yml -f docker-compose.beta.yml --project-name glygen-frontend-beta rm --force
@docker-compose -f docker-compose.yml -f docker-compose.beta.yml --project-name glygen-frontend-beta up --no-start --build
@docker image prune --force
test: network-test
@docker-compose -f docker-compose.yml -f docker-compose.test.yml --project-name glygen-frontend-test rm --force
@docker-compose -f docker-compose.yml -f docker-compose.test.yml --project-name glygen-frontend-test up --no-start --build
@docker image prune --force
dev: network-dev
@docker-compose -f docker-compose.yml -f docker-compose.dev.yml --project-name glygen-frontend-dev stop
@docker-compose -f docker-compose.yml -f docker-compose.dev.yml --project-name glygen-frontend-dev rm --force
@docker-compose -f docker-compose.yml -f docker-compose.dev.yml --project-name glygen-frontend-dev up -d --build
@docker image prune --force
biom-prod: network-biom-prod
@docker-compose -f docker-compose.yml -f docker-compose.biom-prod.yml --project-name glygen-frontend-biom-prod rm --force
@docker-compose -f docker-compose.yml -f docker-compose.biom-prod.yml --project-name glygen-frontend-biom-prod up --no-start --build
@docker image prune --force
biom-dev: network-biom-dev
@docker-compose -f docker-compose.yml -f docker-compose.biom-dev.yml --project-name glygen-frontend-biom-dev rm --force
@docker-compose -f docker-compose.yml -f docker-compose.biom-dev.yml --project-name glygen-frontend-biom-dev up --no-start --build
@docker image prune --force
clean:
@docker system prune --force