Skip to content

Commit 6378477

Browse files
committed
feat: introducing ngdi playground as optional workload
phase 0, static file prepartion
1 parent 31cb878 commit 6378477

File tree

5 files changed

+75
-15
lines changed

5 files changed

+75
-15
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ LABEL org.opencontainers.image.title="NebulaGraph" \
3131
com.docker.extension.detailed-description="NebulaGraph is a popular Open-Source, distributed Cloud Native Graph Database for trillion edges graph data volume." \
3232
com.docker.extension.publisher-url="https://github.com/vesoft-inc/nebula" \
3333
com.docker.extension.additional-urls='[{"title":"WebSite","url":"https://www.nebula-graph.io/"}, {"title":"GitHub","url":"https://github.com/vesoft-inc/nebula"}, {"title":"Slack","url":"http://community-chat.nebula-graph.io/"}, {"title":"Docker Extension Feedback","url":"https://github.com/nebula-contrib/nebulagraph-docker-ext/issues/new/choose"}]' \
34-
com.docker.extension.changelog="See https://github.com/nebula-contrib/nebulagraph-docker-ext/" \
34+
com.docker.extension.changelog="Introduced data intelegence suite\nSee https://github.com/nebula-contrib/nebulagraph-docker-ext/" \
3535
com.docker.desktop.extension.icon="https://user-images.githubusercontent.com/1651790/213339618-107d0e59-1b8b-4c89-bbae-5529aa4e2666.svg" \
3636
com.docker.extension.categories="database"
3737

docker-compose.yaml

+5-13
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ services:
6969
- nebula-net
7070
restart: on-failure
7171

72-
7372
metad2:
7473
labels:
7574
- "com.vesoft.scope=core"
@@ -369,17 +368,6 @@ services:
369368
start_period: 20s
370369
networks:
371370
- nebula-net
372-
# studio_nightly:
373-
# # profiles: ["studio"]
374-
# labels:
375-
# - "com.vesoft.scope=utils"
376-
# image: vesoft/nebula-graph-studio:nightly
377-
# environment:
378-
# USER: root
379-
# ports:
380-
# - 7003:7001
381-
# networks:
382-
# - nebula-net
383371

384372
webshell:
385373
# profiles: ["webshell"]
@@ -390,7 +378,9 @@ services:
390378
image: weygu/nebula-webconsole:latest
391379
ports:
392380
- 8376:8376
393-
command: --allowed-hostnames localhost,127.0.0.1
381+
command:
382+
- --allowed-hostnames
383+
- localhost,127.0.0.1
394384
healthcheck:
395385
test: ["CMD", "netstat", "-plunt", "| grep 8376"]
396386
interval: 30s
@@ -399,6 +389,8 @@ services:
399389
start_period: 20s
400390
networks:
401391
- nebula-net
392+
volumes:
393+
- ~/.nebulagraph/:/host_data/
402394

403395
networks:
404396
nebula-net:
+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
services:
2+
juptyer:
3+
labels:
4+
- "com.vesoft.scope=ngai"
5+
image: 'weygu/pyspark-notebook-nebulagraph:2.4.5-hadoop2.7'
6+
container_name: jupyter
7+
restart: always
8+
ports:
9+
- '18888:8888'
10+
volumes:
11+
- ~/.nebulagraph/:/root
12+
13+
networks:
14+
- weygu_nebulagraph-dd-ext-desktop-extension_nebula-net
15+
healthcheck:
16+
test: ["CMD", "netstat", "-plunt", "| grep 8888"]
17+
interval: 30s
18+
timeout: 10s
19+
retries: 3
20+
start_period: 20s
21+
environment:
22+
- PYSPARK_PYTHON=python3
23+
24+
graphd:
25+
labels:
26+
- "com.vesoft.scope=ngai"
27+
image: weygu/ngai-graphd:2023.03.13
28+
container_name: ngai_graphd
29+
environment:
30+
USER: root
31+
ng_ai_gateway_url_prefix: "http://jupyter:9999"
32+
command:
33+
- --meta_server_addrs=metad0:9559,metad1:9559,metad2:9559
34+
- --port=9669
35+
- --local_ip=ngai_graphd
36+
- --ws_ip=ngai_graphd
37+
- --ws_http_port=19669
38+
- --log_dir=/logs
39+
- --v=5
40+
- --minloglevel=0
41+
- --enable_udf=true
42+
- --udf_path=/udf/
43+
healthcheck:
44+
test: ["CMD", "curl", "-sf", "http://ngai_graphd:19669/status"]
45+
interval: 30s
46+
timeout: 10s
47+
retries: 3
48+
start_period: 20s
49+
ports:
50+
- "29669:9669"
51+
- 19669
52+
- 19670
53+
volumes:
54+
- ~/.nebulagraph/logs/ngai_graphd:/logs
55+
- ~/.nebulagraph/udf:/udf
56+
networks:
57+
- weygu_nebulagraph-dd-ext-desktop-extension_nebula-net
58+
restart: on-failure
59+
cap_add:
60+
- SYS_PTRACE
61+
62+
networks:
63+
weygu_nebulagraph-dd-ext-desktop-extension_nebula-net:
64+
external: true

ui/src/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function App() {
7272
<Box sx={{ alignItems: 'left', flexDirection: 'column', height: 20, fontSize: 10, justifyContent: 'center'}}>
7373
<Typography variant="body2" color={(theme) => theme.palette.text.primary} sx={{ my: 2, mr: 6 }}>
7474
<span style={{marginRight: 10}}></span>
75-
NebulaGraph for Docker Desktop Extension 0.4.4, NebulaGraph: v3.4.0, NebulaGraph Studio: v3.6.0
75+
NebulaGraph for Docker Desktop Extension 0.4.5, NebulaGraph: v3.4.0, NebulaGraph Studio: v3.6.0
7676
</Typography>
7777
</Box>
7878

ui/src/components/TabPanel/index.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,10 @@ export default function NebulaGraphTabs() {
709709
</Typography>
710710
<iframe src="http://127.0.0.1:8376" width="100%" height="800"/>
711711
</TabPanel>
712+
713+
<TabPanel value={value} index={5}>
714+
{/* TBD */}
715+
</TabPanel>
712716
</Box>
713717
);
714718
}

0 commit comments

Comments
 (0)