Skip to content

Commit ab4b9f3

Browse files
committed
Bundle wp-cli, drush and terminus
1 parent 42ed50b commit ab4b9f3

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

Dockerfile

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,28 @@ RUN apk add --no-cache mysql-client \
226226
su-exec \
227227
rsync
228228
RUN export PATH="~/.composer/vendor/bin:$PATH" && \
229-
echo "sendmail_path=`which true`" >> ${php_vars}
229+
echo "sendmail_path=`which true`" >> ${php_vars} \
230+
# Get WP CLI
231+
&& curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
232+
&& chmod +x wp-cli.phar \
233+
&& mv wp-cli.phar /usr/local/bin/wp \
234+
235+
# Get Drush
236+
&& wget http://files.drush.org/drush.phar \
237+
&& php drush.phar core-status \
238+
&& chmod +x drush.phar \
239+
&& mv drush.phar /usr/local/bin/drush \
240+
241+
# Get Terminus
242+
&& mkdir -p /var/www/.composer \
243+
&& cd /var/www/.composer \
244+
&& curl -O https://raw.githubusercontent.com/pantheon-systems/terminus-installer/master/builds/installer.phar \
245+
&& php installer.phar install \
246+
247+
# Get Drupal console
248+
&& curl https://drupalconsole.com/installer -L -o drupal.phar \
249+
&& chmod +x drupal.phar \
250+
&& mv drupal.phar /usr/local/bin/drupal
230251

231252
# Add Scripts
232253
ADD scripts/start.sh /start.sh

0 commit comments

Comments
 (0)