Skip to content

Build and Run in Docker

Filipe Correa edited this page Aug 11, 2020 · 1 revision

Docker Compose can be used to build and run this application and all the different tests in separate Docker containers.

Prerequisites

Build and Run

Build and run the project in Docker:

docker-compose up -d

Tests

Code style, unit, integration, security and performance tests will run automatically in separate Docker containers.

Check which containers are running with:

docker ps

Code coverage

When libras_test_cover container finishes its execution, access generated code coverage report on coverage directory or open coverage/lcov-report/index.html in a web browser.

Performance

When libras_test_performance container finishes its execution, access generated performance report on logs/performance.log or run:

npm run performance:report

logs/performance.log.html should open in a web browser.

Shutdown and cleanup

Remove all containers and network:

docker-compose down
Clone this wiki locally