From 6448618ca71bb3bedf8cf84fac20759fb877e326 Mon Sep 17 00:00:00 2001 From: ThatBen Date: Tue, 18 Jun 2024 14:57:25 +0200 Subject: [PATCH] Fixes run scripts for linux --- scripts/linux/run_bootstrap.bat | 14 -------------- scripts/linux/run_bootstrap.sh | 13 +++++++++++++ scripts/linux/run_storage.bat | 30 ------------------------------ scripts/linux/run_storage.sh | 31 +++++++++++++++++++++++++++++++ 4 files changed, 44 insertions(+), 44 deletions(-) delete mode 100644 scripts/linux/run_bootstrap.bat create mode 100755 scripts/linux/run_bootstrap.sh delete mode 100644 scripts/linux/run_storage.bat create mode 100755 scripts/linux/run_storage.sh diff --git a/scripts/linux/run_bootstrap.bat b/scripts/linux/run_bootstrap.bat deleted file mode 100644 index 50c675f..0000000 --- a/scripts/linux/run_bootstrap.bat +++ /dev/null @@ -1,14 +0,0 @@ -set LOCALIP="192.168.178.138" - -start /b codex-v0.1.0-windows-amd64.exe ^ - --data-dir=data_bootstrap ^ - --nat=%LOCALIP% ^ - --api-port=8080 ^ - --disc-port=8090 ^ - --listen-addrs=/ip4/0.0.0.0/tcp/8070 - -timeout 5 - -cls - -curl http://localhost:8080/api/codex/v1/debug/info diff --git a/scripts/linux/run_bootstrap.sh b/scripts/linux/run_bootstrap.sh new file mode 100755 index 0000000..492c1bc --- /dev/null +++ b/scripts/linux/run_bootstrap.sh @@ -0,0 +1,13 @@ +LOCALIP="192.168.178.138" + +./codex-v0.1.0-linux-amd64 \ + --data-dir=data_bootstrap \ + --nat=${LOCALIP} \ + --api-port=8080 \ + --disc-port=8090 \ + --listen-addrs=/ip4/0.0.0.0/tcp/8070 \ + & + +sleep 5 + +curl http://localhost:8080/api/codex/v1/debug/info diff --git a/scripts/linux/run_storage.bat b/scripts/linux/run_storage.bat deleted file mode 100644 index b27463e..0000000 --- a/scripts/linux/run_storage.bat +++ /dev/null @@ -1,30 +0,0 @@ -set LOCALIP="192.168.178.138" -set BOOTSPR="spr:CiUIAhIhA7hDRTkU9Pb_Wt4qdoN_IsRGuDL6bucyvMqbE3F7UmFREgIDARo8CicAJQgCEiEDuENFORT09v9a3ip2g38ixEa4Mvpu5zK8ypsTcXtSYVEQ1uHFswYaCwoJBMCosoqRAh-aKkcwRQIhAKdz-V1ne8GB-QlUmXnA4_EO1WIisy6PPBJDzRRLn02UAiB4QmAVgBgJ94OxnrTo7c_zgsjDJXL_E0_KlBb2KaFzPw" - -@REM Quota = 11 GB -@REM Availability = 10 GB - -start /b codex-v0.1.0-prover-windows-amd64.exe ^ - --data-dir=data_storage ^ - --circuit-dir=circuit ^ - --storage-quota=11811160064 ^ - --nat=%LOCALIP% ^ - --api-port=8180 ^ - --disc-port=8190 ^ - --listen-addrs=/ip4/0.0.0.0/tcp/8170 ^ - --bootstrap-node=%BOOTSPR% ^ - persistence ^ - --eth-private-key=eth.key ^ - --eth-provider=https://rpc.testnet.codex.storage ^ - --marketplace-address=0x4cBDfab37baB0AA3AC69A7b12C4396907dfF5227 ^ - prover - -timeout 30 - -cls - -curl http://localhost:8180/api/codex/v1/debug/info - -timeout 5 - -curl --request POST --url http://localhost:8180/api/codex/v1/sales/availability --header "Content-Type: application/json" --data "{\"totalSize\": \"10737418240\", \"duration\": \"86400\", \"minPrice\": \"1\", \"maxCollateral\": \"9999999999\"}" diff --git a/scripts/linux/run_storage.sh b/scripts/linux/run_storage.sh new file mode 100755 index 0000000..1926773 --- /dev/null +++ b/scripts/linux/run_storage.sh @@ -0,0 +1,31 @@ +LOCALIP=192.168.178.138 +BOOTSPR="spr:CiUIAhIhA7hDRTkU9Pb_Wt4qdoN_IsRGuDL6bucyvMqbE3F7UmFREgIDARo8CicAJQgCEiEDuENFORT09v9a3ip2g38ixEa4Mvpu5zK8ypsTcXtSYVEQ1uHFswYaCwoJBMCosoqRAh-aKkcwRQIhAKdz-V1ne8GB-QlUmXnA4_EO1WIisy6PPBJDzRRLn02UAiB4QmAVgBgJ94OxnrTo7c_zgsjDJXL_E0_KlBb2KaFzPw" + +# Quota = 11 GB +# Availability = 10 GB + +./codex-v0.1.0-prover-linux-amd64 \ + --data-dir=data_storage \ + --circuit-dir=circuit \ + --storage-quota=11811160064 \ + --nat=${LOCALIP} \ + --api-port=8180 \ + --disc-port=8190 \ + --listen-addrs=/ip4/0.0.0.0/tcp/8170 \ + --bootstrap-node=${BOOTSPR} \ + persistence \ + --eth-private-key=eth.key \ + --eth-provider=https://rpc.testnet.codex.storage \ + --marketplace-address=0x4cBDfab37baB0AA3AC69A7b12C4396907dfF5227 \ + prover \ + & + +sleep 30 + +curl http://localhost:8180/api/codex/v1/debug/info + +sleep 5 + +curl --request POST --url http://localhost:8180/api/codex/v1/sales/availability --header "Content-Type: application/json" --data "{\"totalSize\": \"10737418240\", \"duration\": \"86400\", \"minPrice\": \"1\", \"maxCollateral\": \"9999999999\"}" + +