diff --git a/README.md b/README.md index 3934e63..da0254c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ```bash -go run main.go -e TEST_ENV=aaa,NEW=abc --configdir ./test-profile/valid-profile --inputsrc /dev/video4 --target_device CPU +go run main.go -e TEST_ENV=aaa -e NEW=abc --configdir ./test-profile/valid-profile --inputsrc /dev/video4 --target_device CPU ``` ## Render mode diff --git a/profile-launcher/Makefile b/profile-launcher/Makefile index 95e0eb1..486ee75 100644 --- a/profile-launcher/Makefile +++ b/profile-launcher/Makefile @@ -1,7 +1,7 @@ # Copyright © 2023 Intel Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -.PHONY: build unit-test build-binary +.PHONY: build build-binary test build: docker build --target bin --output=. . diff --git a/profile-launcher/main b/profile-launcher/main new file mode 100755 index 0000000..a1f5194 Binary files /dev/null and b/profile-launcher/main differ diff --git a/profile-launcher/main.go b/profile-launcher/main.go index d895721..9bd56eb 100644 --- a/profile-launcher/main.go +++ b/profile-launcher/main.go @@ -98,6 +98,10 @@ func InitContainers(configDir string, targetDevice string, inputSrc string, volu } } + if targetDevice != "" { + envOverrides = append(envOverrides, "TARGET_DEVICE="+targetDevice) + } + // Set ENV overrides if any exist if len(envOverrides) > 0 { fmt.Println("Override Env")