From 441fed5547ea93fa4e7377ff54975d281d226f86 Mon Sep 17 00:00:00 2001 From: Brian McGinn Date: Fri, 7 Jun 2024 10:24:30 -0700 Subject: [PATCH] feat: Add headless version of run-demo Signed-off-by: Brian McGinn --- Makefile | 8 +++++++- src/docker-compose.yml | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0e448ca3..ff2564d5 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ .PHONY: build build-realsense run down .PHONY: build-telegraf run-telegraf run-portainer clean-all clean-results clean-telegraf clean-models down-portainer -.PHONY: download-models clean-test run-demo stop-demo +.PHONY: download-models clean-test run-demo run-headless MKDOCS_IMAGE ?= asc-mkdocs PIPELINE_COUNT ?= 1 @@ -53,6 +53,12 @@ run-demo: | download-models update-submodules download-sample-videos @echo Running automated self checkout pipeline $(MAKE) run-render-mode +run-headless: | download-models update-submodules download-sample-videos + @echo "Building automated self checkout app" + $(MAKE) build + @echo Running automated self checkout pipeline + $(MAKE) run + build-benchmark: cd performance-tools && $(MAKE) build-benchmark-docker diff --git a/src/docker-compose.yml b/src/docker-compose.yml index 22c9e879..5d35d111 100644 --- a/src/docker-compose.yml +++ b/src/docker-compose.yml @@ -12,7 +12,7 @@ services: container_name: camera-simulator image: aler9/rtsp-simple-server ports: - - "127.0.0.1:8554:8554" + - "8554:8554" camera-simulator0: image: openvino/ubuntu20_data_runtime:2021.4.2 container_name: camera-simulator0 @@ -41,6 +41,7 @@ services: network_mode: "host" entrypoint: /script/entrypoint.sh --pipeline_script_choice ${PIPELINE_SCRIPT:-yolov5s.sh} privileged: true + ipc: "host" env_file: - ./res/gst.env - ${DEVICE_ENV:-res/all-cpu.env}