Skip to content

Commit c1da1da

Browse files
committed
Replace Lando w/ regular Docker
1 parent 0c2f579 commit c1da1da

File tree

4 files changed

+41
-19
lines changed

4 files changed

+41
-19
lines changed

.docker/php/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

.lando.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ XML mapping xsd schemas are also versioned and can be used by version suffix:
9595

9696
To 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

docker-compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

0 commit comments

Comments
 (0)