Skip to content

Commit ebc6019

Browse files
committed
feat: service manage panel
1 parent b42f349 commit ebc6019

File tree

104 files changed

+10932
-657
lines changed

Some content is hidden

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

104 files changed

+10932
-657
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"vue3snippets.enable-compile-vue-file-on-did-save-code": true
3+
}

Cargo.lock

Lines changed: 16 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ tower-http = {version="0.4.0", features=["cors"]}
5454
tower= "0.4.0"
5555
sled = "0.34.7"
5656

57+
[dependencies.uuid]
58+
version = "1.8.0"
59+
features = [
60+
"v4", # Lets you generate random UUIDs
61+
"fast-rng", # Use a faster (but still sufficiently random) RNG
62+
"macro-diagnostics", # Enable better diagnostics for compile-time UUIDs
63+
]
64+
5765
# slog-envlogger = { version = "2.1.0", optional = true }
5866

5967
[build-dependencies]

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ fn main() -> Result<()> {
66
"src/general/network/proto_src/raft.proto",
77
"src/general/network/proto_src/sche.proto",
88
"src/general/network/proto_src/metric.proto",
9+
"src/general/network/proto_src/remote_sys.proto",
910
],
1011
&["src/"],
1112
)?;

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"dependencies": {
3+
"@highlightjs/vue-plugin": "^2.1.0",
4+
"highlight.js": "^11.9.0"
5+
}
6+
}

pnpm-lock.yaml

Lines changed: 228 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/build/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
*.retry
22
docker.zip
33
apps
4-
files
4+
files
5+
pack
6+
pack.tar.gz

scripts/build/1.1._ans_build_demo_apps.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@
33
loop:
44
- fn2
55
- word_count
6-
- longchain
7-
- name: App needed data
8-
shell: python3 ../build/1.2_gen_app_need_data.py
6+
- longchain

scripts/build/1._ans_build_sys_with_apps.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
- files
2828
- apps
2929
become: yes
30-
- name: Move files from build to cur dir
31-
shell: mv files pack/test_dir
32-
become: yes
33-
- name: Copy node_config.yaml
34-
copy:
35-
src: node_config.yaml
36-
dest: pack/test_dir/files/node_config.yaml
37-
force: yes
38-
become: yes
30+
# - name: Move files from build to cur dir
31+
# shell: mv files pack/test_dir
32+
# become: yes
33+
# - name: Copy node_config.yaml
34+
# copy:
35+
# src: node_config.yaml
36+
# dest: pack/test_dir/files/node_config.yaml
37+
# force: yes
38+
# become: yes
3939
- name: Move apps from build to cur dir
4040
shell: mv apps pack/test_dir
4141
become: yes
@@ -45,8 +45,8 @@
4545
dest: pack
4646
force: yes
4747
become: yes
48-
- name: Cat run_node.py
49-
shell: cp ../build/run_node.py pack
48+
- name: Copy run_node.py
49+
shell: cp ../build/template/run_node.py pack
5050
become: yes
5151
- name: Permissions
5252
shell: chmod -R 775 pack
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
- hosts: localhost
3+
tasks:
4+
# - name: Build the application on the master node
5+
# become: yes
6+
# shell: |
7+
# cat > /tmp/compile.sh <<'END'
8+
# #!/bin/bash
9+
10+
# echo $PATH
11+
# export PATH="/root/.cargo/bin/:$PATH"
12+
# export PATH="/root/.wasmedge/bin/:$PATH"
13+
# cargo build --release
14+
# END
15+
16+
# bash /tmp/compile.sh
17+
# rm -f /tmp/compile.sh
18+
# mkdir -p scripts/deploy_single_node/test_dir/files
19+
# mkdir -p scripts/deploy_single_node/test_dir/apps
20+
# cp scripts/deploy_single_node/node_config.yaml scripts/deploy_single_node/test_dir/files
21+
- name: Clear pack
22+
shell: rm -rf pack
23+
- name: Install Build Related
24+
include_tasks: ../install/2._ans_install_build.yml
25+
- name: Build sys and demo apps
26+
include_tasks: ../build/1._ans_build_sys_with_apps.yml
27+
# - name: Copy node_config.yaml
28+
# copy:
29+
# src: node_config.yaml
30+
# dest: pack/test_dir/files/node_config.yaml
31+
# force: yes
32+
# become: yes

0 commit comments

Comments
 (0)