Commit d8499395 authored by Ernesto Rodriguez Ortiz's avatar Ernesto Rodriguez Ortiz
Browse files

Using composer.json to install drush.

parent bee2aa59
......@@ -27,11 +27,12 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install wget git mysql-client mysq
RUN pear channel-discover pear.phpmd.org && pear channel-discover 'pear.pdepend.org' && pear install --alldeps 'phpmd/PHP_PMD'
RUN wget https://phar.phpunit.de/phpcpd.phar && chmod +x phpcpd.phar && mv phpcpd.phar /usr/local/bin/phpcpd
RUN pecl install -Z uploadprogress && echo "extension=uploadprogress.so" >> /etc/php5/apache2/conf.d/uploadprogress.ini && ln -s /etc/php5/mods-available/uploadprogress.ini /etc/php5/apache2/conf.d/20-uploadprogress.ini
RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer
COPY composer.json /opt/drupalextension/composer.json
RUN mkdir /opt/drupalextension/ && cd /opt/drupalextension/ && composer install && ln -s /opt/drupalextension/bin/behat /usr/local/bin/behat
RUN mkdir /opt/drush/ && composer require drush/drush:7.x && ln -s /opt/drush/bin/drush /usr/local/bin/drush && /usr/local/bin/drush dl site_audit registry_rebuild -y
RUN cd /root/.drush && git clone https://github.com/sfl-drupal/po-import.git && /usr/local/bin/drush cc drush
RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer && mkdir /opt/drupalextension && mkdir /opt/drush
COPY drupal-extension-composer.json /opt/drupalextension/composer.json
RUN cd /opt/drupalextension/ && composer install && ln -s /opt/drupalextension/bin/behat /usr/local/bin/behat
COPY drush-composer.json /opt/drush/composer.json
RUN cd /opt/drush && composer install && ln -s /opt/drush/bin/drush /usr/local/bin/drush && drush dl site_audit registry_rebuild -y
RUN cd /root/.drush && git clone https://github.com/sfl-drupal/po-import.git && /opt/drush/bin/drush cc drush
# Make mysql listen on the outside
RUN sed -i "s/^bind-address/#bind-address/" /etc/mysql/my.cnf
......
{
"require": {
"drush/drush": "~7.0"
},
"config": {
"bin-dir": "bin/"
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment