Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.15 KB

readme.md

File metadata and controls

37 lines (23 loc) · 1.15 KB

IDE in Docker

Actions Build Status

IDE in Docker

Setup

# build containers
docker-compose build --build-arg UID=$(id -u)

# setup composer
mkdir -m 0777 service/src/vendor
docker-compose -f docker-compose.yml -f docker-compose-tasks.yml run -u $(id -u) --rm composer

# start containers
docker-compose up

# stop containers
docker-compose down

Run static code analyzers

docker-compose -f docker-compose.yml -f docker-compose-tasks.yml run -u $(id -u) --rm psalm
docker-compose -f docker-compose.yml -f docker-compose-tasks.yml run -u $(id -u) --rm phpcsfixer

Run tests

docker-compose -f docker-compose.yml -f docker-compose-tasks.yml run -u $(id -u) --rm phpunit

URLs

http://127.0.0.1:8000/?folder=/var/www
(VS-Code IDE, hit Crtl+Shift+t to run tasks)

http://127.0.0.1:8080/service (API endpoint, index.php)