Skip to content

Commit

Permalink
Dealing with permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrama committed Dec 9, 2024
1 parent 6071acc commit 04783e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ RUN apt-get update \
&& chown www-data:www-data /var/cache/apache2/mod_auth_openidc/oidc-sessions /var/cache/apache2/twig \
&& docker-php-ext-install pdo_mysql \
&& php -r "copy('https://getcomposer.org/download/latest-stable/composer.phar', '/usr/local/bin/composer');" \
&& chmod +x /usr/local/bin/composer
&& chmod +x /usr/local/bin/composer \
&& git config --global --add safe.directory /var/www

COPY auth_openidc.conf /etc/apache2/mods-enabled/auth_openidc.conf
COPY composer.lock composer.json /var/www/
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ docker-compose build
# Start the webserver and database server
docker-compose up -d
# Composer install for the development volume
docker-compose run --rm web bash -c 'cd /var/www && composer install'
# Optional: Load data
docker-compose exec -T db bash -c 'mysql -u "$MARIADB_USER" -p"$MARIADB_PASSWORD" "$MARIADB_DATABASE"' < data.sql
```

0 comments on commit 04783e8

Please sign in to comment.