Skip to content

Run vs-code in docker!

License

Notifications You must be signed in to change notification settings

thbley/ide_in_docker

Repository files navigation

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)