Skip to content

Commit 0e56918

Browse files
Merge pull request #1228 from openml/bugfix/docker_writing_logs
Allow the docker user to write logs
2 parents 2e328f6 + 88f3292 commit 0e56918

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docker/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ RUN docker-php-source extract \
44
&& docker-php-ext-install mysqli \
55
&& docker-php-source delete
66

7-
# Java is necessery for the direct calls to the evaluation engine (in Api_splits.php)
7+
# Java is necessary for the direct calls to the evaluation engine (in Api_splits.php)
88
RUN apt update \
99
&& apt install -y --no-install-recommends openjdk-11-jre
1010

1111
COPY . /var/www/openml
1212
RUN mv /var/www/openml/openml_OS/config/BASE_CONFIG-BLANK.php /var/www/openml/openml_OS/config/BASE_CONFIG.php
1313

14-
RUN mkdir -p /var/www/openml/logs
15-
RUN mkdir /data
16-
14+
RUN mkdir -p /var/www/openml/logs && \
15+
mkdir -p /var/www/data/log && \
16+
mkdir /data && \
17+
chown -R www-data:www-data /var/www/data
1718

1819
COPY docker/config/*.load /etc/apache2/mods-enabled/
1920
COPY docker/config/api.conf /etc/apache2/sites-enabled/000-default.conf

0 commit comments

Comments
 (0)