-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
49 lines (39 loc) · 1.09 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
41
42
43
44
45
46
47
48
49
init:
apt install git default-jdk php
apt install php-xml php-curl php-zip php-mcrypt php-mbstring
pecl install redis
mkdir -p ~/wwwroot/log/nginx
mkdir -p ~/wwwroot/log/php
mkdir -p ~/wwwroot/log/supervisor
mkdir -p ~/wwwroot/data/ssdb
mkdir -p ~/wwwroot/xdebug/profiler
mkdir -p ~/wwwroot/xdebug/trace
chown $(whoami):$(whoami) -R ~/wwwroot/log
chown $(whoami):$(whoami) -R ~/wwwroot/data
chown $(whoami):$(whoami) -R ~/wwwroot/xdebug
wget https://getcomposer.org/composer.phar -O /usr/local/bin/composer
chmod +x /usr/local/bin/composer
composer config -g repo.packagist composer https://packagist.phpcomposer.com
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
up:
docker-compose up -d ${m}
stop:
docker-compose stop ${m}
rm:
docker-compose rm --all
start:
docker-compose start ${m}
restart:
docker-compose restart ${m}
build:
docker-compose build --no-cache ${m}
rebuild:
make stop ${m}
make rm ${m}
make build ${m}
ps:
docker ps -a
clean:
docker rmi $(sudo docker images -q -f "dangling=true")
bash:
docker exec -it ${m} /bin/bash