-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (37 loc) · 1.09 KB
/
Copy pathMakefile
File metadata and controls
43 lines (37 loc) · 1.09 KB
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
#
# Reference Guide - https://www.gnu.org/software/make/manual/make.html
#
# Build-time
all: build-flask-prod test
.PHONY: build-flask-prod test
# Step to build docker image of flask-prod
build-flask-prod:
@echo "------------------"
@echo "--> Building flask-prod a docker container image"
@echo "------------------"
docker-compose build
logs:
@echo "------------------"
@echo "--> Logging flask-prod a docker container"
@echo "------------------"
@docker-compose logs --tail 30 --follow flask-prod
logs-nginx:
@echo "------------------"
@echo "--> Log flask-prod a docker container"
@echo "------------------"
@docker-compose logs --tail 30 --follow nginx
run:
@echo "------------------"
@echo "--> Running flask-prod docker image"
@echo "------------------"
@docker-compose up -d
run-build:
@echo "------------------"
@echo "--> Building flask-prod docker image"
@echo "------------------"
@docker-compose up --build -d
test:
@echo "------------------"
@echo "--> Running Tests/Linter"
@echo "------------------"
@docker-compose run --rm manage lint; docker-compose run --rm manage test