forked from docsteveharris/dashRep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (38 loc) · 1.09 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
# Default set up for working with docker on the GAE
UID := $(shell id -u)
GID := $(shell id -g)
# These two lines make local environment variables available to Make
include .env
export $(shell sed 's/=.*//' .env)
# Self-documenting help; any comment line starting ## will be printed
# https://swcarpentry.github.io/make-novice/08-self-doc/index.html
##
## Sitrep application
## HYLODE team 2021
##
## help : call this help function
.PHONY: help
help : Makefile
@sed -n 's/^##//p' $<
## app-build : Build the app locally (docker-compose build)
.PHONY: app-build
app-build:
docker-compose build \
--build-arg http_proxy \
--build-arg https_proxy \
--build-arg HTTP_PROXY \
--build-arg HTTPS_PROXY
@echo "*** dashRep build complete"
## app-run : Run the app locally
.PHONY: app-run
app-run:
docker-compose up -d
docker-compose logs -f
## app-down : Stop the app
.PHONY: app-down
app-down:
docker-compose down
## udb-recreate : ReCreate local SQLite database to hold user edits
.PHONY: udb-recreate
udb-recreate:
python utils/setup_sitrep_db.py --drop_old