Skip to content

Commit b3b71cb

Browse files
committed
0.4.18: jupyter notebook introduced!
1 parent a7f8dd2 commit b3b71cb

File tree

4 files changed

+40
-7
lines changed

4 files changed

+40
-7
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="Fixed gephi container unhealthy" \
34+
com.docker.extension.changelog="Introduce NebulaGraph Jupyter" \
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

+18
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,24 @@ services:
391391
- ~/.nebulagraph/:/host_data/
392392
pull_policy: always
393393

394+
nebulagraph_jupyter:
395+
labels:
396+
- "com.vesoft.scope=utils"
397+
image: 'weygu/nebulagraph-jupyter:v0'
398+
container_name: nebulagraph_jupyter
399+
restart: always
400+
ports:
401+
- '28888:8888'
402+
volumes:
403+
- ~/.nebulagraph/:/home/jovyan
404+
healthcheck:
405+
test: ["CMD-SHELL", "wget http://127.0.0.1:8888 -O /dev/null --no-http-keep-alive || exit 1"]
406+
interval: 300s
407+
timeout: 10s
408+
retries: 3
409+
start_period: 40s
410+
networks:
411+
- nebula-net
394412

395413
networks:
396414
nebula-net:

ui/src/App.tsx

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import Button from '@mui/material/Button';
3-
import { Insights, Explore, KeyboardArrowRight, AutoAwesome } from '@mui/icons-material';
3+
import { Insights, LibraryBooks, KeyboardArrowRight, AutoAwesome } from '@mui/icons-material';
44
import { createDockerDesktopClient } from '@docker/extension-api-client';
55

66
import {
@@ -33,7 +33,7 @@ export function App() {
3333
}
3434
endIcon={<Insights />}
3535
>
36-
Studio in Browser
36+
Studio
3737
</Button>
3838
</Box>
3939

@@ -51,6 +51,21 @@ export function App() {
5151
</Button>
5252
</Box>
5353

54+
<span style={{marginRight: 10}}></span>
55+
56+
<Box>
57+
<Button
58+
variant="outlined"
59+
onClick={() =>
60+
ddClient.host.openExternal('http://127.0.0.1:28888?token=nebula')
61+
}
62+
endIcon={<LibraryBooks />}
63+
>
64+
Jupyter
65+
</Button>
66+
</Box>
67+
68+
5469
<span style={{marginRight: 10}}></span>
5570

5671
<Box>
@@ -87,7 +102,7 @@ export function App() {
87102
<Box sx={{ alignItems: 'left', flexDirection: 'column', height: 20, fontSize: 10, justifyContent: 'center'}}>
88103
<Typography variant="body2" color={(theme) => theme.palette.text.primary} sx={{ my: 2, mr: 6 }}>
89104
<span style={{marginRight: 10}}></span>
90-
NebulaGraph for Docker Desktop Extension 0.4.17, NebulaGraph: v3.6.0, NebulaGraph Studio: v3.7.0
105+
NebulaGraph for Docker Desktop Extension 0.4.18, NebulaGraph: v3.6.0, NebulaGraph Studio: v3.7.0
91106
</Typography>
92107
</Box>
93108

ui/src/components/TabPanel/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ function homePage() {
135135
<a href="#"
136136
onClick={() => openExternalUrl("https://stackoverflow.com/questions/tagged/nebula-graph")}
137137
>
138-
<img src="https://img.shields.io/badge/Stack%20Overflow-nebula--graph-orange?style=for-the-badge&amp;logo=stack-overflow&amp;logoColor=white" alt="Stack Overflow"/>
138+
<img src="https://img.shields.io/badge/SO-nebulagraph-orange?style=for-the-badge&amp;logo=stack-overflow&amp;logoColor=white" alt="Stack Overflow"/>
139139
</a>
140140
<span style={{marginRight: 10}}></span>
141141
<a href="#"
142142
onClick={() => openExternalUrl("https://github.com/vesoft-inc/nebula/discussions")}
143143
>
144-
<img src="https://img.shields.io/badge/GitHub_Discussion-000000?style=for-the-badge&amp;logo=github&amp;logoColor=white" alt="Discussions"/>
144+
<img src="https://img.shields.io/badge/GH_Discussion-000000?style=for-the-badge&amp;logo=github&amp;logoColor=white" alt="Discussions"/>
145145
</a>
146146
<span style={{marginRight: 10}}></span>
147147
<a href="#"
@@ -660,7 +660,7 @@ export default function NebulaGraphTabs() {
660660
onClick={() => openExternalUrl("http://127.0.0.1:17001")}
661661
endIcon={<Insights />}
662662
>
663-
Studio in Browser
663+
Studio
664664
</Button>
665665
</Box>
666666
</Typography>

0 commit comments

Comments
 (0)