diff --git a/.github/workflows/docker/compose/guardrails-compose.yaml b/.github/workflows/docker/compose/guardrails-compose.yaml index 8663dbcca..9644604a4 100644 --- a/.github/workflows/docker/compose/guardrails-compose.yaml +++ b/.github/workflows/docker/compose/guardrails-compose.yaml @@ -11,7 +11,7 @@ services: image: ${REGISTRY}opea/guardrails-tgi:${TAG:-latest} guardrails-pii-detection: build: - dockerfile: comps/guardrails/pii_detection/docker/Dockerfile + dockerfile: comps/guardrails/pii_detection/custom/docker/Dockerfile image: ${REGISTRY}opea/guardrails-pii-detection:${TAG:-latest} factuality-predictionguard: build: diff --git a/comps/guardrails/pii_detection/custom/README.md b/comps/guardrails/pii_detection/custom/README.md index dba386e38..8c61fc4ed 100644 --- a/comps/guardrails/pii_detection/custom/README.md +++ b/comps/guardrails/pii_detection/custom/README.md @@ -32,7 +32,7 @@ intro placeholder ```bash cd ../../../ # back to GenAIComps/ folder -docker build -t opea/guardrails-pii-detection:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/guardrails/pii_detection/docker/Dockerfile . +docker build -t opea/guardrails-pii-detection:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/guardrails/pii_detection/custom/docker/Dockerfile . ``` ## 2.3 Run Docker with CLI @@ -44,7 +44,7 @@ docker run -d --rm --runtime=runc --name="guardrails-pii-detection-endpoint" -p > debug mode ```bash -docker run --rm --runtime=runc --name="guardrails-pii-detection-endpoint" -p 6357:6357 -v ./comps/guardrails/pii_detection/:/home/user/comps/guardrails/pii_detection/ --ipc=host -e http_proxy=$http_proxy -e https_proxy=$https_proxy -e HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN} -e HF_TOKEN=${HUGGINGFACEHUB_API_TOKEN} opea/guardrails-pii-detection:latest +docker run --rm --runtime=runc --name="guardrails-pii-detection-endpoint" -p 6357:6357 -v ./comps/guardrails/pii_detection/:/home/user/comps/guardrails/pii_detection/custom/ --ipc=host -e http_proxy=$http_proxy -e https_proxy=$https_proxy -e HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN} -e HF_TOKEN=${HUGGINGFACEHUB_API_TOKEN} opea/guardrails-pii-detection:latest ``` # 🚀3. Get Status of Microservice