Skip to content

Commit 199efdc

Browse files
authored
Merge pull request #6 from devilbox/release-0.5
Release 0.5
2 parents fabaf4a + a6b1fa8 commit 199efdc

9 files changed

Lines changed: 142 additions & 1 deletion

File tree

Dockerfiles/work/Dockerfile-5.4

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ RUN set -x \
7373
nodejs \
7474
postgresql-client \
7575
python-pip \
76+
redis-tools \
7677
rubygems \
7778
ruby-dev \
7879
shellcheck \
@@ -187,6 +188,16 @@ RUN set -x \
187188
&& cd / \
188189
&& rm -rf /usr/local/src/phalcon-devtools/.git \
189190
\
191+
# phpcs
192+
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar > /usr/local/bin/phpcs 2>/dev/null \
193+
&& chmod +x /usr/local/bin/phpcs \
194+
\
195+
# phpcbf
196+
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
197+
&& chmod +x /usr/local/bin/phpcbf \
198+
\
199+
# sass
200+
&& gem install sass \
190201
# symfony
191202
&& curl https://symfony.com/installer -L -o /usr/local/bin/symfony \
192203
&& chmod +x /usr/local/bin/symfony \
@@ -195,6 +206,10 @@ RUN set -x \
195206
# wpcli
196207
&& curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -L -o /usr/local/bin/wp \
197208
&& chmod +x /usr/local/bin/wp \
209+
# yamllint
210+
&& apt update && apt install --no-install-recommends --no-install-suggests -y libpython-dev python-setuptools libyaml-dev \
211+
&& pip install yamllint \
212+
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps libpython-dev python-setuptools libyaml-dev && rm -rf /var/lib/apt/lists/* \
198213
# cleanup
199214
&& rm -rf /home/${MY_USER}/.*json \
200215
&& rm -rf /home/${MY_USER}/.cache \
@@ -264,9 +279,13 @@ RUN set -x \
264279
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
265280
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
266281
&& phalcon commands | grep -E '[.0-9]+' \
282+
&& phpcs --version | grep -E 'version [.0-9]+' \
283+
&& phpcbf --version | grep -E 'version [.0-9]+' \
284+
&& sass --version | grep -E '[.0-9]+' \
267285
&& symfony --version | grep -E 'version\s*[.0-9]+' \
268286
&& webpack --version | grep -E '[.0-9]+' \
269287
&& wp --allow-root --version | grep -E '[.0-9]+' \
288+
&& yamllint --version 2>&1 | grep -E '[.0-9]+' \
270289
&& true
271290

272291

Dockerfiles/work/Dockerfile-5.5

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ RUN set -x \
7373
nodejs \
7474
postgresql-client \
7575
python-pip \
76+
redis-tools \
7677
rubygems \
7778
ruby-dev \
7879
shellcheck \
@@ -190,6 +191,16 @@ RUN set -x \
190191
&& cd / \
191192
&& rm -rf /usr/local/src/phalcon-devtools/.git \
192193
\
194+
# phpcs
195+
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar > /usr/local/bin/phpcs 2>/dev/null \
196+
&& chmod +x /usr/local/bin/phpcs \
197+
\
198+
# phpcbf
199+
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
200+
&& chmod +x /usr/local/bin/phpcbf \
201+
\
202+
# sass
203+
&& gem install sass \
193204
# symfony
194205
&& curl https://symfony.com/installer -L -o /usr/local/bin/symfony \
195206
&& chmod +x /usr/local/bin/symfony \
@@ -198,6 +209,10 @@ RUN set -x \
198209
# wpcli
199210
&& curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -L -o /usr/local/bin/wp \
200211
&& chmod +x /usr/local/bin/wp \
212+
# yamllint
213+
&& apt update && apt install --no-install-recommends --no-install-suggests -y libpython-dev python-setuptools libyaml-dev \
214+
&& pip install yamllint \
215+
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps libpython-dev python-setuptools libyaml-dev && rm -rf /var/lib/apt/lists/* \
201216
# cleanup
202217
&& rm -rf /home/${MY_USER}/.*json \
203218
&& rm -rf /home/${MY_USER}/.cache \
@@ -268,9 +283,13 @@ RUN set -x \
268283
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
269284
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
270285
&& phalcon commands | grep -E '[.0-9]+' \
286+
&& phpcs --version | grep -E 'version [.0-9]+' \
287+
&& phpcbf --version | grep -E 'version [.0-9]+' \
288+
&& sass --version | grep -E '[.0-9]+' \
271289
&& symfony --version | grep -E 'version\s*[.0-9]+' \
272290
&& webpack --version | grep -E '[.0-9]+' \
273291
&& wp --allow-root --version | grep -E '[.0-9]+' \
292+
&& yamllint --version 2>&1 | grep -E '[.0-9]+' \
274293
&& true
275294

276295

Dockerfiles/work/Dockerfile-5.6

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ RUN set -x \
7373
nodejs \
7474
postgresql-client \
7575
python-pip \
76+
redis-tools \
7677
rubygems \
7778
ruby-dev \
7879
shellcheck \
@@ -190,6 +191,16 @@ RUN set -x \
190191
&& cd / \
191192
&& rm -rf /usr/local/src/phalcon-devtools/.git \
192193
\
194+
# phpcs
195+
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar > /usr/local/bin/phpcs 2>/dev/null \
196+
&& chmod +x /usr/local/bin/phpcs \
197+
\
198+
# phpcbf
199+
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
200+
&& chmod +x /usr/local/bin/phpcbf \
201+
\
202+
# sass
203+
&& gem install sass \
193204
# symfony
194205
&& curl https://symfony.com/installer -L -o /usr/local/bin/symfony \
195206
&& chmod +x /usr/local/bin/symfony \
@@ -198,6 +209,10 @@ RUN set -x \
198209
# wpcli
199210
&& curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -L -o /usr/local/bin/wp \
200211
&& chmod +x /usr/local/bin/wp \
212+
# yamllint
213+
&& apt update && apt install --no-install-recommends --no-install-suggests -y libpython-dev python-setuptools libyaml-dev \
214+
&& pip install yamllint \
215+
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps libpython-dev python-setuptools libyaml-dev && rm -rf /var/lib/apt/lists/* \
201216
# cleanup
202217
&& rm -rf /home/${MY_USER}/.*json \
203218
&& rm -rf /home/${MY_USER}/.cache \
@@ -268,9 +283,13 @@ RUN set -x \
268283
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
269284
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
270285
&& phalcon commands | grep -E '[.0-9]+' \
286+
&& phpcs --version | grep -E 'version [.0-9]+' \
287+
&& phpcbf --version | grep -E 'version [.0-9]+' \
288+
&& sass --version | grep -E '[.0-9]+' \
271289
&& symfony --version | grep -E 'version\s*[.0-9]+' \
272290
&& webpack --version | grep -E '[.0-9]+' \
273291
&& wp --allow-root --version | grep -E '[.0-9]+' \
292+
&& yamllint --version 2>&1 | grep -E '[.0-9]+' \
274293
&& true
275294

276295

Dockerfiles/work/Dockerfile-7.0

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ RUN set -x \
7373
nodejs \
7474
postgresql-client \
7575
python-pip \
76+
redis-tools \
7677
rubygems \
7778
ruby-dev \
7879
shellcheck \
@@ -190,6 +191,16 @@ RUN set -x \
190191
&& cd / \
191192
&& rm -rf /usr/local/src/phalcon-devtools/.git \
192193
\
194+
# phpcs
195+
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar > /usr/local/bin/phpcs 2>/dev/null \
196+
&& chmod +x /usr/local/bin/phpcs \
197+
\
198+
# phpcbf
199+
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
200+
&& chmod +x /usr/local/bin/phpcbf \
201+
\
202+
# sass
203+
&& gem install sass \
193204
# symfony
194205
&& curl https://symfony.com/installer -L -o /usr/local/bin/symfony \
195206
&& chmod +x /usr/local/bin/symfony \
@@ -198,6 +209,10 @@ RUN set -x \
198209
# wpcli
199210
&& curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -L -o /usr/local/bin/wp \
200211
&& chmod +x /usr/local/bin/wp \
212+
# yamllint
213+
&& apt update && apt install --no-install-recommends --no-install-suggests -y libpython-dev python-setuptools libyaml-dev \
214+
&& pip install yamllint \
215+
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps libpython-dev python-setuptools libyaml-dev && rm -rf /var/lib/apt/lists/* \
201216
# cleanup
202217
&& rm -rf /home/${MY_USER}/.*json \
203218
&& rm -rf /home/${MY_USER}/.cache \
@@ -268,9 +283,13 @@ RUN set -x \
268283
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
269284
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
270285
&& phalcon commands | grep -E '[.0-9]+' \
286+
&& phpcs --version | grep -E 'version [.0-9]+' \
287+
&& phpcbf --version | grep -E 'version [.0-9]+' \
288+
&& sass --version | grep -E '[.0-9]+' \
271289
&& symfony --version | grep -E 'version\s*[.0-9]+' \
272290
&& webpack --version | grep -E '[.0-9]+' \
273291
&& wp --allow-root --version | grep -E '[.0-9]+' \
292+
&& yamllint --version 2>&1 | grep -E '[.0-9]+' \
274293
&& true
275294

276295

Dockerfiles/work/Dockerfile-7.1

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ RUN set -x \
7373
nodejs \
7474
postgresql-client \
7575
python-pip \
76+
redis-tools \
7677
rubygems \
7778
ruby-dev \
7879
shellcheck \
@@ -190,6 +191,16 @@ RUN set -x \
190191
&& cd / \
191192
&& rm -rf /usr/local/src/phalcon-devtools/.git \
192193
\
194+
# phpcs
195+
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar > /usr/local/bin/phpcs 2>/dev/null \
196+
&& chmod +x /usr/local/bin/phpcs \
197+
\
198+
# phpcbf
199+
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
200+
&& chmod +x /usr/local/bin/phpcbf \
201+
\
202+
# sass
203+
&& gem install sass \
193204
# symfony
194205
&& curl https://symfony.com/installer -L -o /usr/local/bin/symfony \
195206
&& chmod +x /usr/local/bin/symfony \
@@ -198,6 +209,10 @@ RUN set -x \
198209
# wpcli
199210
&& curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -L -o /usr/local/bin/wp \
200211
&& chmod +x /usr/local/bin/wp \
212+
# yamllint
213+
&& apt update && apt install --no-install-recommends --no-install-suggests -y libpython-dev python-setuptools libyaml-dev \
214+
&& pip install yamllint \
215+
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps libpython-dev python-setuptools libyaml-dev && rm -rf /var/lib/apt/lists/* \
201216
# cleanup
202217
&& rm -rf /home/${MY_USER}/.*json \
203218
&& rm -rf /home/${MY_USER}/.cache \
@@ -268,9 +283,13 @@ RUN set -x \
268283
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
269284
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
270285
&& phalcon commands | grep -E '[.0-9]+' \
286+
&& phpcs --version | grep -E 'version [.0-9]+' \
287+
&& phpcbf --version | grep -E 'version [.0-9]+' \
288+
&& sass --version | grep -E '[.0-9]+' \
271289
&& symfony --version | grep -E 'version\s*[.0-9]+' \
272290
&& webpack --version | grep -E '[.0-9]+' \
273291
&& wp --allow-root --version | grep -E '[.0-9]+' \
292+
&& yamllint --version 2>&1 | grep -E '[.0-9]+' \
274293
&& true
275294

276295

Dockerfiles/work/Dockerfile-7.2

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ RUN set -x \
7373
nodejs \
7474
postgresql-client \
7575
python-pip \
76+
redis-tools \
7677
rubygems \
7778
ruby-dev \
7879
shellcheck \
@@ -190,6 +191,16 @@ RUN set -x \
190191
&& cd / \
191192
&& rm -rf /usr/local/src/phalcon-devtools/.git \
192193
\
194+
# phpcs
195+
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar > /usr/local/bin/phpcs 2>/dev/null \
196+
&& chmod +x /usr/local/bin/phpcs \
197+
\
198+
# phpcbf
199+
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
200+
&& chmod +x /usr/local/bin/phpcbf \
201+
\
202+
# sass
203+
&& gem install sass \
193204
# symfony
194205
&& curl https://symfony.com/installer -L -o /usr/local/bin/symfony \
195206
&& chmod +x /usr/local/bin/symfony \
@@ -198,6 +209,10 @@ RUN set -x \
198209
# wpcli
199210
&& curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -L -o /usr/local/bin/wp \
200211
&& chmod +x /usr/local/bin/wp \
212+
# yamllint
213+
&& apt update && apt install --no-install-recommends --no-install-suggests -y libpython-dev python-setuptools libyaml-dev \
214+
&& pip install yamllint \
215+
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps libpython-dev python-setuptools libyaml-dev && rm -rf /var/lib/apt/lists/* \
201216
# cleanup
202217
&& rm -rf /home/${MY_USER}/.*json \
203218
&& rm -rf /home/${MY_USER}/.cache \
@@ -268,9 +283,13 @@ RUN set -x \
268283
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
269284
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
270285
&& phalcon commands | grep -E '[.0-9]+' \
286+
&& phpcs --version | grep -E 'version [.0-9]+' \
287+
&& phpcbf --version | grep -E 'version [.0-9]+' \
288+
&& sass --version | grep -E '[.0-9]+' \
271289
&& symfony --version | grep -E 'version\s*[.0-9]+' \
272290
&& webpack --version | grep -E '[.0-9]+' \
273291
&& wp --allow-root --version | grep -E '[.0-9]+' \
292+
&& yamllint --version 2>&1 | grep -E '[.0-9]+' \
274293
&& true
275294

276295

Dockerfiles/work/data/bash-devilbox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ echo " | node | https://nodejs.org |"
4545
echo " | npm | https://www.npmjs.com |"
4646
echo " | phalcon-devtools | gh: phalcon/phalcon-devtools |"
4747
echo " | symfony installer| gh: symfony/symfony-installer|"
48-
echo " | webpack | ghL webpack/webpack |"
48+
echo " | webpack | gh: webpack/webpack |"
4949
echo " | wpcli | https://wp-cli.org |"
5050
echo
5151
echo

build/ansible/DOCKERFILES/Dockerfile-work.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ RUN set -x \
8888
nodejs \
8989
postgresql-client \
9090
python-pip \
91+
redis-tools \
9192
rubygems \
9293
ruby-dev \
9394
shellcheck \

build/ansible/group_vars/all.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@ software_enabled:
6161
- linuxbrew
6262
- mysqldumpsecure
6363
- phalcon
64+
- phpcs
65+
- phpcbf
66+
- sass
6467
- symfony
6568
- webpack
6669
- wpcli
70+
- yamllint
6771
# Cleanup needs to be last
6872
- cleanup
6973

@@ -289,6 +293,22 @@ software_available:
289293
&& ln -s /usr/local/src/phalcon-devtools/phalcon.php /usr/local/bin/phalcon \
290294
&& cd / \
291295
&& rm -rf /usr/local/src/phalcon-devtools/.git \
296+
phpcs:
297+
check: phpcs --version | grep -E 'version [.0-9]+'
298+
all:
299+
command: |
300+
curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar > /usr/local/bin/phpcs 2>/dev/null \
301+
&& chmod +x /usr/local/bin/phpcs \
302+
phpcbf:
303+
check: phpcbf --version | grep -E 'version [.0-9]+'
304+
all:
305+
command: |
306+
curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
307+
&& chmod +x /usr/local/bin/phpcbf \
308+
sass:
309+
check: sass --version | grep -E '[.0-9]+'
310+
all:
311+
command: gem install sass
292312
symfony:
293313
check: symfony --version | grep -E 'version\s*[.0-9]+'
294314
all:
@@ -303,6 +323,12 @@ software_available:
303323
check: webpack --version | grep -E '[.0-9]+'
304324
all:
305325
command: npm install -g webpack webpack-cli
326+
yamllint:
327+
check: yamllint --version 2>&1 | grep -E '[.0-9]+'
328+
all:
329+
pre: apt update && apt install --no-install-recommends --no-install-suggests -y libpython-dev python-setuptools libyaml-dev
330+
command: pip install yamllint
331+
post: apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps libpython-dev python-setuptools libyaml-dev && rm -rf /var/lib/apt/lists/*
306332
cleanup:
307333
all:
308334
command: |

0 commit comments

Comments
 (0)