Skip to content

Commit 7e3d709

Browse files
[IRD] Updated setup.sh and doc fixes in run-multiple-apps.md (#1813)
1 parent e85d377 commit 7e3d709

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

manufacturing-ai-suite/industrial-edge-insights-vision/docs/user-guide/pallet-defect-detection/how-to-guides/run-multiple-apps.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ This tutorial demonstrates how to simultaneously deploy and manage multiple indu
5353

5454
> **Note:** A sample configuration file `sample_config.yml` is provided to help users understand the multi-instance setup and get started. This configuration defines three example instances with identifiers: pdd1, pdd2, and weld1. The accompanying sample scripts utilize these identifiers to perform operations on individual application instances.
5555
56-
3. Edit the environment variables below in all the `.env_<SAMPLE_APP>` files:
56+
3. Edit the environment variables below in `.env_<SAMPLE_APP>` files for all sample apps present in config.yml.
57+
58+
For the example above, modify the envs for pallet-defect-detection and weld-porosity i.e. env_pallet-defect-detection and .env_weld-porosity
5759

5860
```text
5961
HOST_IP=<HOST_IP> # IP address of server where DL Streamer Pipeline Server is running.

manufacturing-ai-suite/industrial-edge-insights-vision/docs/user-guide/pcb-anomaly-detection/how-to-guides/run-multiple-apps.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ This tutorial demonstrates how to simultaneously deploy and manage multiple indu
5353

5454
> **Note:** A sample configuration file `sample_config.yml` is provided to help users understand the multi-instance setup and get started. This configuration defines three example instances with identifiers: pdd1, pdd2, and weld1. The accompanying sample scripts utilize these identifiers to perform operations on individual application instances.
5555
56-
3. Edit the environment variables below in all the `.env_<SAMPLE_APP>` files:
56+
3. Edit the environment variables below in `.env_<SAMPLE_APP>` files for all sample apps present in config.yml.
57+
58+
For the example above, modify the envs for pcb-anomaly-detection and weld-porosity i.e. env_pcb-anomaly-detection and .env_weld-porosity
5759

5860
```text
5961
HOST_IP=<HOST_IP> # IP address of server where DL Streamer Pipeline Server is running.

manufacturing-ai-suite/industrial-edge-insights-vision/docs/user-guide/weld-porosity/how-to-guides/run-multiple-apps.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ This tutorial demonstrates how to simultaneously deploy and manage multiple indu
5353

5454
> **Note:** A sample configuration file `sample_config.yml` is provided to help users understand the multi-instance setup and get started. This configuration defines three example instances with identifiers: pdd1, pdd2, and weld1. The accompanying sample scripts utilize these identifiers to perform operations on individual application instances.
5555
56-
3. Edit the environment variables below in all the `.env_<SAMPLE_APP>` files:
56+
3. Edit the environment variables below in `.env_<SAMPLE_APP>` files for all sample apps present in config.yml.
57+
58+
For the example above, modify the envs for weld-porosity and pallet-defect-detection i.e. env_weld-porosity and .env_pallet-defect-detection
5759

5860
```text
5961
HOST_IP=<HOST_IP> # IP address of server where DL Streamer Pipeline Server is running.

manufacturing-ai-suite/industrial-edge-insights-vision/docs/user-guide/worker-safety-gear-detection/how-to-guides/run-multiple-apps.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ This tutorial demonstrates how to simultaneously deploy and manage multiple indu
5353

5454
> **Note:** A sample configuration file `sample_config.yml` is provided to help users understand the multi-instance setup and get started. This configuration defines three example instances with identifiers: pdd1, pdd2, and weld1. The accompanying sample scripts utilize these identifiers to perform operations on individual application instances.
5555
56-
3. Edit the environment variables below in all the `.env_<SAMPLE_APP>` files:
56+
3. Edit the environment variables below in `.env_<SAMPLE_APP>` files for all sample apps present in config.yml.
57+
58+
For the example above, modify the envs for worker-safety-gear-detection and pallet-defect-detection i.e. env_worker-safety-gear-detection and .env_pallet-defect-detection
5759

5860
```text
5961
HOST_IP=<HOST_IP> # IP address of server where DL Streamer Pipeline Server is running.

manufacturing-ai-suite/industrial-edge-insights-vision/setup.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -241,16 +241,6 @@ init_instance() {
241241
# Export variables from the instance .env file
242242
export $(grep -v -E '^\s*#' "$TEMP_APP_DIR/.env" | sed -e 's/#.*$//' -e '/^\s*$/d' | xargs)
243243

244-
# Run the setup script for this instance
245-
if [[ -f "$SOURCE_APP_DIR/setup.sh" ]]; then
246-
echo "Running setup script for $SAMPLE_APP/$INSTANCE_NAME"
247-
chmod +x "$SOURCE_APP_DIR/setup.sh"
248-
bash "$SOURCE_APP_DIR/setup.sh"
249-
else
250-
err "No setup.sh found in $SOURCE_APP_DIR directory."
251-
return 1
252-
fi
253-
254244
echo "Completed setup for $SAMPLE_APP/$INSTANCE_NAME"
255245
echo ""
256246
}

0 commit comments

Comments
 (0)