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..7177a78 100644 --- a/docs_src/use-cases/loss-prevention/advanced.md +++ b/docs_src/use-cases/loss-prevention/advanced.md @@ -178,4 +178,73 @@ 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 + +### 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'