Skip to content

Commit

Permalink
fix: Target device ENV now set
Browse files Browse the repository at this point in the history
Signed-off-by: Brian McGinn <brian.mcginn@intel.com>
  • Loading branch information
brian-intel committed Jan 18, 2024
1 parent 9b8c7e4 commit 0055d40
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion profile-launcher/Makefile
Original file line number Diff line number Diff line change
@@ -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=. .
Expand Down
Binary file added profile-launcher/main
Binary file not shown.
4 changes: 4 additions & 0 deletions profile-launcher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 0055d40

Please sign in to comment.