mirror of
https://github.com/logos-storage/get.codex.storage.git
synced 2026-01-05 22:53:10 +00:00
Add Codex Testnet scripts
This commit is contained in:
parent
58fd1dd11b
commit
714299dbe0
16
testnet/generate.sh
Normal file
16
testnet/generate.sh
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Codex Testnet - Generate
|
||||||
|
|
||||||
|
# Variables
|
||||||
|
set -a
|
||||||
|
BASE_SCRIPT="https://get.codex.storage/generate.sh"
|
||||||
|
SCRIPT_URL="https://get.codex.storage/testnet/generate.sh"
|
||||||
|
set +a
|
||||||
|
|
||||||
|
# Help
|
||||||
|
if [[ $1 == *"help"* ]] ; then
|
||||||
|
curl -s "${BASE_SCRIPT}" | bash -s -- help
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Generate
|
||||||
|
curl -s "${BASE_SCRIPT}" | bash
|
||||||
44
testnet/index.html
Normal file
44
testnet/index.html
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Join Codex Testnet</title>
|
||||||
|
<style>
|
||||||
|
html * {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.5;
|
||||||
|
color: black;
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h3>
|
||||||
|
Join Codex Testnet - Linux, macOS and Windows (msys2)
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<span style="color:grey;">
|
||||||
|
# Install Codex
|
||||||
|
</span>
|
||||||
|
<br>
|
||||||
|
curl -s https://get.codex.storage/testnet/install.sh | bash
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<span style="color:grey;">
|
||||||
|
# Generate key
|
||||||
|
</span>
|
||||||
|
<br>
|
||||||
|
curl -s https://get.codex.storage/testnet/generate.sh | bash
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<span style="color:grey;">
|
||||||
|
# Run Codex
|
||||||
|
</span>
|
||||||
|
<br>
|
||||||
|
curl -s https://get.codex.storage/testnet/generate.sh | bash
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
17
testnet/install.sh
Normal file
17
testnet/install.sh
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Codex Testnet - Install
|
||||||
|
|
||||||
|
# Variables
|
||||||
|
set -a
|
||||||
|
BASE_SCRIPT="https://get.codex.storage/install.sh"
|
||||||
|
SCRIPT_URL="https://get.codex.storage/testnet/install.sh"
|
||||||
|
INSTALL_DIR="${INSTALL_DIR:-.}"
|
||||||
|
set +a
|
||||||
|
|
||||||
|
# Help
|
||||||
|
if [[ $1 == *"help"* ]] ; then
|
||||||
|
curl -s "${BASE_SCRIPT}" | bash -s -- help
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install
|
||||||
|
curl -s "${BASE_SCRIPT}" | bash
|
||||||
26
testnet/run.sh
Normal file
26
testnet/run.sh
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Codex Testnet - Run
|
||||||
|
|
||||||
|
# Variables
|
||||||
|
set -a
|
||||||
|
BASE_SCRIPT="https://get.codex.storage/run.sh"
|
||||||
|
SCRIPT_URL="https://get.codex.storage/testnet/run.sh"
|
||||||
|
CODEX_BINARY="${CODEX_BINARY:-./codex}"
|
||||||
|
bootstrap_nodes=(
|
||||||
|
--bootstrap-node=spr:CiUIAhIhAiJvIcA_ZwPZ9ugVKDbmqwhJZaig5zKyLiuaicRcCGqLEgIDARo8CicAJQgCEiECIm8hwD9nA9n26BUoNuarCEllqKDnMrIuK5qJxFwIaosQ3d6esAYaCwoJBJ_f8zKRAnU6KkYwRAIgM0MvWNJL296kJ9gWvfatfmVvT-A7O2s8Mxp8l9c8EW0CIC-h-H-jBVSgFjg3Eny2u33qF7BDnWFzo7fGfZ7_qc9P
|
||||||
|
--bootstrap-node=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Ib08tLn4x01EgIDARo8CicAJQgCEiECDJuZHBuioN1QmN5mvOHjeyfmanyO3oQ0hvTy0ufjHTUQh4ifsAYaCwoJBI_0zSiRAnVsKkcwRQIhAJCb_z0E3RsnQrEePdJzMSQrmn_ooHv6mbw1DOh5IbVNAiBbBJrWR8eBV6ftzMd6ofa5khNA2h88OBhMqHCIzSjCeA
|
||||||
|
--bootstrap-node=spr:CiUIAhIhAntGLadpfuBCD9XXfiN_43-V3L5VWgFCXxg4a8uhDdnYEgIDARo8CicAJQgCEiECe0Ytp2l-4EIP1dd-I3_jf5XcvlVaAUJfGDhry6EN2dgQsIufsAYaCwoJBNEmoCiRAnV2KkYwRAIgXO3bzd5VF8jLZG8r7dcLJ_FnQBYp1BcxrOvovEa40acCIDhQ14eJRoPwJ6GKgqOkXdaFAsoszl-HIRzYcXKeb7D9
|
||||||
|
)
|
||||||
|
set +a
|
||||||
|
|
||||||
|
# Help
|
||||||
|
if [[ $1 == *"help"* ]] ; then
|
||||||
|
curl -s "${BASE_SCRIPT}" | bash -s -- help
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Run
|
||||||
|
curl -s "${BASE_SCRIPT}" | bash -s -- ${bootstrap_nodes[@]} $@
|
||||||
Loading…
x
Reference in New Issue
Block a user