blob: a33f0d43144673757d6190ca9e68d6d8b2e0a0cf [file] [log] [blame]
sousaedu51cc9c42021-04-09 18:03:02 +02001# This file is intended to be used by the developer in the local machine
2# in order to run the tests in isolation
3# To do so, cd into osm_ro and run:
4# docker-compose -f ../docker/tests.yml run --rm tox -c <folder to be tested, eg. wim>
5version: '2'
6services:
7 test-db:
8 image: mysql:5
9 container_name: test-db
10 restart: always
11 environment:
12 - MYSQL_ROOT_PASSWORD=osm4u
13 - MYSQL_USER=mano
14 - MYSQL_PASSWORD=manopw
15 - MYSQL_DATABASE=mano_db
16 tox:
17 container_name: tox
18 depends_on:
19 - test-db
20 build:
21 context: ../
22 dockerfile: docker/tests.dockerfile
23 restart: always
24 environment:
25 - RO_DB_ROOT_PASSWORD=osm4u
26 - TEST_DB_HOST=test-db
27 - TEST_DB_USER=mano
28 - TEST_DB_PASSWORD=manopw
29 - TEST_DB_DATABASE=mano_db
30 ports:
31 - "9090:9090"
32 volumes:
33 - ..:/opt/openmano
34 - /tmp/osm/openmano/logs:/var/log/osm
35 entrypoint:
36 - tox
37 working_dir: /opt/openmano/osm_ro