Skip to content

Commit 5acb05d

Browse files
committed
feat: add frontend and backend
bugfix: del error message bugifx: fix nebula config bugifx: replace oss url by local picture
1 parent 2733dbd commit 5acb05d

File tree

255 files changed

+33610
-894
lines changed

Some content is hidden

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

255 files changed

+33610
-894
lines changed

.gitignore

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,23 @@ dist
1818
zdatafront*
1919
*antgroup*
2020
*ipynb
21-
*log
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"]

docker-compose.yaml

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
173203
external: true

examples/ekg_examples/ekg.yaml

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

0 commit comments

Comments
 (0)