-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
60 lines (43 loc) · 927 Bytes
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
include .env
pull:
docker-compose pull
dbuild:
docker-compose build
#make up
#make up s=service
#make up a="-f docker-compose.yml -f docker-compose.override.yml"
up:
docker-compose $(a) up -d $(s)
down:
docker-compose down
start:
docker-compose $(a) start
stop:
docker-compose $(a) stop
restart:
docker-compose restart $(s)
ls:
docker-compose ps
vol:
docker volume ls
log:
docker-compose logs node
#See docker-compose rm
#make rm a="--help"
rm:
docker system prune ${a} --all
#Container commands
nenter:
docker-compose exec node sh
#make nrun c="echo hello world"
nrun:
docker-compose run node $(c)
#make dbdump > drupal.sql
dbdump:
docker-compose exec postgres pg_dump -C -U $(DB_USER) -w $(DB_NAME)
dbexp:
docker-compose exec postgres pg_dump -C -U $(DB_USER) -w $(DB_NAME) > data/$(DB_NAME).sql
dbimp:
docker-compose exec postgres "dbimp.sh"
knex:
docker-compose exec node knex $(a)