Skip to content

Commit 652617a

Browse files
authored
Merge pull request #39 from codefuse-ai/pr_ekg
Pr ekg
2 parents f7f8435 + 5acb05d commit 652617a

File tree

265 files changed

+35073
-1038
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+35073
-1038
lines changed

.gitignore

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,24 @@ dist
1717
.ipynb_checkpoints
1818
zdatafront*
1919
*antgroup*
20-
*ipynb
20+
*ipynb
21+
*log
22+
23+
24+
# frontend
25+
frontend/node_modules
26+
frontend/.env.local
27+
frontend/.umirc.local.ts
28+
frontend/config/config.local.ts
29+
frontend/src/.umi
30+
frontend/src/.umi-production
31+
frontend/src/.umi-test
32+
frontend/.umi
33+
frontend/.umi-production
34+
frontend/.umi-test
35+
frontend/dist
36+
frontend/.mfsu
37+
frontend/.swc
38+
frontend/pnpm-lock.yaml
39+
40+
*.jar

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ COPY ./requirements.txt /home/user/docker_requirements.txt
1313

1414
# RUN wget https://oss-cdn.nebula-graph.com.cn/package/3.6.0/nebula-graph-3.6.0.ubuntu1804.amd64.deb
1515
# RUN dpkg -i nebula-graph-3.6.0.ubuntu1804.amd64.deb
16-
1716
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
1817
RUN pip install -r /home/user/docker_requirements.txt --retries 5 --timeout 120
1918

Dockerfile_frontend

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
From node:20.18.0-bookworm
2+
3+
WORKDIR /home/user
4+
5+
#
6+
COPY frontend /home/user/frontend
7+
RUN ls /home/user && ls /home/user/frontend
8+
9+
#
10+
RUN npm config set registry https://registry.npmmirror.com
11+
RUN npm install -g pnpm
12+
RUN pnpm config set registry https://registry.npmmirror.com
13+
#
14+
RUN cd /home/user/frontend && npm i
15+
# 新增删除
16+
RUN cd /home/user/frontend && rm -rf !\(node_modules\)
17+
18+
CMD ["bash"]

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exclude tests/*

docker-compose.yaml

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3.4'
1+
version: 'Beta'
22
services:
33
metad0:
44
# image: docker.io/vesoft/nebula-metad:v3.8.0
@@ -127,9 +127,9 @@ services:
127127
TZ: "${TZ}"
128128
ports:
129129
- 11434:11434
130-
volumes:
130+
# volumes:
131131
# - //d/models/ollama:/root/.ollama # windows path
132-
- /Users/yunjiu/ant/models:/root/.ollama # linux/mac path
132+
# - /Users/xxxx/Desktop/ollama:/root/.ollama # linux/mac path
133133
networks:
134134
- ekg-net
135135
restart: on-failure
@@ -143,18 +143,32 @@ services:
143143
# count: all # 或者您想要的数量,例如 1
144144
# capabilities: [gpu]
145145

146+
runtime:
147+
build:
148+
context: ./runtime
149+
dockerfile: Dockerfile.no-package
150+
image: runtime:0.1.0
151+
container_name: runtime
152+
environment:
153+
USER:
154+
root
155+
ports:
156+
# - 5050:3737
157+
- 8080:8080
158+
networks:
159+
- ekg-net
160+
146161
ekgservice:
147162
build:
148163
context: .
149164
dockerfile: Dockerfile
150165
container_name: ekgservice
151166
image: muagent:0.1.0
152-
# image: muagent:0.2.0
153167
environment:
154168
USER: root
155169
TZ: "${TZ}"
170+
OLLAMA_HOST: http://ollama:11434
156171
ports:
157-
# - 5050:3737
158172
- 3737:3737
159173
volumes:
160174
- ./examples:/home/user/muagent/examples
@@ -164,10 +178,26 @@ services:
164178
networks:
165179
- ekg-net
166180
command: ["python", "/home/user/muagent/examples/ekg_examples/start.py"] # 指定要执行的脚本
167-
# command: ["python", "/home/user/muagent/tests/httpapis/fastapi_test.py"] # 指定要执行的脚本
168181

182+
ekgfrontend:
183+
build:
184+
context: .
185+
dockerfile: Dockerfile_frontend
186+
container_name: ekgfrontend
187+
image: ekgfrontend:0.1.0
188+
environment:
189+
USER: root
190+
TZ: "${TZ}"
191+
ports:
192+
- 8000:8000
193+
volumes:
194+
- ./examples:/home/user/muagent/examples
195+
- ./frontend:/home/user/muagent/frontend
196+
restart: on-failure
197+
networks:
198+
- ekg-net
199+
command: ["sh", "-c", "cp -rf /home/user/muagent/frontend /home/user && cd /home/user/frontend && npm run start"]
169200

170201
networks:
171202
ekg-net:
172-
# driver: bridge
173-
external: true
203+
external: true

examples/ekg_examples/ekg.yaml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)