tobiko/docker-compose.yml
Federico Ressi f48fd21194 Deploy OpenShift InfraRed files from Tobiko InfraRed plugin
Change-Id: I2a7d09d71a815c052e8a5e8dbb481d35904df234
2022-01-19 15:10:15 +00:00

98 lines
2.0 KiB
YAML

---
version: '3.4'
services:
py3:
build:
context: .
target: test
hostname: tobiko
environment:
TOBIKO_TEST_PATH: tobiko/tests/unit
TOBIKO_REPORT_NAME: tobiko_results_py3
volumes:
- ./report:/report
- .:/tobiko
- ~/.ssh:/root/.ssh:ro
lower-constraints:
extends:
service: py3
build:
args:
base_image: lower-constraints
environment:
TOBIKO_REPORT_NAME: tobiko_results_lower_constraints
py39:
extends:
service: py3
build:
args:
base_image: py39
environment:
TOBIKO_REPORT_NAME: tobiko_results_py39
py310:
extends:
service: py3
build:
args:
base_image: py310
environment:
TOBIKO_REPORT_NAME: tobiko_results_py310
linters:
extends:
service: py3
build:
target: linters
functional:
extends:
service: py3
environment:
TOBIKO_TEST_PATH: tobiko/tests/functional
TOBIKO_REPORT_NAME: tobiko_results_functional
create-workloads:
extends:
service: py3
environment:
TOBIKO_TEST_PATH: tobiko/tests/scenario
TOBIKO_REPORT_NAME: tobiko_results_create_workloads
disrupt-services:
extends:
service: py3
environment:
TOBIKO_TEST_PATH: tobiko/tests/faults
TOBIKO_REPORT_NAME: tobiko_results_disrupt_services
verify-workloads:
extends:
service: create-workloads
environment:
TOBIKO_PREVENT_CREATE: 'true'
TOBIKO_REPORT_NAME: tobiko_results_verify_workloads
verify-services:
extends:
service: py3
environment:
TOBIKO_TEST_PATH: tobiko/tests/sanity
TOBIKO_REPORT_NAME: tobiko_results_verify_services
infrared:
build:
context: infrared_plugin
target: run
hostname: infrared
environment:
IR_EXTRA_ARGS: --tobiko-src-dir /tobiko
volumes:
- ./report:/report
- .:/tobiko:ro
- ./infrared_plugin:/tobiko-infrared:ro
- ~/.ssh:/root/.ssh:ro