File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,19 @@ RUN echo '<?php $settings["project_env"] = PROD_ENV; ' > /opt/drupal/web/sites/d
47
47
rm -rf /opt/drupal/web/sites/default/files; \
48
48
ln -sf /opt/drupal/files /opt/drupal/web/sites/default/files; \
49
49
mkdir -p private; \
50
- # Adding syn directory.
50
+ # Adding sync directory.
51
51
mkdir -p config/sync; \
52
52
# Adjusting ownership
53
- chown -R www-data:www-data /opt/drupal/private /opt/drupal/files /opt/drupal/config/sync /opt/drupal/tmp; \
53
+ chown -R www-data:www-data /opt/drupal/private /opt/drupal/files /opt/drupal/config/sync /opt/drupal/tmp /opt/drupal/logs ; \
54
54
chmod g+s -R /opt/drupal/private /opt/drupal/files /opt/drupal/config/sync
55
55
56
56
# Adding custom apache configuration with PHP value and log settings.
57
57
COPY apache/000-default.conf /etc/apache2/sites-enabled/000-default.conf
58
58
59
+ # Addjusting output channels for access and error log.
60
+ RUN ln -sf /dev/stderr /var/log/apache2/error.log; \
61
+ ln -sf /dev/stdout /var/log/apache2/access.log; \
62
+ ln -sf /dev/stdout /var/log/apache2/other_vhosts_access.log
63
+
59
64
# Adding Drupal settings.
60
65
COPY settings/prod.settings.php /opt/drupal/web/sites/default/
Original file line number Diff line number Diff line change 27
27
php_value html_errors 0
28
28
php_value display_errors 0
29
29
php_admin_value error_reporting 1023
30
- php_value error_log /opt/drupal/logs/php.log
30
+ php_value error_log /dev/stderr
31
31
32
32
php_value session.save_path /opt/drupal/sessions
33
33
php_admin_value upload_max_filesize 150
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ if [ $# -eq 0 ]; then
7
7
exit 0
8
8
fi
9
9
10
+ echo " Updating base image"
11
+ docker image pull drupal:8-apache-buster
12
+
10
13
docker build ./ --build-arg OS2WEB8_TAG=$1 -t dkbellcom/os2web8:$1
11
14
12
15
if [ " $2 " = " --push" ]; then
You can’t perform that action at this time.
0 commit comments