forked from Sylius/Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (30 loc) · 788 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
include .stub/*.mk
$(eval $(call defw,DOCKER_COMPOSE_LOCAL,docker-compose.local.yml))
ifneq ("$(wildcard $(DOCKER_COMPOSE_LOCAL))","")
DOCKER_COMPOSE_EXTRA_OPTIONS := -f $(DOCKER_COMPOSE_LOCAL)
endif
.PHONY: build
build:: ##@Docker Build the Sylius application image
docker build \
-f Dockerfile \
.
.PHONY: up
up:: ##@Sylius Start the Sylius stack for development (using docker-compose)
docker-compose \
-f docker-compose.yml \
$(DOCKER_COMPOSE_EXTRA_OPTIONS) \
up \
--build
.PHONY: shell
shell:: ##@Development Bring up a shell
docker exec \
-ti \
syliusdocker_sylius_1 \
bash
.PHONY: console
console:: ##@Development Call Symfony "console" with "console [<CMD>]"
docker exec \
-ti \
-u www-data \
syliusdocker_sylius_1 \
sylius/bin/console $(CMD)