Skip to content

Commit b6c3b32

Browse files
committed
Fixed broken build
1 parent dc3fc1c commit b6c3b32

File tree

3 files changed

+9
-22
lines changed

3 files changed

+9
-22
lines changed

Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# You should have received a copy of the GNU General Public License
1414
# along with mcustiel/docker-php-tools. If not, see <http://www.gnu.org/licenses/>.
1515

16-
FROM composer
16+
FROM composer:1.6
1717
MAINTAINER Mariano Custiel <jmcustiel@gmail.com>
1818

1919
# phars directory
@@ -27,7 +27,7 @@ ENV PATH $COMPOSER_HOME/vendor/bin:$PATH
2727
RUN apk add --no-cache \
2828
$PHPIZE_DEPS \
2929
openssl-dev
30-
RUN pecl install xdebug-2.5.3 && docker-php-ext-enable xdebug
30+
RUN pecl install xdebug-2.6.0 && docker-php-ext-enable xdebug
3131

3232
# PHP Configuration
3333
COPY ./config/phar-writable.ini /usr/local/etc/php/conf.d
@@ -37,9 +37,10 @@ RUN composer global require hirak/prestissimo
3737

3838
# PHP tools
3939
RUN composer global require phing/phing
40-
RUN composer global require phpunit/phpunit:~5.0
41-
RUN composer global require phpunit/dbunit:~2.0
42-
RUN composer global require sebastian/phpcpd
40+
RUN composer global require kherge/box --prefer-source
41+
RUN composer global require phpunit/phpunit:~6.0
42+
RUN composer global require phpunit/dbunit:~3.0
43+
RUN composer global require sebastian/phpcpd:~3.0
4344
RUN composer global require phploc/phploc
4445
RUN composer global require phpmd/phpmd
4546
RUN composer global require squizlabs/php_codesniffer
@@ -48,12 +49,14 @@ RUN composer global require friendsofphp/php-cs-fixer
4849
RUN composer global require codeception/codeception
4950
RUN composer global require phpmetrics/phpmetrics
5051
RUN composer global require sensiolabs/security-checker
51-
RUN composer global require kherge/box --prefer-source
52+
5253
RUN composer global require sebastian/phpdcd
5354

5455
RUN curl -L http://phpdoc.org/phpDocumentor.phar -o $PHARS_DIR/phpDocumentor
5556
RUN chmod +x $PHARS_DIR/phpDocumentor
5657

58+
RUN composer global require phpstan/phpstan --prefer-dist
59+
5760
# CS config for SF2 standards
5861
RUN composer global require escapestudios/symfony2-coding-standard
5962
RUN phpcs --config-set installed_paths $COMPOSER_HOME/vendor/escapestudios/symfony2-coding-standard

php-tool-run

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
DIR=$(pwd)
44
USER=$(id -u)
55
GROUP=$(id -g)
6-
CHANGE_OWNER=0
76
COMMAND=""
87
options=($@)
98

@@ -29,9 +28,6 @@ while [ "${#options[@]}" -gt 0 ]; do
2928
GROUP=${options[1]}
3029
options=(${options[@]:1})
3130
;;
32-
--dpt-owner)
33-
CHANGE_OWNER=1
34-
;;
3531
*)
3632
COMMAND="$COMMAND ${options[0]}"
3733
;;
@@ -48,8 +44,4 @@ docker run -it --rm \
4844
--env SSH_AUTH_SOCK=/ssh-auth.sock \
4945
--user $USER:$GROUP \
5046
php-tools $COMMAND
51-
if [ "$CHANGE_OWNER" -eq "1" ]; then
52-
echo "CHANGING OWNERSHIP TO $USER:$GROUP"
53-
sudo chown -R $USER:$GROUP $DIR
54-
fi
5547

php5-tool-run

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
DIR=$(pwd)
44
USER=$(id -u)
55
GROUP=$(id -g)
6-
CHANGE_OWNER=0
76
COMMAND=""
87
options=($@)
98

@@ -29,9 +28,6 @@ while [ "${#options[@]}" -gt 0 ]; do
2928
GROUP=${options[1]}
3029
options=(${options[@]:1})
3130
;;
32-
--dpt-owner)
33-
CHANGE_OWNER=1
34-
;;
3531
*)
3632
COMMAND="$COMMAND ${options[0]}"
3733
;;
@@ -48,8 +44,4 @@ docker run -it --rm \
4844
--env SSH_AUTH_SOCK=/ssh-auth.sock \
4945
--user $USER:$GROUP \
5046
php-tools:php5 $COMMAND
51-
if [ "$CHANGE_OWNER" -eq "1" ]; then
52-
echo "CHANGING OWNERSHIP TO $USER:$GROUP"
53-
sudo chown -R $USER:$GROUP $DIR
54-
fi
5547

0 commit comments

Comments
 (0)