Skip to content

Commit 39802df

Browse files
committed
Add default database URL to drushrc
1 parent 45ee98b commit 39802df

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,17 @@ COPY root/etc/nginx/nginx.conf /etc/nginx/
127127
COPY root/etc/php/conf.d/*.ini /etc/php/conf.d/
128128
COPY root/etc/php-fpm.conf /etc/
129129

130-
RUN mkdir -p /etc/drush
131-
COPY root/etc/drush/drushrc.php /etc/drush/
132-
133130
RUN mkdir -p /var/drupal/www
134131
COPY root/var/drupal/www/index.php /var/drupal/www/
135132
RUN chown -R drupal:drupal /var/drupal
136133

137-
EXPOSE 8080
138134
USER drupal
139-
WORKDIR /var/drupal
135+
140136
ENV PATH="/home/drupal/.composer/vendor/bin:${PATH}"
137+
138+
RUN mkdir -p /home/drupal/.drush
139+
COPY root/home/drupal/.drush/drushrc.php /home/drupal/.drush/
140+
141+
EXPOSE 8080
142+
WORKDIR /var/drupal
141143
CMD ["supervisord", "-n", "-c", "/etc/supervisord.conf"]

root/etc/drush/drushrc.php

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
$options['r'] = '/var/drupal/www';
3+
$command_specific['site-install']['db-url'] = 'mysql://root@db/drupal';

0 commit comments

Comments
 (0)