-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c83153
commit f64a518
Showing
30 changed files
with
173 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- name: Copy wasm | ||
include_tasks: "../build/1.1.1_ans_build_demo_apps_each.yml" | ||
loop: | ||
- fn2 | ||
- word_count | ||
- longchain | ||
- name: App needed data | ||
shell: python3 ../build/1.2_gen_app_need_data.py |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
# NODE_ID=$1 | ||
# wasm_serverless $NODE_ID test_dir | ||
|
||
import os | ||
import sys | ||
|
||
|
||
CUR_FPATH = os.path.abspath(__file__) | ||
CUR_FDIR = os.path.dirname(CUR_FPATH) | ||
os.chdir(CUR_FDIR) | ||
|
||
|
||
# export RUST_BACKTRACE=1 | ||
os.environ['RUST_BACKTRACE'] = '1' | ||
# export RUST_LOG=info,wasm_serverless=debug | ||
os.environ['RUST_LOG'] = 'info,wasm_serverless=debug' | ||
|
||
|
||
# NODE_ID=$1 | ||
NODE_ID = sys.argv[1] | ||
# wasm_serverless $NODE_ID test_dir | ||
os.system(f'./wasm_serverless {NODE_ID} test_dir') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ promtail.yaml | |
gen_ansible.ini | ||
gen_docker_stack.yml | ||
compose_* | ||
/test_dir | ||
/pack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export LANG=C.UTF-8 | ||
ansible-playbook -vvv scripts/deploy_cluster/2.ans_redeploy_cluster.yml -i scripts/deploy_cluster/gen_ansible.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
test_dir | ||
pack/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export LANG=C.UTF-8 | ||
source $HOME/.cargo/env | ||
ansible-playbook -vv scripts/deploy_single_node/1.ans_build.yml -i scripts/local_ansible_conf.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.