mirror of
https://github.com/azaion/detections.git
synced 2026-06-23 15:51:08 +00:00
Compare commits
8 Commits
dev
...
6bc59bb61b
| Author | SHA1 | Date | |
|---|---|---|---|
| 6bc59bb61b | |||
| 71d4b5309f | |||
| d405c03055 | |||
| 242fb11bbe | |||
| e1cc76e616 | |||
| a7c055a373 | |||
| 7db192a967 | |||
| 9f073293cc |
@@ -0,0 +1,15 @@
|
||||
when:
|
||||
event: [manual]
|
||||
|
||||
labels:
|
||||
platform: arm64
|
||||
|
||||
steps:
|
||||
- name: e2e-smoke-jetson
|
||||
image: docker
|
||||
commands:
|
||||
- apk add --no-cache bash docker-cli-compose
|
||||
- cd e2e
|
||||
- E2E_PROFILE=jetson bash run_test.sh tests/test_health_engine.py
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
@@ -2,9 +2,9 @@ name: detections-e2e
|
||||
|
||||
services:
|
||||
mock-loader:
|
||||
build: ./mocks/loader
|
||||
volumes:
|
||||
- ./fixtures:/models
|
||||
build:
|
||||
context: .
|
||||
dockerfile: mocks/loader/Dockerfile
|
||||
networks:
|
||||
- e2e-net
|
||||
|
||||
@@ -74,7 +74,6 @@ services:
|
||||
JWT_SECRET: test-secret-e2e-only
|
||||
CLASSES_JSON_PATH: /app/classes.json
|
||||
volumes:
|
||||
- ./fixtures/classes.json:/app/classes.json:ro
|
||||
- ./fixtures:/media:ro
|
||||
- ./logs:/app/Logs
|
||||
shm_size: 512m
|
||||
@@ -94,6 +93,7 @@ services:
|
||||
- mock-annotations
|
||||
environment:
|
||||
JWT_SECRET: test-secret-e2e-only
|
||||
MEDIA_DIR: /app/fixtures
|
||||
volumes:
|
||||
- ./fixtures:/media
|
||||
- ./results:/results
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
Binary file not shown.
@@ -1,6 +1,7 @@
|
||||
FROM python:3.11-slim
|
||||
WORKDIR /app
|
||||
RUN pip install --no-cache-dir flask gunicorn
|
||||
COPY app.py .
|
||||
COPY mocks/loader/app.py .
|
||||
COPY fixtures /models
|
||||
EXPOSE 8080
|
||||
CMD ["gunicorn", "-b", "0.0.0.0:8080", "-w", "1", "--timeout", "120", "app:app"]
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
pytest
|
||||
pytest-csv
|
||||
requests==2.32.4
|
||||
PyJWT==2.12.1
|
||||
sseclient-py
|
||||
pytest-timeout
|
||||
flask
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ done
|
||||
|
||||
echo "--- Running: pytest $* -v -x -s --csv=/results/report.csv"
|
||||
set +e
|
||||
$COMPOSE run --rm --no-deps e2e-runner pytest "$@" -v -x -s --csv=/results/report.csv
|
||||
$COMPOSE run --rm --build --no-deps e2e-runner pytest "$@" -v -x -s --csv=/results/report.csv
|
||||
EXIT_CODE=$?
|
||||
set -e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user