Skip to content

Commit

Permalink
[ProductivitySuite]: Update service port number (#879)
Browse files Browse the repository at this point in the history
Signed-off-by: Yeoh, Hoong Tee <hoong.tee.yeoh@intel.com>
  • Loading branch information
hteeyeoh authored Oct 1, 2024
1 parent d16c80e commit ffecd18
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions ProductivitySuite/docker_compose/intel/cpu/xeon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ export CHAT_HISTORY_CREATE_ENDPOINT="http://${host_ip}:6012/v1/chathistory/creat
export CHAT_HISTORY_CREATE_ENDPOINT="http://${host_ip}:6012/v1/chathistory/create"
export CHAT_HISTORY_DELETE_ENDPOINT="http://${host_ip}:6012/v1/chathistory/delete"
export CHAT_HISTORY_GET_ENDPOINT="http://${host_ip}:6012/v1/chathistory/get"
export PROMPT_SERVICE_GET_ENDPOINT="http://${host_ip}:6015/v1/prompt/get"
export PROMPT_SERVICE_CREATE_ENDPOINT="http://${host_ip}:6015/v1/prompt/create"
export PROMPT_SERVICE_GET_ENDPOINT="http://${host_ip}:6018/v1/prompt/get"
export PROMPT_SERVICE_CREATE_ENDPOINT="http://${host_ip}:6018/v1/prompt/create"
export KEYCLOAK_SERVICE_ENDPOINT="http://${host_ip}:8080"
export LLM_SERVICE_HOST_PORT_FAQGEN=9002
export LLM_SERVICE_HOST_PORT_CODEGEN=9001
Expand Down Expand Up @@ -393,7 +393,7 @@ Please refer to **[keycloak_setup_guide](keycloak_setup_guide.md)** for more det

```bash
curl -X 'POST' \
http://{host_ip}:6015/v1/prompt/create \
http://{host_ip}:6018/v1/prompt/create \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
Expand All @@ -405,14 +405,14 @@ Please refer to **[keycloak_setup_guide](keycloak_setup_guide.md)** for more det

```bash
curl -X 'POST' \
http://{host_ip}:6015/v1/prompt/get \
http://{host_ip}:6018/v1/prompt/get \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"user": "test"}'
curl -X 'POST' \
http://{host_ip}:6015/v1/prompt/get \
http://{host_ip}:6018/v1/prompt/get \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
Expand All @@ -423,7 +423,7 @@ Please refer to **[keycloak_setup_guide](keycloak_setup_guide.md)** for more det

```bash
curl -X 'POST' \
http://{host_ip}:6015/v1/prompt/delete \
http://{host_ip}:6018/v1/prompt/delete \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ services:
image: ${REGISTRY:-opea}/promptregistry-mongo-server:${TAG:-latest}
container_name: promptregistry-mongo-server
ports:
- "6015:6012"
- "6018:6018"
ipc: host
environment:
http_proxy: ${http_proxy}
Expand Down
4 changes: 2 additions & 2 deletions ProductivitySuite/docker_compose/intel/cpu/xeon/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export CHAT_HISTORY_CREATE_ENDPOINT="http://${host_ip}:6012/v1/chathistory/creat
export CHAT_HISTORY_CREATE_ENDPOINT="http://${host_ip}:6012/v1/chathistory/create"
export CHAT_HISTORY_DELETE_ENDPOINT="http://${host_ip}:6012/v1/chathistory/delete"
export CHAT_HISTORY_GET_ENDPOINT="http://${host_ip}:6012/v1/chathistory/get"
export PROMPT_SERVICE_GET_ENDPOINT="http://${host_ip}:6015/v1/prompt/get"
export PROMPT_SERVICE_CREATE_ENDPOINT="http://${host_ip}:6015/v1/prompt/create"
export PROMPT_SERVICE_GET_ENDPOINT="http://${host_ip}:6018/v1/prompt/get"
export PROMPT_SERVICE_CREATE_ENDPOINT="http://${host_ip}:6018/v1/prompt/create"
export KEYCLOAK_SERVICE_ENDPOINT="http://${host_ip}:8080"
export LLM_SERVICE_HOST_PORT_FAQGEN=9002
export LLM_SERVICE_HOST_PORT_CODEGEN=9001
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ metadata:
spec:
type: ClusterIP
ports:
- port: 6012
targetPort: 6012
- port: 6018
targetPort: 6018
protocol: TCP
name: prompt-registry
selector:
Expand Down Expand Up @@ -69,7 +69,7 @@ spec:
imagePullPolicy: IfNotPresent
ports:
- name: prompt-registry
containerPort: 6012
containerPort: 6018
protocol: TCP
resources: null
---
6 changes: 3 additions & 3 deletions ProductivitySuite/tests/test_compose_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ function start_services() {
export CHAT_HISTORY_CREATE_ENDPOINT="http://${ip_address}:6012/v1/chathistory/create"
export CHAT_HISTORY_DELETE_ENDPOINT="http://${ip_address}:6012/v1/chathistory/delete"
export CHAT_HISTORY_GET_ENDPOINT="http://${ip_address}:6012/v1/chathistory/get"
export PROMPT_SERVICE_GET_ENDPOINT="http://${ip_address}:6015/v1/prompt/get"
export PROMPT_SERVICE_CREATE_ENDPOINT="http://${ip_address}:6015/v1/prompt/create"
export PROMPT_SERVICE_GET_ENDPOINT="http://${ip_address}:6018/v1/prompt/get"
export PROMPT_SERVICE_CREATE_ENDPOINT="http://${ip_address}:6018/v1/prompt/create"
export KEYCLOAK_SERVICE_ENDPOINT="http://${ip_address}:8080"
export MONGO_HOST=${ip_address}
export MONGO_PORT=27017
Expand Down Expand Up @@ -275,7 +275,7 @@ function validate_microservices() {
fi

result=$(curl -X 'POST' \
http://$ip_address:6015/v1/prompt/create \
http://$ip_address:6018/v1/prompt/create \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
Expand Down

0 comments on commit ffecd18

Please sign in to comment.