-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
147 lines (146 loc) · 4 KB
/
docker-compose.yml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# Dockerized testing and analysis tools for developers
# ======================================================
#
# 1. Make sure you have docker set up.
# 2. Make sure you have fig installed.
# 3. Run `fig run --rm setup` to create necessary directories. It's safe to rerun this.
# You can specify a Magento version, too, like `fig run --rm setup 1.14.1.0`
# 4. Run `fig run --rm "$test"`, where `$test` is the name of the test to run. For example, `fig run --rm phpunit`.
# 5. For advanced options, you can still pass commandline flags to the containers, like `fig run --rm phpcpd --help`.
#
# Some commands produce output on standard output.
# Other commands put files in the `build` directory.
# TODO: Parameterize this (FIG_PROJECT?) to enable > 1 version of Magento
dbdata:
image: mysql:5
command: echo 'Just providing a volume for mysql data'
db:
image: mysql:5
environment:
- MYSQL_ROOT_PASSWORD=mage
- MYSQL_USER=mage
- MYSQL_PASSWORD=mage
- MYSQL_DATABASE=mage
volumes_from:
- dbdata
ports:
- 3306:3306
unitdb:
image: mysql:5
environment:
- MYSQL_ROOT_PASSWORD=mage
- MYSQL_USER=mage
- MYSQL_PASSWORD=mage
- MYSQL_DATABASE=unit
expose:
- 3306
setup:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
links:
- db
entrypoint: /srv/magento/docker-setup
command: 1.14.1.0
composer:
image: kojiromike/magento_tools
volumes:
- .:/git/magento-risk-insight
- build/magento:/srv/magento
entrypoint: composer
command: list
document:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
entrypoint: phpdoc
command: -d src -t build/doc
pdepend:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
entrypoint: pdepend
command: --jdepend-chart=build/pdepend-chart.svg
--overview-pyramid=build/pdepend-overview-pyramid.svg
src
phpcpd:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
entrypoint: phpcpd
command: --fuzzy --progress src
phpcs:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
entrypoint: phpcs
command: -p --standard=PSR2 src
phplint:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
command: sh -c 'find src \( -name "*.php" -o -name "*.phtml" \) -print0 |
xargs -0 -n1 -P6 -- php -l > /dev/null && echo "no errors"'
phploc:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
entrypoint: phploc
command: --count-tests --progress src
phpmd:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
entrypoint: phpmd
command: src text tests/phpmd.xml
phpunit:
image: kojiromike/magento_tools
volumes:
- ./build/magento:/srv/magento
links:
- db
- unitdb
entrypoint: phpunit
xmllint:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
command: sh -c 'find src \( -name "*.xml" -o -name "*.xsd" -o -name "*.xsl" \) -print0 |
xargs -0 -n1 -P6 -- xmllint --noout'
webapp:
image: kojiromike/magento_apache
volumes:
- build/magento:/srv/magento
links:
- db
ports:
- "80:80"
tools:
image: kojiromike/magento_tools
volumes:
- ./build/magento:/srv/magento
volumes_from:
- dbdata
links:
- db
magerun:
image: kojiromike/magento_tools
volumes:
- ./build/magento:/srv/magento
links:
- db
entrypoint: ["n98-magerun", "--skip-root-check"]
command: list commands
modman:
image: kojiromike/magento_tools
volumes:
- ./build/magento:/srv/magento
- .:/git/magento-risk-insight
entrypoint: ["modman"]
command: list
composerCommandIntegrator:
image: kojiromike/magento_tools
volumes:
- ./build/magento:/srv/magento
entrypoint: ["vendor/bin/composerCommandIntegrator.php"]
command: list