Skip to content

Commit

Permalink
feat: service manage panel
Browse files Browse the repository at this point in the history
  • Loading branch information
ActivePeter committed Apr 26, 2024
1 parent b42f349 commit ebc6019
Show file tree
Hide file tree
Showing 104 changed files with 10,932 additions and 657 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"vue3snippets.enable-compile-vue-file-on-did-save-code": true
}
18 changes: 16 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ tower-http = {version="0.4.0", features=["cors"]}
tower= "0.4.0"
sled = "0.34.7"

[dependencies.uuid]
version = "1.8.0"
features = [
"v4", # Lets you generate random UUIDs
"fast-rng", # Use a faster (but still sufficiently random) RNG
"macro-diagnostics", # Enable better diagnostics for compile-time UUIDs
]

# slog-envlogger = { version = "2.1.0", optional = true }

[build-dependencies]
Expand Down
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ fn main() -> Result<()> {
"src/general/network/proto_src/raft.proto",
"src/general/network/proto_src/sche.proto",
"src/general/network/proto_src/metric.proto",
"src/general/network/proto_src/remote_sys.proto",
],
&["src/"],
)?;
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"dependencies": {
"@highlightjs/vue-plugin": "^2.1.0",
"highlight.js": "^11.9.0"
}
}
228 changes: 228 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion scripts/build/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
*.retry
docker.zip
apps
files
files
pack
pack.tar.gz
4 changes: 1 addition & 3 deletions scripts/build/1.1._ans_build_demo_apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@
loop:
- fn2
- word_count
- longchain
- name: App needed data
shell: python3 ../build/1.2_gen_app_need_data.py
- longchain
22 changes: 11 additions & 11 deletions scripts/build/1._ans_build_sys_with_apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
- files
- apps
become: yes
- name: Move files from build to cur dir
shell: mv files pack/test_dir
become: yes
- name: Copy node_config.yaml
copy:
src: node_config.yaml
dest: pack/test_dir/files/node_config.yaml
force: yes
become: yes
# - name: Move files from build to cur dir
# shell: mv files pack/test_dir
# become: yes
# - name: Copy node_config.yaml
# copy:
# src: node_config.yaml
# dest: pack/test_dir/files/node_config.yaml
# force: yes
# become: yes
- name: Move apps from build to cur dir
shell: mv apps pack/test_dir
become: yes
Expand All @@ -45,8 +45,8 @@
dest: pack
force: yes
become: yes
- name: Cat run_node.py
shell: cp ../build/run_node.py pack
- name: Copy run_node.py
shell: cp ../build/template/run_node.py pack
become: yes
- name: Permissions
shell: chmod -R 775 pack
Expand Down
32 changes: 32 additions & 0 deletions scripts/build/1.ans_pack_core_and_ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
- hosts: localhost
tasks:
# - name: Build the application on the master node
# become: yes
# shell: |
# cat > /tmp/compile.sh <<'END'
# #!/bin/bash

# echo $PATH
# export PATH="/root/.cargo/bin/:$PATH"
# export PATH="/root/.wasmedge/bin/:$PATH"
# cargo build --release
# END

# bash /tmp/compile.sh
# rm -f /tmp/compile.sh
# mkdir -p scripts/deploy_single_node/test_dir/files
# mkdir -p scripts/deploy_single_node/test_dir/apps
# cp scripts/deploy_single_node/node_config.yaml scripts/deploy_single_node/test_dir/files
- name: Clear pack
shell: rm -rf pack
- name: Install Build Related
include_tasks: ../install/2._ans_install_build.yml
- name: Build sys and demo apps
include_tasks: ../build/1._ans_build_sys_with_apps.yml
# - name: Copy node_config.yaml
# copy:
# src: node_config.yaml
# dest: pack/test_dir/files/node_config.yaml
# force: yes
# become: yes
Loading

0 comments on commit ebc6019

Please sign in to comment.