Skip to content
This repository was archived by the owner on Jul 1, 2021. It is now read-only.

Commit 86328cb

Browse files
committed
Merge branch 'release/2.2.2'
2 parents 699e0d8 + 2bc1869 commit 86328cb

File tree

11 files changed

+37
-6
lines changed

11 files changed

+37
-6
lines changed

.docker/apache/5.6/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ RUN chmod a+x -R /docker-entrypoint-init.d
119119
COPY bashrc-root /root/.bashrc
120120

121121
EXPOSE 80
122-
WORKDIR /var/www/html
122+
WORKDIR /var/www
123123
USER apache
124124

125125
# Copy the user bashrc file.

.docker/apache/5.6/aliases.drushrc.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
* Contains Drush site alias definitions.
66
*/
77

8+
$apache_docroot_dir = getenv('APACHE_DOCROOT_DIR');
9+
810
/**
911
* Alias for the preview environment.
1012
*/
1113
$aliases['docker'] = array (
12-
'root' => '/var/www/html',
14+
'root' => empty($apache_docroot_dir) ? '/var/www/html' : $apache_docroot_dir,
1315
'uri' => 'http://docker.test',
1416
'path-aliases' => array(
1517
'%files' => 'sites/default/files',

.docker/apache/5.6/bashrc-root

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
PS1="\u@flight-deck-web:\w# "
2+
3+
APACHE_DOCROOT_DIR="${APACHE_DOCROOT_DIR:-/var/www/html}"
4+
cd $APACHE_DOCROOT_DIR

.docker/apache/5.6/bashrc-user

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
PS1="\u@flight-deck-web:\w\$ "
2+
3+
APACHE_DOCROOT_DIR="${APACHE_DOCROOT_DIR:-/var/www/html}"
4+
cd $APACHE_DOCROOT_DIR

.docker/apache/5.6/drushrc.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
*
55
* Additional Drush startup customization.
66
*/
7+
8+
$apache_docroot_dir = getenv('APACHE_DOCROOT_DIR');
9+
710
if (file_exists('/.dockerenv')) {
811
$options['uri'] = 'http://docker.test';
9-
$options['root'] = '/var/www/html';
12+
$options['root'] = empty($apache_docroot_dir) ? '/var/www/html' : $apache_docroot_dir;
1013
}

.docker/apache/7.0/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ RUN chmod a+x -R /docker-entrypoint-init.d
138138
COPY bashrc-root /root/.bashrc
139139

140140
EXPOSE 80 443
141-
WORKDIR /var/www/html
141+
WORKDIR /var/www
142142
USER apache
143143

144144
# Copy the user bashrc file.

.docker/apache/7.0/aliases.drushrc.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
* Contains Drush site alias definitions.
66
*/
77

8+
$apache_docroot_dir = getenv('APACHE_DOCROOT_DIR');
9+
810
/**
911
* Alias for the preview environment.
1012
*/
1113
$aliases['docker'] = array (
12-
'root' => '/var/www/html',
14+
'root' => empty($apache_docroot_dir) ? '/var/www/html' : $apache_docroot_dir,
1315
'uri' => 'http://docker.test',
1416
'path-aliases' => array(
1517
'%files' => 'sites/default/files',

.docker/apache/7.0/bashrc-root

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
PS1="\u@flight-deck-web:\w# "
2+
3+
APACHE_DOCROOT_DIR="${APACHE_DOCROOT_DIR:-/var/www/html}"
4+
cd $APACHE_DOCROOT_DIR

.docker/apache/7.0/bashrc-user

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
PS1="\u@flight-deck-web:\w\$ "
2+
3+
APACHE_DOCROOT_DIR="${APACHE_DOCROOT_DIR:-/var/www/html}"
4+
cd $APACHE_DOCROOT_DIR

.docker/apache/7.0/drushrc.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
*
55
* Additional Drush startup customization.
66
*/
7+
8+
$apache_docroot_dir = getenv('APACHE_DOCROOT_DIR');
9+
710
if (file_exists('/.dockerenv')) {
811
$options['uri'] = 'http://docker.test';
9-
$options['root'] = '/var/www/html';
12+
$options['root'] = empty($apache_docroot_dir) ? '/var/www/html' : $apache_docroot_dir;
1013
}

0 commit comments

Comments
 (0)