File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,13 @@ ip_address=$(hostname -I | awk '{print $1}')
10
10
DATAPREP_PORT=11101
11
11
service_name=" dataprep-milvus tei-embedding-serving etcd minio standalone"
12
12
export TAG=" comps"
13
- export DOCKER_VOLUME_DIRECTORY=" ."
14
13
15
14
SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
16
15
source ${SCRIPT_DIR} /dataprep_utils.sh
17
16
18
17
function build_docker_images() {
19
18
cd $WORKPATH
20
19
echo $( pwd)
21
- mkdir -p ${DOCKER_VOLUME_DIRECTORY} /volumes/
22
20
# dataprep milvus image
23
21
docker build --no-cache -t opea/dataprep:${TAG} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/dataprep/src/Dockerfile .
24
22
if [ $? -ne 0 ]; then
@@ -36,7 +34,6 @@ function start_service() {
36
34
export MILVUS_HOST=${ip_address}
37
35
export TEI_EMBEDDING_ENDPOINT=" http://${host_ip} :${TEI_EMBEDDER_PORT} "
38
36
export LOGFLAG=true
39
- export HF_TOKEN=${HF_TOKEN}
40
37
41
38
cd $WORKPATH /comps/dataprep/deployment/docker_compose/
42
39
docker compose up ${service_name} -d > ${LOG_PATH} /start_services_with_compose.log
@@ -84,11 +81,6 @@ function stop_docker() {
84
81
cd $WORKPATH /comps/dataprep/deployment/docker_compose
85
82
docker compose -f compose.yaml down ${service_name} --remove-orphans
86
83
87
- cid=$( docker ps -aq --filter " name=tei-embedding-serving" --filter " name=milvus-*" )
88
- if [[ ! -z " $cid " ]]; then docker stop $cid && docker rm $cid && sleep 1s; fi
89
-
90
- rm -rf ${DOCKER_VOLUME_DIRECTORY} /volumes/* || true
91
-
92
84
}
93
85
94
86
function main() {
You can’t perform that action at this time.
0 commit comments