-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (54 loc) · 1.19 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
.PRONY: build
build:
./.deploy/build.sh
.PRONY: up
up:
docker compose --env-file .env up -d
.PRONY: down
down:
docker compose down
.PRONY: migrate-build
migrate-build:
docker build -t tweteroocsharp-migrate -f Dockerfile.migrations .
# DEVELOPMENT
dev_compose = docker compose -f docker-compose.development.yml
.PRONY: dev-db
dev-db:
$(dev_compose) up -d db
.PRONY: dev
dev:
$(dev_compose) up
.PRONY: devd
devd:
$(dev_compose) up -d
.PRONY: dev-build
dev-build:
docker build -t tweteroocsharp-dev -f Dockerfile.development .
.PRONY: dev-down
dev-down:
$(dev_compose) down
# K6
.PRONY: k6-build
k6-build:
docker build -t tweteroo-k6 -f ./Dockerfile.k6 .
.PRONY: k6
k6:
docker run \
--network=host \
--mount type=bind,src=./.k6,dst=/app \
--mount type=volume,dst=/app/node_modules \
tweteroo-k6 test $(FILEPATH)
.PRONY: k6-seed
k6-seed:
docker run \
--network=host \
--mount type=bind,src=./.k6,dst=/app \
--mount type=volume,dst=/app/node_modules \
tweteroo-k6 seed
# CERTIFICATES
.PRONY: new-cert
new-cert:
docker compose run --rm certbot certonly --webroot --webroot-path /var/www/certbot/ -d $(DOMAIN)
.PRONY: renew-cert
renew-cert:
docker compose run --rm certbot renew