From e8ce824253b6d3ef736fadb52d33aa82262d3c90 Mon Sep 17 00:00:00 2001 From: Sachin Sharma Date: Thu, 20 Nov 2025 13:39:44 +0530 Subject: [PATCH 1/2] changes to add proxy --- .../automated-self-checkout/advanced.md | 70 ++++++++++++++++++ .../use-cases/loss-prevention/advanced.md | 71 ++++++++++++++++++ docs_src/use-cases/order-accuracy/advanced.md | 72 +++++++++++++++++++ mkdocs.yml | 3 - 4 files changed, 213 insertions(+), 3 deletions(-) diff --git a/docs_src/use-cases/automated-self-checkout/advanced.md b/docs_src/use-cases/automated-self-checkout/advanced.md index fb52f3c..e74f897 100644 --- a/docs_src/use-cases/automated-self-checkout/advanced.md +++ b/docs_src/use-cases/automated-self-checkout/advanced.md @@ -152,3 +152,73 @@ When you add a custom model, it replaces the default detection model used by the labels=/home/pipeline-server/models/object_detection//INT8/ ``` +## Configure the system proxy + +Please follow the below steps to configure the proxy + +### 1. Configure Proxy for the Current Shell Session + +```bash +export http_proxy=http://: +export https_proxy=http://: +export HTTP_PROXY=http://: +export HTTPS_PROXY=http://: +export NO_PROXY=localhost,127.0.0.1,::1 +export no_proxy=localhost,127.0.0.1,::1 +export socks_proxy=http://: +export SOCKS_PROXY=http://: +``` + +### 2. System-Wide Proxy Configuration + +System-wide environment (/etc/environment) +(Run: sudo nano /etc/environment and add or update) + +```bash +http_proxy=http://: +https_proxy=http://: +ftp_proxy=http://: +socks_proxy=http://: +no_proxy=localhost,127.0.0.1,::1 + +HTTP_PROXY=http://: +HTTPS_PROXY=http://: +FTP_PROXY=http://: +SOCKS_PROXY=http://: +NO_PROXY=localhost,127.0.0.1,::1 +``` +### 3. Docker Daemon & Client Proxy Configuration + +Docker daemon drop-in (/etc/systemd/system/docker.service.d/http-proxy.conf) +Create dir if missing: +sudo mkdir -p /etc/systemd/system/docker.service.d +sudo nano /etc/systemd/system/docker.service.d/http-proxy.conf + +```bash +[Service] +Environment="http_proxy=http://:" +Environment="https_proxy=http://:" +Environment="no_proxy=localhost,127.0.0.1,::1" +Environment="HTTP_PROXY=http://:" +Environment="HTTPS_PROXY=http://:" +Environment="NO_PROXY=localhost,127.0.0.1,::1" +Environment="socks_proxy=http://:" +Environment="SOCKS_PROXY=http://:" + +# Reload & restart: +sudo systemctl daemon-reload +sudo systemctl restart docker + +# Docker client config (~/.docker/config.json) +# mkdir -p ~/.docker +# nano ~/.docker/config.json +{ + "proxies": { + "default": { + "httpProxy": "http://:", + "httpsProxy": "http://:", + "noProxy": "localhost,127.0.0.1,::1" + } + } +} +``` \ No newline at end of file diff --git a/docs_src/use-cases/loss-prevention/advanced.md b/docs_src/use-cases/loss-prevention/advanced.md index 6adf69c..4dd12a1 100644 --- a/docs_src/use-cases/loss-prevention/advanced.md +++ b/docs_src/use-cases/loss-prevention/advanced.md @@ -179,3 +179,74 @@ The application is highly configurable via JSON files in the `configs/` director - `Makefile` — Build automation and workflow commands --- + +## Configure the system proxy + +Please follow the below steps to configure the proxy + +### 1. Configure Proxy for the Current Shell Session + +```bash +export http_proxy=http://: +export https_proxy=http://: +export HTTP_PROXY=http://: +export HTTPS_PROXY=http://: +export NO_PROXY=localhost,127.0.0.1,::1 +export no_proxy=localhost,127.0.0.1,::1 +export socks_proxy=http://: +export SOCKS_PROXY=http://: +``` + +### 2. System-Wide Proxy Configuration + +System-wide environment (/etc/environment) +(Run: sudo nano /etc/environment and add or update) + +```bash +http_proxy=http://: +https_proxy=http://: +ftp_proxy=http://: +socks_proxy=http://: +no_proxy=localhost,127.0.0.1,::1 + +HTTP_PROXY=http://: +HTTPS_PROXY=http://: +FTP_PROXY=http://: +SOCKS_PROXY=http://: +NO_PROXY=localhost,127.0.0.1,::1 +``` +### 3. Docker Daemon & Client Proxy Configuration + +Docker daemon drop-in (/etc/systemd/system/docker.service.d/http-proxy.conf) +Create dir if missing: +sudo mkdir -p /etc/systemd/system/docker.service.d +sudo nano /etc/systemd/system/docker.service.d/http-proxy.conf + +```bash +[Service] +Environment="http_proxy=http://:" +Environment="https_proxy=http://:" +Environment="no_proxy=localhost,127.0.0.1,::1" +Environment="HTTP_PROXY=http://:" +Environment="HTTPS_PROXY=http://:" +Environment="NO_PROXY=localhost,127.0.0.1,::1" +Environment="socks_proxy=http://:" +Environment="SOCKS_PROXY=http://:" + +# Reload & restart: +sudo systemctl daemon-reload +sudo systemctl restart docker + +# Docker client config (~/.docker/config.json) +# mkdir -p ~/.docker +# nano ~/.docker/config.json +{ + "proxies": { + "default": { + "httpProxy": "http://:", + "httpsProxy": "http://:", + "noProxy": "localhost,127.0.0.1,::1" + } + } +} +``` \ No newline at end of file diff --git a/docs_src/use-cases/order-accuracy/advanced.md b/docs_src/use-cases/order-accuracy/advanced.md index 559d651..a9516ca 100644 --- a/docs_src/use-cases/order-accuracy/advanced.md +++ b/docs_src/use-cases/order-accuracy/advanced.md @@ -132,3 +132,75 @@ cd performance-tools/benchmark-scripts && python benchmark.py --compose_file ../ - `Makefile` — Build automation and workflow commands --- + + +## Configure the system proxy + +Please follow the below steps to configure the proxy + +### 1. Configure Proxy for the Current Shell Session + +```bash +export http_proxy=http://: +export https_proxy=http://: +export HTTP_PROXY=http://: +export HTTPS_PROXY=http://: +export NO_PROXY=localhost,127.0.0.1,::1 +export no_proxy=localhost,127.0.0.1,::1 +export socks_proxy=http://: +export SOCKS_PROXY=http://: +``` + +### 2. System-Wide Proxy Configuration + +System-wide environment (/etc/environment) +(Run: sudo nano /etc/environment and add or update) + +```bash +http_proxy=http://: +https_proxy=http://: +ftp_proxy=http://: +socks_proxy=http://: +no_proxy=localhost,127.0.0.1,::1 + +HTTP_PROXY=http://: +HTTPS_PROXY=http://: +FTP_PROXY=http://: +SOCKS_PROXY=http://: +NO_PROXY=localhost,127.0.0.1,::1 +``` +### 3. Docker Daemon & Client Proxy Configuration + +Docker daemon drop-in (/etc/systemd/system/docker.service.d/http-proxy.conf) +Create dir if missing: +sudo mkdir -p /etc/systemd/system/docker.service.d +sudo nano /etc/systemd/system/docker.service.d/http-proxy.conf + +```bash +[Service] +Environment="http_proxy=http://:" +Environment="https_proxy=http://:" +Environment="no_proxy=localhost,127.0.0.1,::1" +Environment="HTTP_PROXY=http://:" +Environment="HTTPS_PROXY=http://:" +Environment="NO_PROXY=localhost,127.0.0.1,::1" +Environment="socks_proxy=http://:" +Environment="SOCKS_PROXY=http://:" + +# Reload & restart: +sudo systemctl daemon-reload +sudo systemctl restart docker + +# Docker client config (~/.docker/config.json) +# mkdir -p ~/.docker +# nano ~/.docker/config.json +{ + "proxies": { + "default": { + "httpProxy": "http://:", + "httpsProxy": "http://:", + "noProxy": "localhost,127.0.0.1,::1" + } + } +} +``` \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 011d1bb..f4c662f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -57,9 +57,6 @@ nav: - Catalog: - Overview: 'use-cases/automated-self-checkout/catalog/Overview.md' - Getting Started: 'use-cases/automated-self-checkout/catalog/Get-Started-Guide.md' - - AI Connect for Scientific Data (AiCSD): - - Overview: 'use-cases/AiCSD/aicsd.md' - - GRPC Yolov5s Pipeline: 'use-cases/AiCSD/pipeline-grpc-go.md' - Loss Prevention: - Overview: 'use-cases/loss-prevention/loss-prevention.md' - Architecture: 'use-cases/loss-prevention/architecture.md' From 641459532d422af8d8540e8e9323aea05825e2ad Mon Sep 17 00:00:00 2001 From: Sachin Sharma Date: Thu, 20 Nov 2025 13:42:37 +0530 Subject: [PATCH 2/2] changes to add proxy --- docs_src/use-cases/loss-prevention/advanced.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs_src/use-cases/loss-prevention/advanced.md b/docs_src/use-cases/loss-prevention/advanced.md index 4dd12a1..7177a78 100644 --- a/docs_src/use-cases/loss-prevention/advanced.md +++ b/docs_src/use-cases/loss-prevention/advanced.md @@ -178,8 +178,6 @@ The application is highly configurable via JSON files in the `configs/` director - `src/` — Main source code and pipeline runner scripts - `Makefile` — Build automation and workflow commands ---- - ## Configure the system proxy Please follow the below steps to configure the proxy