-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (30 loc) · 839 Bytes
/
Makefile
File metadata and controls
42 lines (30 loc) · 839 Bytes
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
export PROJECT_NAME=iaflash
export APP_PATH := $(shell pwd)
export APP_PORT=5000
export APP_VERSION := $(shell git rev-parse HEAD | cut -c1-8)
export EXEC_ENV=dev
export NGINX_PATH=${APP_PATH}/nginx
export TRAEFIK_PATH=${APP_PATH}/traefik
export LOG_LEVEL=DEBUG
export COMPOSE=docker-compose -p $(PROJECT_NAME) -f docker-compose.yml
dummy := $(shell touch artifacts)
include ./artifacts
nginx/dist:
git clone --single-branch --depth=1 --branch builds https://github.com/ia-flash/frontend nginx/dist
traefik/acme.json:
touch traefik/acme.json
dependencies: nginx/dist traefik/acme.json
build: dependencies
$(COMPOSE) build
dev: dependencies
$(COMPOSE) up
up: dependencies
$(COMPOSE) up -d
stop:
$(COMPOSE) stop
down:
$(COMPOSE) down --remove-orphans
logs:
$(COMPOSE) logs -f --tail 50
clean:
rm -rf dist