-
Notifications
You must be signed in to change notification settings - Fork 493
/
Makefile
68 lines (49 loc) · 1.86 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
ARGS = $(filter-out $@,$(MAKECMDGOALS))
MAKEFLAGS += --silent
.PHONY: test documentation provision
DOCKER_REPOSITORY=`cat DOCKER_REPOSITORY`
DOCKER_TAG_LATEST=`cat DOCKER_TAG_LATEST`
list:
sh -c "echo; $(MAKE) -p no_targets__ |\
awk -F':' '/^[a-zA-Z0-9][^\$$#\\t=]*:([^=]|$$)/ {split(\$$1,A,/ /);\
for(i in A)print A[i]}' | \
grep -v '__\$$\|Makefile\|%' | \
sort"
full: provision build
all: build
build:
python2 ./bin/console docker:build --threads=auto
bootstrap: webdevops/bootstrap webdevops/ansible
base: webdevops/base webdevops/base-app webdevops/storage
service: webdevops/ssh webdevops/vsftp webdevops/postfix
php: webdevops/php webdevops/php-apache webdevops/php-nginx
php-dev: webdevops/php-dev webdevops/php-apache-dev webdevops/php-nginx-dev
hhvm: webdevops/hhvm webdevops/hhvm-apache webdevops/hhvm-nginx
web: webdevops/apache webdevops/apache-dev webdevops/nginx webdevops/nginx-dev webdevops/varnish webdevops/certbot
applications: webdevops/typo3 webdevops/piwik
misc: webdevops/mail-sandbox webdevops/sphinx webdevops/liquibase
setup: requirements
requirements:
pip install --upgrade -I -r ./bin/requirements.txt
cd tests/serverspec && bundle install --path=vendor
test:
python2 bin/console test:serverspec --threads=auto -v
structure-test:
cd tests/structure-test && ./run.sh
provision:
python2 bin/console generate:dockerfile
python2 bin/console generate:provision
push:
python2 ./bin/console docker:push --threads=auto
graph:
python2 ./bin/console generate:graph
graph-full:
python2 ./bin/console generate:graph --all\
--filename docker-image-full-layout.gv
documentation:
docker run -t -i --rm -p 8000 \
-v "$$(pwd)/documentation/docs/:/opt/docs" \
-e "VIRTUAL_HOST=documentation.docker" \
-e "VIRTUAL_PORT=8000" \
webdevops/sphinx sphinx-autobuild \
--poll -H 0.0.0.0 /opt/docs html