-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (30 loc) · 966 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
all: help
# |__ __| __|__ __|
# | | __ / __| |
# | |/ _ \ \ \| |
# | | __/ |__/ /| |
# |_|\___|\_____/ |_|
.PHONY : help
help : Makefile
@sed -n 's/^##\s//p' $<
SHELL := /bin/bash
ROOT_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
UID=$(shell id -u)
define docker_phpcli_run
docker-compose -f docker-compose.cli.yml run \
--rm \
--no-deps \
--entrypoint=/bin/bash \
-e HOST_USER=${UID} \
-e TERM=xterm-256color \
php-cli -c "$1"
endef
## interactive: runs a container with an interactive shell
.PHONY : interactive
interactive:
-@docker-compose -f docker-compose.cli.yml run \
--rm \
--no-deps \
-e HOST_USER=${UID} \
-e TERM=xterm-256color \
php-cli /bin/zsh -l