-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (25 loc) · 882 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (25 loc) · 882 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
BUILD_TAG ?= latest
build:
docker build \
-t impresso/impresso-user-admin:${BUILD_TAG} \
--build-arg GIT_TAG=${BUILD_TAG} \
--build-arg GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
--build-arg GIT_REVISION=$(shell git rev-parse --short HEAD) .
run:
docker run \
-v $(PWD)/.dev.env:/impresso-user-admin/.docker.env \
-e "ENV=docker" \
-it impresso/impresso-user-admin:${BUILD_TAG} \
python ./manage.py runserver
run-dev:
IMPRESSO_GIT_TAG=${BUILD_TAG} \
IMPRESSO_GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
IMPRESSO_GIT_REVISION=$(shell git rev-parse --short HEAD) \
pipenv run ./manage.py runserver 8888
run-celery:
IMPRESSO_GIT_TAG=${BUILD_TAG} \
IMPRESSO_GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
IMPRESSO_GIT_REVISION=$(shell git rev-parse --short HEAD) \
pipenv run celery -A impresso worker -l info
mypy:
mypy impresso