Add dockerfile for local development

This commit is contained in:
2021-08-11 22:28:48 +02:00
parent 06bfa81d6e
commit e1686cd8c5
4 changed files with 41 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ On Windows, you have to perform a `composer install` manually beforehand. Make s
### Dependency management
`dev.sh` will ensure the git submodules have been pulled, then download the `composer` package manager to the php archive file `composer.phar` and run it.
Composer will check for the php extension `pdo_sqlite` which must be enabled on your system. This usually includes installing a php-sqlite3 package and enabling it in /etc/php/php.ini:
Composer will check for the php extension `pdo_sqlite` which must be enabled on your system. This usually includes installing a php-sqlite3 package and enabling it in `/etc/php/php.ini`:
[PHP]
extension=pdo_sqlite
@@ -35,4 +35,16 @@ Composer is used as such:
php composer.phar update
php composer.phar install
### Docker
We provide a simple docker-compose setup for local development.
First ensure that docker is running:
sudo systemctl start docker
then
DOCKER_USER=$(id -u):$(id -g) docker-compose up
## Hosting