Skip to content

Commit

Permalink
SECURITY-7454: dockerize env to be able to run tests locally
Browse files Browse the repository at this point in the history
  • Loading branch information
dsztanko committed Jun 21, 2022
1 parent ac6f3f0 commit fc44e03
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.PHONY: test

test:
docker-compose run --rm app composer test
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,8 @@ Because of the APCu dependency, install extension before `composer install`
```bash
printf "\n" | pecl install apcu
```

### Local development
```bash
make test
```
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '3'
services:
app:
image: composer:2.3.7
working_dir: /home/app/src
volumes:
- .:/home/app/src

0 comments on commit fc44e03

Please sign in to comment.