1 # Local setup of services for tests
3 Some tests and libs require specific external services like postgres.
4 To simplify the automation and the setup, we just assume these services are accessible at specific hostnames.
6 When running and testing nit within a docker, it is easy to compose/link nit with other dockers/services.
7 See also .gitlab-ci.yml
10 $ docker run --link postgres [...]
13 When running and testing on a local host, one can setup those services locally then add aliases for localhost in `/etc/hosts`.
21 An other way is to run/test on a local host and have the services running in dockers.
23 Because accessing a specific container by its name is cumbersome, a proposed way is to:
25 * run these services with specific and fixed IPs
26 * add these IPs to `/etc/hosts`
29 $ cd misc/docker/ci-local
30 $ docker-compose up -d