From 8f001396bac417d13e39e1574a1e4e301bebb2ad Mon Sep 17 00:00:00 2001 From: Alex Hyett Date: Sun, 20 Dec 2015 20:12:16 +0000 Subject: [PATCH] Added php qa tools and increased vagrant memory --- Dockerfile | 13 ++++++++++++- Vagrantfile | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d812546..a011036 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,9 +19,20 @@ RUN set -ex \ ENV NPM_CONFIG_LOGLEVEL info ENV NODE_VERSION 5.3.0 +# install nodejs, php composer and php qa RUN curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" \ && curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \ && gpg --verify SHASUMS256.txt.asc \ && grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt.asc | sha256sum -c - \ && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ - && rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc + && rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc \ + && curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer \ + && apt-get update && apt-get install -y zlib1g-dev zip git \ + && composer global require "phpunit/phpunit=4.4.*" \ + && composer global require "phploc/phploc=*" \ + && composer global require "sebastian/phpcpd=*" \ + && composer global require "squizlabs/php_codesniffer=2.1.*" \ + && git clone git://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git /usr/share/php/PHP/CodeSniffer/Standards/WordPress \ + && composer global require "pdepend/pdepend=2.0.*" \ + && composer global require "phpmd/phpmd=2.1.*" \ + && composer global require "mayflower/php-codebrowser=~1.1" diff --git a/Vagrantfile b/Vagrantfile index 6a7e717..b8b4653 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -20,5 +20,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.provider :virtualbox do |vb| vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on'] vb.customize ['modifyvm', :id, '--natdnsproxy1', 'on'] + vb.memory = 1298 end end