-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 817 Bytes
/
Makefile
File metadata and controls
38 lines (27 loc) · 817 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
SHELL := /bin/bash # Use bash syntax
.PHONY: run in database stop clean build
# Configure environment.
# ----------------------
export TZ=America/Sao_Paulo
export USER_ID=$(shell id -u)
# @TODO Hack for MacOSX or other OS which has the same group id
# than the containers user.
export GROUP_ID=$(shell if [ `id -g` == '20' ]; then echo '1000'; else echo `id -g`; fi)
run:
docker-compose run --service-ports --rm app
in:
docker exec -it $(shell docker-compose ps | grep _app_run_ | cut -d" " -f 1) /bin/bash
# test:
# docker-compose run --service-ports --rm app scripts/test.sh
#
database:
docker exec -it todogram-db mongo
stop:
docker-compose stop
clean:
docker-compose down
build:
docker-compose build app
run-stage:
docker-compose run --service-ports -d app tail -f /dev/null
default: run