Skip to content

Commit

Permalink
Standardize image build.
Browse files Browse the repository at this point in the history
Signed-off-by: zepan <[email protected]>
  • Loading branch information
ZePan110 committed Aug 13, 2024
1 parent f36629a commit 9f5b186
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion tests/test_agent_langchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function build_docker_images() {
echo "Building the docker images"
cd $WORKPATH
echo $WORKPATH
docker build -t opea/comps-agent-langchain:latest -f comps/agent/langchain/docker/Dockerfile .
docker build --no-cache -t opea/comps-agent-langchain:latest -f comps/agent/langchain/docker/Dockerfile .

}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_dataprep_pgvector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function build_docker_images() {
docker pull pgvector/pgvector:0.7.0-pg16

# build dataprep image for pgvector
docker build -t opea/dataprep-pgvector:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f $WORKPATH/comps/dataprep/pgvector/langchain/docker/Dockerfile .
docker build --no-cache -t opea/dataprep-pgvector:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f $WORKPATH/comps/dataprep/pgvector/langchain/docker/Dockerfile .
}

function start_service() {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dataprep_pinecone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function build_docker_images() {
cd $WORKPATH

# build dataprep image for pinecone
docker build -t opea/dataprep-pinecone:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f $WORKPATH/comps/dataprep/pinecone/docker/Dockerfile .
docker build --no-cache -t opea/dataprep-pinecone:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f $WORKPATH/comps/dataprep/pinecone/docker/Dockerfile .
}

function start_service() {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dataprep_redis_langchain_ray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ip_address=$(hostname -I | awk '{print $1}')
function build_docker_images() {
echo "Building the docker images"
cd $WORKPATH
docker build -t opea/dataprep-on-ray-redis:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/dataprep/redis/langchain_ray/docker/Dockerfile .
docker build --no-cache -t opea/dataprep-on-ray-redis:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/dataprep/redis/langchain_ray/docker/Dockerfile .
echo "Docker image built successfully"
}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_guardrails_pii_detection.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ip_address=$(hostname -I | awk '{print $1}')
function build_docker_images() {
echo "Start building docker images for microservice"
cd $WORKPATH
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 --no-cache -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 .
echo "Docker images built"
}

Expand Down
4 changes: 2 additions & 2 deletions tests/test_llms_text-generation_ray_serve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ function build_docker_images() {
docker build \
-f comps/llms/text-generation/ray_serve/docker/Dockerfile.rayserve \
--network=host \
-t ray_serve:habana .
--no-cache -t ray_serve:habana .

## Build OPEA microservice docker
cd $WORKPATH
docker build \
-t opea/llm-ray:comps \
-f comps/llms/text-generation/ray_serve/docker/Dockerfile.microservice .
--no-cache -f comps/llms/text-generation/ray_serve/docker/Dockerfile.microservice .
}

function start_service() {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_llms_text-generation_vllm-openvino.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function build_container() {
cd $WORKPATH
git clone https://github.com/vllm-project/vllm.git vllm-openvino
cd ./vllm-openvino/
docker build -t $DOCKER_IMAGE \
docker build --no-cache -t $DOCKER_IMAGE \
-f Dockerfile.openvino \
. \
--build-arg https_proxy=$https_proxy \
Expand Down
4 changes: 2 additions & 2 deletions tests/test_llms_text-generation_vllm-ray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ function build_docker_images() {
cd $WORKPATH
docker build \
-f comps/llms/text-generation/vllm-ray/docker/Dockerfile.vllmray \
-t opea/vllm_ray:habana --network=host .
--no-cache -t opea/vllm_ray:habana --network=host .

## Build OPEA microservice docker
cd $WORKPATH
docker build \
-t opea/llm-vllm-ray:comps \
--no-cache -t opea/llm-vllm-ray:comps \
-f comps/llms/text-generation/vllm-ray/docker/Dockerfile.microservice .
}

Expand Down
4 changes: 2 additions & 2 deletions tests/test_llms_text-generation_vllm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ function build_docker_images() {
cd $WORKPATH/comps/llms/text-generation/vllm
docker build \
-f docker/Dockerfile.hpu \
-t opea/vllm:hpu \
--no-cache -t opea/vllm:hpu \
--shm-size=128g .

## Build OPEA microservice docker
cd $WORKPATH
docker build \
-t opea/llm-vllm:comps \
--no-cache -t opea/llm-vllm:comps \
-f comps/llms/text-generation/vllm/docker/Dockerfile.microservice .
}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_lvms_llava.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ip_address=$(hostname -I | awk '{print $1}')
function build_docker_images() {
cd $WORKPATH
echo $(pwd)
docker build -t opea/llava:comps -f comps/lvms/llava/Dockerfile .
docker build --no-cache -t opea/llava:comps -f comps/lvms/llava/Dockerfile .
docker build --no-cache -t opea/lvm:comps -f comps/lvms/Dockerfile .
}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_lvms_tgi_llava_next.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function build_docker_images() {
cd $WORKPATH
echo $(pwd)
git clone https://github.com/yuanwu2017/tgi-gaudi.git && cd tgi-gaudi && git checkout v2.0.4
docker build -t opea/llava-tgi:latest .
docker build --no-cache -t opea/llava-tgi:latest .
cd ..
docker build --no-cache -t opea/lvm-tgi:latest -f comps/lvms/Dockerfile_tgi .
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_vectorstores_pgvector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function build_docker_images() {
docker pull pgvector/pgvector:0.7.0-pg16

# build dataprep image for pgvector
docker build -t opea/dataprep-pgvector:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f $WORKPATH/comps/dataprep/pgvector/langchain/docker/Dockerfile .
docker build --no-cache -t opea/dataprep-pgvector:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f $WORKPATH/comps/dataprep/pgvector/langchain/docker/Dockerfile .
}

function start_service() {
Expand Down

0 comments on commit 9f5b186

Please sign in to comment.