2016-05-06 22:23:04 +00:00
|
|
|
FROM php:5.6-fpm
|
2016-04-22 14:02:42 +00:00
|
|
|
|
2016-05-10 21:41:32 +00:00
|
|
|
# Install required dependencies
|
|
|
|
RUN apt-get update -y && apt-get install -y libc6 libfreetype6-dev \
|
|
|
|
libgd3 libjpeg62-turbo-dev libpng12-dev libvpx1 libx11-6 libxpm4 \
|
|
|
|
zlib1g phpapi-20131226 php5-common ucf libcurl4-gnutls-dev libltdl7 \
|
2016-05-23 12:40:10 +00:00
|
|
|
libmcrypt-dev libgcc1 libicu52 libgcc1 libicu-dev wget git
|
2016-05-10 21:41:32 +00:00
|
|
|
|
2016-05-06 22:23:04 +00:00
|
|
|
# Install required php extensions
|
2016-05-10 21:41:32 +00:00
|
|
|
RUN docker-php-ext-install gd && \
|
|
|
|
docker-php-ext-install mcrypt && \
|
|
|
|
docker-php-ext-install intl && \
|
|
|
|
docker-php-ext-install curl && \
|
|
|
|
docker-php-ext-install pdo_mysql
|
2016-05-06 22:23:04 +00:00
|
|
|
|
|
|
|
# Install composer
|
|
|
|
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
|
|
|
|
php -r "if (hash_file('SHA384', 'composer-setup.php') === '92102166af5abdb03f49ce52a40591073a7b859a86e8ff13338cf7db58a19f7844fbc0bb79b2773bf30791e935dbd938') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
|
|
|
|
php composer-setup.php --install-dir=/usr/bin --filename=composer && \
|
|
|
|
php -r "unlink('composer-setup.php');"
|
|
|
|
|
|
|
|
# Install magerun
|
2016-05-23 12:40:10 +00:00
|
|
|
RUN wget https://files.magerun.net/n98-magerun.phar && \
|
2016-05-06 22:23:04 +00:00
|
|
|
mv n98-magerun.phar /usr/bin/ && \
|
|
|
|
echo 'alias magerun="php -f /usr/bin/n98-magerun.phar --"' >> /root/.bashrc
|
|
|
|
|
|
|
|
# Install Accolade Magerun Tools
|
2016-05-23 12:40:10 +00:00
|
|
|
RUN mkdir -p /usr/local/share/n98-magerun/modules && \
|
2016-05-20 14:48:23 +00:00
|
|
|
git clone https://github.com/Accolades/MagerunTools.git /usr/local/share/n98-magerun/modules/MagerunTools
|
|
|
|
|
|
|
|
# Install Magento Mess Detector
|
2016-05-20 15:09:31 +00:00
|
|
|
RUN git clone https://github.com/AOEpeople/mpmd.git /usr/local/share/n98-magerun/modules/mpmd
|
2016-05-23 12:40:10 +00:00
|
|
|
|
|
|
|
# Install modman
|
|
|
|
RUN wget -q --no-check-certificate -O - https://raw.github.com/colinmollenhour/modman/master/modman-installer | bash && \
|
|
|
|
mv ~/bin/modman /usr/local/bin/modman
|