-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
37 lines (37 loc) · 993 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '2'
services:
base:
build: .
image: collectd-docker-stats-plugin:base
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- .:/opt/collectd-docker-stats-plugin
command: sleep 60
style:
extends:
service: base
command: flake8 --ignore E501 .
test:
depends_on:
- base
extends:
service: base
command: python -m unittest discover -p '*Test.py' tests
unit-test:
extends:
service: base
command: python -m unittest discover -p '*Test.py' tests/unit
integration-test_docker:
depends_on:
- base
extends:
service: base
command: python -m unittest discover -p '*Test.py' tests/integration_docker
integration-test_collectd:
extends:
service: base
command: collectd -f -T -C /opt/collectd-docker-stats-plugin/collectd.conf
integration-test_collectd-custom:
extends:
service: base
command: collectd -f -C /opt/collectd-docker-stats-plugin/collectd.conf