-
Mac: Download the installer from Docker
-
Linux:
sudo apt update && sudo apt install docker docker-compose
-
To make docker run without sudo execute:
-
Create the docker group if it doesn't already exist:
sudo groupadd docker
-
Add your user to the docker group:
sudo usermod -aG docker $USER
-
Logout and login again
-
-
-
Copy the default docker-compose configuration and give custom values to the variables in the file.
cp ./docker-compose.override.yml.dist ./docker-compose.override.yml
-
Update the
.env
file and replace the placeholders of the database settings with the right values:DATABASE_URL=mysql://db_user:db_password@mysql:3306/db_name
Note that the host is
mysql
, which matches the container network alias.
docker-compose up -d
docker-compose run composer install
docker-compose run cli bin/console doctrine:schema:create
-
Create a local phpunit configuration and update the env variables:
cp phpunit.xml.dist phpunit.xml
-
Run all the tests (with coverage):
docker-compose run cli vendor/bin/phpunit --coverage-html var/coverage tests/Werkspot/JiraDashboard
Load http://localhost on your browser