Skip to content

Commit

Permalink
update user metrics URL to shifu.dev (Edgenesis#589)
Browse files Browse the repository at this point in the history
* update URL to shifu.dev

* update docs/README.md
  • Loading branch information
tomqin93 authored Apr 26, 2023
1 parent 5b47114 commit e52cf95
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# ***Shifu*** Docs

Note: This folder is for ***Shifu*** developers. If you want to use ***Shifu***, please refer to [shifu.run](https://shifu.run).
Note: This folder is for ***Shifu*** developers. If you want to use ***Shifu***, please refer to [shifu.dev](https://shifu.dev).
14 changes: 7 additions & 7 deletions test/scripts/deviceshifu-demo-aio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@ if [ $1 = "build_demo" ]; then
elif [[ $1 = "run_demo" ]]; then
echo "running demo"
IP_ADDRESS=$( curl cip.cc --connect-timeout 5 | head -n1 | cut -d ":" -f 2 | xargs)
curl -X POST https://telemetry.shifu.run/demo-stat/ \
curl -X POST https://telemetry.shifu.dev/demo-stat/ \
-H 'Content-Type: application/json' \
-d "{\"ip\":\"$IP_ADDRESS\",\"source\":\"shifu_demo_installation_script\",\"task\":\"run_demo_script\",\"step\":\"begin\"}" > /dev/null 2>&1 || true
rm -rf $RUN_DIR
mkdir -p $RUN_DIR
tar -xzvf $aio_tar_gz_name -C $RUN_DIR

curl -X POST https://telemetry.shifu.run/demo-stat/ \
curl -X POST https://telemetry.shifu.dev/demo-stat/ \
-H 'Content-Type: application/json' \
-d "{\"ip\":\"$IP_ADDRESS\",\"source\":\"shifu_demo_installation_script\",\"task\":\"run_demo_script\",\"step\":\"after untar\"}" > /dev/null 2>&1 || true

Expand All @@ -147,7 +147,7 @@ elif [[ $1 = "run_demo" ]]; then
(cd $RUN_DIR/$UTIL_DIR && chmod +x ./kubectl && mv ./kubectl ${BIN_DIR}/kubectl)
(cd $RUN_DIR/$UTIL_DIR && ls -lh)

curl -X POST https://telemetry.shifu.run/demo-stat/ \
curl -X POST https://telemetry.shifu.dev/demo-stat/ \
-H 'Content-Type: application/json' \
-d "{\"ip\":\"$IP_ADDRESS\",\"source\":\"shifu_demo_installation_script\",\"task\":\"run_demo_script\",\"step\":\"after kind and kubectl install\"}" > /dev/null 2>&1 || true

Expand All @@ -156,7 +156,7 @@ elif [[ $1 = "run_demo" ]]; then
${BIN_DIR}/kind delete cluster
${BIN_DIR}/kind create cluster --image=$KIND_IMG

curl -X POST https://telemetry.shifu.run/demo-stat/ \
curl -X POST https://telemetry.shifu.dev/demo-stat/ \
-H 'Content-Type: application/json' \
-d "{\"ip\":\"$IP_ADDRESS\",\"source\":\"shifu_demo_installation_script\",\"task\":\"run_demo_script\",\"step\":\"after kind cluster create\"}" > /dev/null 2>&1 || true

Expand All @@ -165,7 +165,7 @@ elif [[ $1 = "run_demo" ]]; then
${BIN_DIR}/kind load docker-image $shifu_image:$SHIFU_IMG_VERSION
done

curl -X POST https://telemetry.shifu.run/demo-stat/ \
curl -X POST https://telemetry.shifu.dev/demo-stat/ \
-H 'Content-Type: application/json' \
-d "{\"ip\":\"$IP_ADDRESS\",\"source\":\"shifu_demo_installation_script\",\"task\":\"run_demo_script\",\"step\":\"after kind load Shifu images\"}" > /dev/null 2>&1 || true

Expand All @@ -177,14 +177,14 @@ elif [[ $1 = "run_demo" ]]; then
${BIN_DIR}/kind load docker-image $util_image
done

curl -X POST https://telemetry.shifu.run/demo-stat/ \
curl -X POST https://telemetry.shifu.dev/demo-stat/ \
-H 'Content-Type: application/json' \
-d "{\"ip\":\"$IP_ADDRESS\",\"source\":\"shifu_demo_installation_script\",\"task\":\"run_demo_script\",\"step\":\"after kind load Util images\"}" > /dev/null 2>&1 || true

${BIN_DIR}/kubectl apply -f $RUN_DIR/$SHIFU_DIR/shifu_install.yml
${BIN_DIR}/kubectl apply -f $RUN_DIR/$SHIFU_DIR/demo_device/edgedevice-agv

curl -X POST https://telemetry.shifu.run/demo-stat/ \
curl -X POST https://telemetry.shifu.dev/demo-stat/ \
-H 'Content-Type: application/json' \
-d "{\"ip\":\"$IP_ADDRESS\",\"source\":\"shifu_demo_installation_script\",\"task\":\"run_demo_script\",\"step\":\"after kubectl apply\"}" > /dev/null 2>&1 || true

Expand Down
2 changes: 1 addition & 1 deletion test/scripts/shifu-demo-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ setup_verify_os_and_arch() {

setup_verify_os_and_arch

curl -LO https://demo.shifu.run/demo-content/shifu_demo_aio_${OS}_${ARCH}.tar
curl -LO https://demo.shifu.dev/demo-content/shifu_demo_aio_${OS}_${ARCH}.tar

rm -rf testdir && mkdir testdir

Expand Down

0 comments on commit e52cf95

Please sign in to comment.