mirror of
https://github.com/azaion/detections.git
synced 2026-06-23 14:31:09 +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:
|
services:
|
||||||
mock-loader:
|
mock-loader:
|
||||||
build: ./mocks/loader
|
build:
|
||||||
volumes:
|
context: .
|
||||||
- ./fixtures:/models
|
dockerfile: mocks/loader/Dockerfile
|
||||||
networks:
|
networks:
|
||||||
- e2e-net
|
- e2e-net
|
||||||
|
|
||||||
@@ -74,7 +74,6 @@ services:
|
|||||||
JWT_SECRET: test-secret-e2e-only
|
JWT_SECRET: test-secret-e2e-only
|
||||||
CLASSES_JSON_PATH: /app/classes.json
|
CLASSES_JSON_PATH: /app/classes.json
|
||||||
volumes:
|
volumes:
|
||||||
- ./fixtures/classes.json:/app/classes.json:ro
|
|
||||||
- ./fixtures:/media:ro
|
- ./fixtures:/media:ro
|
||||||
- ./logs:/app/Logs
|
- ./logs:/app/Logs
|
||||||
shm_size: 512m
|
shm_size: 512m
|
||||||
@@ -94,6 +93,7 @@ services:
|
|||||||
- mock-annotations
|
- mock-annotations
|
||||||
environment:
|
environment:
|
||||||
JWT_SECRET: test-secret-e2e-only
|
JWT_SECRET: test-secret-e2e-only
|
||||||
|
MEDIA_DIR: /app/fixtures
|
||||||
volumes:
|
volumes:
|
||||||
- ./fixtures:/media
|
- ./fixtures:/media
|
||||||
- ./results:/results
|
- ./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
|
FROM python:3.11-slim
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN pip install --no-cache-dir flask gunicorn
|
RUN pip install --no-cache-dir flask gunicorn
|
||||||
COPY app.py .
|
COPY mocks/loader/app.py .
|
||||||
|
COPY fixtures /models
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD ["gunicorn", "-b", "0.0.0.0:8080", "-w", "1", "--timeout", "120", "app:app"]
|
CMD ["gunicorn", "-b", "0.0.0.0:8080", "-w", "1", "--timeout", "120", "app:app"]
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
pytest
|
pytest
|
||||||
pytest-csv
|
pytest-csv
|
||||||
requests==2.32.4
|
requests==2.32.4
|
||||||
|
PyJWT==2.12.1
|
||||||
sseclient-py
|
sseclient-py
|
||||||
pytest-timeout
|
pytest-timeout
|
||||||
flask
|
flask
|
||||||
|
|||||||
+1
-1
@@ -54,7 +54,7 @@ done
|
|||||||
|
|
||||||
echo "--- Running: pytest $* -v -x -s --csv=/results/report.csv"
|
echo "--- Running: pytest $* -v -x -s --csv=/results/report.csv"
|
||||||
set +e
|
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=$?
|
EXIT_CODE=$?
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user