Stolz / DockerLumen

Sample Lumen Application running on Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DockerLumen

Sample Lumen application running on Docker services.

Docker containers are based on Alpine Linux images which makes them smaller, more secure and more resource efficient.

The application implements an API for finding the shortest driving route using Google Maps API. The routes are processed asynchronously using Lumen queues.

Requirementes

You will need to install Git, Docker and Docker Compose.

Set up

Clone this repository

git clone https://github.com/Stolz/DockerLumen.git && cd DockerLumen

Install Lumen dependencies

docker run --rm -it -v $PWD/lumen:/lumen -u $(id -u):$(id -g) composer install --ignore-platform-reqs --no-dev --working-dir=/lumen

Build images

docker-compose build

Start containers

docker-compose up

Debugging

These two files have been included only for debugging purposes and they should be deleted for production environment:

Testing

Install Lumen testing dependencies

docker run --rm -it -v $PWD/lumen:/lumen -u $(id -u):$(id -g) composer install --ignore-platform-reqs --working-dir=/lumen

Execute automatic tests

docker exec -it dockerlumen_app_1 ./vendor/bin/phpunit

About

Sample Lumen Application running on Docker


Languages

Language:PHP 49.4%Language:HTML 46.6%Language:Shell 3.0%Language:CSS 1.0%