-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (29 loc) · 1.15 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
.PHONY: run
DOCKER_USER ?= "$(shell id -u):$(shell id -g)"
ENV ?= "dev"
init:
@if [ ! -e compose.override.yml ]; then \
cp compose.override.dist.yml compose.override.yml; \
fi
@ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) docker-compose run --rm php composer install --no-interaction --no-scripts
@ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) docker-compose run --rm nodejs
make install
@ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) docker-compose up -d
run:
make up
debug:
@ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) docker-compose -f compose.yml -f compose.override.yml -f compose.debug.yml up -d
up:
@ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) docker-compose up -d
down:
@ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) docker-compose down
install:
@ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) docker-compose run --rm php bin/console sylius:install -s default -n
clean:
@ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) docker-compose down -v
php-shell:
@ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) docker-compose exec php sh
node-shell:
@ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) docker-compose run --rm -i nodejs sh
node-watch:
@ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) docker-compose run --rm -i nodejs "npm run watch"