|
9 | 9 | #
|
10 | 10 | FROM php:7.1-cli
|
11 | 11 |
|
| 12 | + |
12 | 13 | MAINTAINER Adam Culp <adamculp@uws.net>
|
13 | 14 |
|
14 | 15 | ENV TARGET_DIR="/usr/local/lib/php-qa-tools" \
|
15 |
| - COMPOSER_HOME="~/.composer" \ |
16 |
| - COMPOSER_BIN_DIR="/usr/local/bin" \ |
17 | 16 | COMPOSER_ALLOW_SUPERUSER=1 \
|
18 |
| - HTTP_PROXY_REQUEST_FULLURI=1 \ |
19 |
| - HTTPS_PROXY_REQUEST_FULLURI=0 \ |
20 | 17 | TIMEZONE=America/New_York \
|
21 | 18 | PHP_MEMORY_LIMIT=512M
|
22 | 19 |
|
23 | 20 | RUN mkdir -p $TARGET_DIR
|
24 | 21 |
|
25 | 22 | WORKDIR $TARGET_DIR
|
26 | 23 |
|
27 |
| -COPY install-composer.sh $TARGET_DIR/ |
28 |
| - |
29 |
| -# RUN mkdir /opt/php-qa-tools && cd /opt/php-qa-tools \ |
30 |
| -# && wget https://phar.phpunit.de/phpunit.phar -O phpunit \ |
31 |
| -# && wget https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar -O phpcs \ |
32 |
| -# && wget https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar -O phpcbf \ |
33 |
| -# && wget https://phar.phpunit.de/phploc.phar -O phploc \ |
34 |
| -# && wget http://static.pdepend.org/php/latest/pdepend.phar -O pdepend \ |
35 |
| -# && wget http://static.phpmd.org/php/latest/phpmd.phar -O phpmd \ |
36 |
| -# && wget https://phar.phpunit.de/phpcpd.phar -O phpcpd \ |
37 |
| -# && wget https://github.com/theseer/phpdox/releases/download/0.9.0/phpdox-0.9.0.phar -O phpdox \ |
38 |
| -# && wget http://get.sensiolabs.org/php-cs-fixer.phar -O php-cs-fixer \ |
39 |
| -# && chmod a+x /opt/php-qa-tools/* |
| 24 | +COPY howto.txt $TARGET_DIR/ |
| 25 | +COPY composer-installer.sh $TARGET_DIR/ |
| 26 | +COPY composer-wrapper.sh /usr/local/bin/composer |
40 | 27 |
|
41 |
| -# Run composer installation of needed tools |
42 |
| -RUN $TARGET_DIR/install-composer.sh && \ |
43 |
| - composer selfupdate && \ |
44 |
| - composer require --prefer-stable --prefer-source "hirak/prestissimo:^0.3" && \ |
45 |
| - composer require --prefer-stable --prefer-dist \ |
46 |
| - "squizlabs/php_codesniffer:3.0.x-dev" \ |
47 |
| - "phpunit/phpunit:^5" \ |
48 |
| - "phploc/phploc:dev-master" \ |
49 |
| - "phpmd/phpmd:dev-master" \ |
50 |
| - "pdepend/pdepend:dev-master" \ |
51 |
| - "sebastian/phpcpd:dev-master" \ |
52 |
| - "theseer/phpdox:dev-master" \ |
53 |
| - "friendsofphp/php-cs-fixer:^1" \ |
54 |
| - |
55 |
| - "techlivezheng/phpctags:dev-master" \ |
56 |
| - "wimg/php-compatibility:dev-master" \ |
57 |
| - "etsy/phan:dev-master" \ |
58 |
| - |
59 |
| -# install PHPCompatibility |
| 28 | +RUN apt-get update && \ |
| 29 | + apt-get install -y wget && \ |
| 30 | + apt-get install -y zip && \ |
| 31 | + apt-get install -y git |
60 | 32 |
|
| 33 | +RUN chmod 744 $TARGET_DIR/composer-installer.sh |
| 34 | +RUN chmod 744 /usr/local/bin/composer |
61 | 35 |
|
| 36 | +# Run composer installation of needed tools |
| 37 | +RUN $TARGET_DIR/composer-installer.sh && \ |
| 38 | + composer selfupdate && \ |
| 39 | + composer require --prefer-stable --prefer-source "hirak/prestissimo:^0.3" && \ |
| 40 | + composer require --prefer-stable --prefer-dist \ |
| 41 | + "squizlabs/php_codesniffer:dev-master" \ |
| 42 | + "phpunit/phpunit:dev-master" \ |
| 43 | + "phploc/phploc:dev-master" \ |
| 44 | + "pdepend/pdepend:^2.5" \ |
| 45 | + "phpmd/phpmd:dev-master" \ |
| 46 | + "sebastian/phpcpd:dev-master" \ |
| 47 | + "friendsofphp/php-cs-fixer:dev-master" \ |
| 48 | + "techlivezheng/phpctags:dev-master" \ |
| 49 | + "wimg/php-compatibility:dev-master" |
| 50 | + |
| 51 | +CMD cat $TARGET_DIR/howto.txt |
0 commit comments