File tree Expand file tree Collapse file tree 4 files changed +41
-19
lines changed Expand file tree Collapse file tree 4 files changed +41
-19
lines changed Original file line number Diff line number Diff line change 1+ FROM php:7.2-cli
2+
3+ COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
4+
5+ RUN apt-get update \
6+ && apt-get install -y git zip unzip zlib1g-dev libzip-dev \
7+ && apt-get -y autoremove \
8+ && apt-get clean \
9+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
10+
11+ RUN docker-php-ext-install zip \
12+ && docker-php-ext-install pcntl \
13+ && docker-php-ext-install bcmath
14+
15+ RUN pecl install mongodb \
16+ && docker-php-ext-enable mongodb
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -95,10 +95,11 @@ XML mapping xsd schemas are also versioned and can be used by version suffix:
9595
9696To set up and run the tests, follow these steps:
9797
98- - Install [ Lando] ( https://docs.devwithlando.io/ ) , a Docker-based dev environment tool
99- - Run ` lando start ` from the project root
100- - Make sure you ` composer install ` project dependencies
101- - Run ` lando php bin/phpunit -c tests `
98+ - Install [ Docker] ( https://www.docker.com/ ) and ensure you have ` docker-compose `
99+ - From the project root, run ` docker-compose up -d ` to start containers in daemon mode
100+ - Enter the container via ` docker-compose exec php bash ` and navigate to the root directory: ` cd /var/www `
101+ - Install Composer dependencies via ` composer install `
102+ - Run the tests: ` bin/phpunit -c tests/ `
102103
103104### Running the Example
104105
Original file line number Diff line number Diff line change 1+ services :
2+ php :
3+ build : .docker/php
4+ volumes :
5+ - .:/var/www
6+ environment :
7+ MONGODB_SERVER : ' mongodb://mongodb:27017'
8+ tty : true
9+ stdin_open : true
10+
11+ mysql :
12+ image : mysql:8.0
13+ environment :
14+ MYSQL_ROOT_PASSWORD : de_root_password
15+ MYSQL_DATABASE : de_testing
16+ MYSQL_USER : de_user
17+ MYSQL_PASSWORD : de_password
18+
19+ mongodb :
20+ image : mongo
You can’t perform that action at this time.
0 commit comments