forked from nautobot/nautobot-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.36 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
x-args:
&args
PYTHON_VER: ${PYTHON_VER}
ANSIBLE_SANITY_ARGS: ${ANSIBLE_SANITY_ARGS:-}
ANSIBLE_UNIT_ARGS: ${ANSIBLE_UNIT_ARGS:-}
SKIP_LINT_TESTS: ${SKIP_LINT_TESTS:-}
SKIP_SANITY_TESTS: ${SKIP_SANITY_TESTS:-}
SKIP_UNIT_TESTS: ${SKIP_UNIT_TESTS:-}
SKIP_INVENTORY_TESTS: ${SKIP_INVENTORY_TESTS:-}
SKIP_REGRESSION_TESTS: ${SKIP_REGRESSION_TESTS:-}
# Build block with context and target default
x-build:
&build
args: *args
context: .
target: unittests
x-service:
&service
environment:
ANSIBLE_INTEGRATION_ARGS: ${ANSIBLE_INTEGRATION_ARGS:-}
ANSIBLE_SANITY_ARGS: ${ANSIBLE_SANITY_ARGS:-}
ANSIBLE_UNIT_ARGS: ${ANSIBLE_UNIT_ARGS:-}
NAUTOBOT_VER: ${NAUTOBOT_VER:-}
OUTPUT_INVENTORY_JSON: ${OUTPUT_INVENTORY_JSON:-}
SKIP_LINT_TESTS: ${SKIP_LINT_TESTS:-}
SKIP_SANITY_TESTS: ${SKIP_SANITY_TESTS:-}
SKIP_UNIT_TESTS: ${SKIP_UNIT_TESTS:-}
SKIP_INVENTORY_TESTS: ${SKIP_INVENTORY_TESTS:-}
SKIP_REGRESSION_TESTS: ${SKIP_REGRESSION_TESTS:-}
services:
unit:
<<: *service
build:
<<: *build
lint:
<<: *service
build:
<<: *build
target: lint
integration:
<<: *service
build:
<<: *build
target: integration
volumes:
# This allows us to update the inventory files from inside the container
- ${PWD}/tests/integration/targets/inventory/files/:/tmp/inventory_files/