mirror of
https://github.com/azaion/detections.git
synced 2026-04-22 10:16:31 +00:00
73 lines
1.4 KiB
YAML
73 lines
1.4 KiB
YAML
name: detections-e2e
|
|
|
|
services:
|
|
mock-loader:
|
|
build: ./mocks/loader
|
|
volumes:
|
|
- ./fixtures:/models
|
|
networks:
|
|
- e2e-net
|
|
|
|
mock-annotations:
|
|
build: ./mocks/annotations
|
|
networks:
|
|
- e2e-net
|
|
|
|
detections:
|
|
profiles:
|
|
- cpu
|
|
build:
|
|
context: ..
|
|
dockerfile: Dockerfile
|
|
depends_on:
|
|
- mock-loader
|
|
- mock-annotations
|
|
environment:
|
|
LOADER_URL: http://mock-loader:8080
|
|
ANNOTATIONS_URL: http://mock-annotations:8081
|
|
volumes:
|
|
- ./fixtures/classes.json:/app/classes.json
|
|
- ./logs:/app/Logs
|
|
networks:
|
|
- e2e-net
|
|
|
|
detections-gpu:
|
|
profiles:
|
|
- gpu
|
|
build:
|
|
context: ..
|
|
dockerfile: Dockerfile.gpu
|
|
runtime: nvidia
|
|
depends_on:
|
|
- mock-loader
|
|
- mock-annotations
|
|
environment:
|
|
LOADER_URL: http://mock-loader:8080
|
|
ANNOTATIONS_URL: http://mock-annotations:8081
|
|
volumes:
|
|
- ./fixtures/classes.json:/app/classes.json
|
|
- ./logs:/app/Logs
|
|
networks:
|
|
e2e-net:
|
|
aliases:
|
|
- detections
|
|
|
|
e2e-runner:
|
|
profiles:
|
|
- cpu
|
|
- gpu
|
|
build: .
|
|
depends_on:
|
|
- mock-loader
|
|
- mock-annotations
|
|
volumes:
|
|
- ./fixtures:/media
|
|
- ./results:/results
|
|
networks:
|
|
- e2e-net
|
|
command: ["pytest", "--csv=/results/report.csv", "-v", "-x"]
|
|
|
|
networks:
|
|
e2e-net:
|
|
driver: bridge
|