diff --git a/.github/workflows/path_detection.yml b/.github/workflows/path_detection.yml new file mode 100644 index 0000000000..6d68c19357 --- /dev/null +++ b/.github/workflows/path_detection.yml @@ -0,0 +1,44 @@ +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +name: Check for missing Dockerfile paths in repo comps + +on: + pull_request: + branches: [main] + types: [opened, reopened, ready_for_review, synchronize] + +jobs: + check-dockerfile-paths: + runs-on: ubuntu-latest + + steps: + - name: Clean Up Working Directory + run: sudo rm -rf ${{github.workspace}}/* + + - name: Checkout repo GenAIExamples + uses: actions/checkout@v4 + + - name: Clone repo GenAIComps + run: | + cd .. + git clone https://github.com/opea-project/GenAIComps.git + + - name: Check for missing Dockerfile paths in GenAIComps + run: | + cd ${{github.workspace}} + miss="FALSE" + while IFS=: read -r file line content; do + dockerfile_path=$(echo "$content" | awk -F '-f ' '{print $2}' | awk '{print $1}') + if [[ ! -f "../GenAIComps/${dockerfile_path}" ]]; then + miss="TRUE" + echo "Missing Dockerfile: GenAIComps/${dockerfile_path} (Referenced in GenAIExamples/${file}:${line})" + fi + done < <(grep -Ern 'docker build .* -f comps/.+/Dockerfile' --include='*.md' .) + + + if [[ "$miss" == "TRUE" ]]; then + exit 1 + fi + + shell: bash diff --git a/DocSum/docker/xeon/README.md b/DocSum/docker/xeon/README.md index a575a1f9f6..d473ef8182 100644 --- a/DocSum/docker/xeon/README.md +++ b/DocSum/docker/xeon/README.md @@ -22,7 +22,7 @@ cd GenAIComps ### 1. Build LLM Image ```bash -docker build -t opea/llm-docsum-tgi:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/llms/docsum/langchain/docker/Dockerfile . +docker build -t opea/llm-docsum-tgi:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/llms/summarization/tgi/Dockerfile . ``` Then run the command `docker images`, you will have the following four Docker Images: