Skip to content

Commit 83d0ba9

Browse files
committed
add podip in docker compose
1 parent 71869c5 commit 83d0ba9

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

dashboard/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ def listfuncs(tenant: str, namespace: str):
287287
headers = {'Authorization': f'Bearer {access_token}'}
288288
url = "{}/functions/{}/{}/".format(apihostaddr, tenant, namespace)
289289
resp = requests.get(url, headers=headers)
290+
print("content*************** ", resp.content)
290291
funcs = json.loads(resp.content)
291292

292293
return funcs

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ services:
5353
user: root
5454
cpus: 10
5555
network_mode: "host"
56+
environment:
57+
- POD_IP=${LOCAL_IP}
58+
- RUN_SERVICE="All"
5659
pid: "host"
5760
healthcheck:
5861
test: [ "CMD", "curl", "-f", "http://localhost:4000" ]
@@ -90,7 +93,7 @@ services:
9093
container_name: inferx_dashboard
9194
network_mode: "host"
9295
environment:
93-
- KEYCLOAK_URL=http://${LOCAL_IP}:81/authn
96+
- KEYCLOAK_URL=http://${LOCAL_IP}:31260/authn
9497
- KEYCLOAK_REALM_NAME=inferx
9598
- KEYCLOAK_CLIENT_ID=infer_client
9699
- KEYCLOAK_CLIENT_SECRET=M2Dse5531tdtyipZdGizLEeoOVgziQRX

docker-compose_blob.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ services:
6565
user: root
6666
cpus: 10
6767
network_mode: "host"
68+
environment:
69+
- POD_IP=${LOCAL_IP}
70+
- RUN_SERVICE=All
6871
pid: "host"
6972
healthcheck:
7073
test: [ "CMD", "curl", "-f", "http://localhost:4000" ]
@@ -106,7 +109,7 @@ services:
106109
container_name: inferx_dashboard
107110
network_mode: "host"
108111
environment:
109-
- KEYCLOAK_URL=http://${LOCAL_IP}:81/authn
112+
- KEYCLOAK_URL=http://${LOCAL_IP}:31260/authn
110113
- KEYCLOAK_REALM_NAME=inferx
111114
- KEYCLOAK_CLIENT_ID=infer_client
112115
- KEYCLOAK_CLIENT_SECRET=M2Dse5531tdtyipZdGizLEeoOVgziQRX

nodeconfig/node3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"secretStoreAddr": "postgresql://secret:123456@localhost:5431/secretdb",
4242
"keycloakconfig": {
43-
"url": "http://localhost:31260/authn",
43+
"url": "http://192.168.0.22:31260/authn",
4444
"realm": "inferx"
4545
}
4646
}

0 commit comments

Comments
 (0)