From 9fe480b010948a2b78bb926a81a4414ab28d9939 Mon Sep 17 00:00:00 2001 From: XinyuYe-Intel Date: Thu, 9 Jan 2025 12:03:27 +0800 Subject: [PATCH] Update dockerfile path for text2image (#1307) Signed-off-by: Ye, Xinyu --- Text2Image/docker_compose/intel/cpu/xeon/README.md | 2 +- Text2Image/docker_compose/intel/hpu/gaudi/README.md | 2 +- Text2Image/docker_image_build/build.yaml | 2 +- Text2Image/tests/test_compose_on_xeon.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Text2Image/docker_compose/intel/cpu/xeon/README.md b/Text2Image/docker_compose/intel/cpu/xeon/README.md index 503db0d58..fb5192cf1 100644 --- a/Text2Image/docker_compose/intel/cpu/xeon/README.md +++ b/Text2Image/docker_compose/intel/cpu/xeon/README.md @@ -13,7 +13,7 @@ Build text-to-image service image on Xeon with below command: ```bash git clone https://github.com/opea-project/GenAIComps.git cd GenAIComps -docker build -t opea/text2image:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/text2image/Dockerfile . +docker build -t opea/text2image:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/text2image/src/Dockerfile . ``` ### 2. Run Docker with CLI diff --git a/Text2Image/docker_compose/intel/hpu/gaudi/README.md b/Text2Image/docker_compose/intel/hpu/gaudi/README.md index efda0f01f..f595c8bc3 100644 --- a/Text2Image/docker_compose/intel/hpu/gaudi/README.md +++ b/Text2Image/docker_compose/intel/hpu/gaudi/README.md @@ -13,7 +13,7 @@ Build text-to-image service image on Gaudi with below command: ```bash git clone https://github.com/opea-project/GenAIComps.git cd GenAIComps -docker build -t opea/text2image-gaudi:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/text2image/Dockerfile.intel_hpu . +docker build -t opea/text2image-gaudi:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/text2image/src/Dockerfile.intel_hpu . ``` ### 2. Run Docker with CLI diff --git a/Text2Image/docker_image_build/build.yaml b/Text2Image/docker_image_build/build.yaml index 30691ce0b..4788a7102 100644 --- a/Text2Image/docker_image_build/build.yaml +++ b/Text2Image/docker_image_build/build.yaml @@ -9,7 +9,7 @@ services: https_proxy: ${https_proxy} no_proxy: ${no_proxy} context: GenAIComps - dockerfile: comps/text2image/Dockerfile + dockerfile: comps/text2image/src/Dockerfile image: ${REGISTRY:-opea}/text2image:${TAG:-latest} text2image-ui: build: diff --git a/Text2Image/tests/test_compose_on_xeon.sh b/Text2Image/tests/test_compose_on_xeon.sh index a8fa4bdec..eae41f643 100644 --- a/Text2Image/tests/test_compose_on_xeon.sh +++ b/Text2Image/tests/test_compose_on_xeon.sh @@ -18,7 +18,7 @@ MODEL=stabilityai/stable-diffusion-2-1 function build_docker_images() { cd $WORKPATH/docker_image_build if [ ! -d "GenAIComps" ] ; then - git clone https://github.com/opea-project/GenAIComps.git + git clone https://github.com/opea-project/GenAIComps.git && cd GenAIComps && git checkout "${opea_branch:-"main"}" && cd ../ fi docker compose -f build.yaml build --no-cache > ${LOG_PATH}/docker_image_build.log }