-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (33 loc) · 842 Bytes
/
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
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.PHONY: certs
certs:
mkdir -p certs
CAROOT=certs mkcert -install
CAROOT=certs mkcert -cert-file certs/cert.pem -key-file certs/key.pem "*.levellingup.gov.localhost"
# <-- Janky block to allow `make up` / `make pre up` / `make post up`, and same for `make ... down` -->
.PHONY: default
default:
$(eval export COMPOSE_PROFILES=pre,post)
.PHONY: pre
pre: default
$(eval export COMPOSE_PROFILES=pre)
@true
.PHONY: post
post: default
$(eval export COMPOSE_PROFILES=post)
@true
# <-- Janky block to allow `make up` / `make pre up` / `make post up` -->
.PHONY: up
up: default
docker compose up
.PHONY: down
down: default
docker compose down
.PHONY: build
build: default
docker compose build
.PHONY: clean-build
clean-build: default
docker compose build --no-cache