This repository was archived by the owner on Jul 1, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 11 files changed +37
-6
lines changed
Expand file tree Collapse file tree 11 files changed +37
-6
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ RUN chmod a+x -R /docker-entrypoint-init.d
119119COPY bashrc-root /root/.bashrc
120120
121121EXPOSE 80
122- WORKDIR /var/www/html
122+ WORKDIR /var/www
123123USER apache
124124
125125# Copy the user bashrc file.
Original file line number Diff line number Diff line change 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 ' ,
Original file line number Diff line number Diff line change 11PS1="\u@flight-deck-web:\w# "
2+
3+ APACHE_DOCROOT_DIR="${APACHE_DOCROOT_DIR:-/var/www/html}"
4+ cd $APACHE_DOCROOT_DIR
Original file line number Diff line number Diff line change 11PS1="\u@flight-deck-web:\w\$ "
2+
3+ APACHE_DOCROOT_DIR="${APACHE_DOCROOT_DIR:-/var/www/html}"
4+ cd $APACHE_DOCROOT_DIR
Original file line number Diff line number Diff line change 44 *
55 * Additional Drush startup customization.
66 */
7+
8+ $ apache_docroot_dir = getenv ('APACHE_DOCROOT_DIR ' );
9+
710if (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}
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ RUN chmod a+x -R /docker-entrypoint-init.d
138138COPY bashrc-root /root/.bashrc
139139
140140EXPOSE 80 443
141- WORKDIR /var/www/html
141+ WORKDIR /var/www
142142USER apache
143143
144144# Copy the user bashrc file.
Original file line number Diff line number Diff line change 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 ' ,
Original file line number Diff line number Diff line change 11PS1="\u@flight-deck-web:\w# "
2+
3+ APACHE_DOCROOT_DIR="${APACHE_DOCROOT_DIR:-/var/www/html}"
4+ cd $APACHE_DOCROOT_DIR
Original file line number Diff line number Diff line change 11PS1="\u@flight-deck-web:\w\$ "
2+
3+ APACHE_DOCROOT_DIR="${APACHE_DOCROOT_DIR:-/var/www/html}"
4+ cd $APACHE_DOCROOT_DIR
Original file line number Diff line number Diff line change 44 *
55 * Additional Drush startup customization.
66 */
7+
8+ $ apache_docroot_dir = getenv ('APACHE_DOCROOT_DIR ' );
9+
710if (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}
You can’t perform that action at this time.
0 commit comments