mirror of
https://github.com/logos-storage/get.codex.storage.git
synced 2026-01-07 23:53:09 +00:00
feat: add devnet scripts
This commit is contained in:
parent
edf8a238fd
commit
105422cec0
25
README.md
25
README.md
@ -78,3 +78,28 @@ curl -s https://get.codex.storage/testnet/generate.sh | bash
|
||||
# Run Codex
|
||||
curl -s https://get.codex.storage/testnet/run.sh | bash
|
||||
```
|
||||
|
||||
|
||||
## Join Codex Devnet
|
||||
|
||||
### Linux, macOS and Windows (msys2)
|
||||
|
||||
```shell
|
||||
# Create a directory
|
||||
mkdir codex-devnet && cd codex-devnet
|
||||
```
|
||||
|
||||
```shell
|
||||
# Install Codex
|
||||
curl -s https://get.codex.storage/devnet/install.sh | bash
|
||||
```
|
||||
|
||||
```shell
|
||||
# Generate key
|
||||
curl -s https://get.codex.storage/devnet/generate.sh | bash
|
||||
```
|
||||
|
||||
```shell
|
||||
# Run Codex
|
||||
curl -s https://get.codex.storage/devnet/run.sh | bash
|
||||
```
|
||||
|
||||
16
devnet/generate.sh
Executable file
16
devnet/generate.sh
Executable file
@ -0,0 +1,16 @@
|
||||
# Codex Devnet - Generate
|
||||
|
||||
# Variables
|
||||
set -a
|
||||
BASE_SCRIPT="https://get.codex.storage/generate.sh"
|
||||
SCRIPT_URL="https://get.codex.storage/devnet/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
|
||||
52
devnet/index.html
Normal file
52
devnet/index.html
Normal file
@ -0,0 +1,52 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Join Codex Devnet</title>
|
||||
<style>
|
||||
html * {
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
color: black;
|
||||
font-family: monospace;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>
|
||||
Join Codex Devnet - Linux, macOS and Windows (msys2)
|
||||
</h3>
|
||||
|
||||
<p>
|
||||
<span style="color:grey;">
|
||||
# Create a directory
|
||||
</span>
|
||||
<br>
|
||||
mkdir codex-devnet && cd codex-devnet
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span style="color:grey;">
|
||||
# Install Codex
|
||||
</span>
|
||||
<br>
|
||||
curl -s https://get.codex.storage/devnet/install.sh | bash
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span style="color:grey;">
|
||||
# Generate key
|
||||
</span>
|
||||
<br>
|
||||
curl -s https://get.codex.storage/devnet/generate.sh | bash
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span style="color:grey;">
|
||||
# Run Codex
|
||||
</span>
|
||||
<br>
|
||||
curl -s https://get.codex.storage/devnet/run.sh | bash
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
17
devnet/install.sh
Executable file
17
devnet/install.sh
Executable file
@ -0,0 +1,17 @@
|
||||
# Codex Devnet - Install
|
||||
|
||||
# Variables
|
||||
set -a
|
||||
BASE_SCRIPT="https://get.codex.storage/install.sh"
|
||||
SCRIPT_URL="https://get.codex.storage/devnet/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
|
||||
20
devnet/run.sh
Executable file
20
devnet/run.sh
Executable file
@ -0,0 +1,20 @@
|
||||
# Codex Devnet - Run
|
||||
|
||||
# Variables
|
||||
set -a
|
||||
BASE_SCRIPT="https://get.codex.storage/run.sh"
|
||||
SCRIPT_URL="https://get.codex.storage/devnet/run.sh"
|
||||
CODEX_BINARY="${CODEX_BINARY:-./codex}"
|
||||
BOOTSTRAP_NODE_FROM_URL="https://spr.codex.storage/devnet"
|
||||
MARKETPLACE_ADDRESS_FROM_URL="https://marketplace.codex.storage/codex-devnet/latest"
|
||||
CODEX_ETH_PROVIDER="${CODEX_ETH_PROVIDER:-wss://public.sepolia.rpc.status.network/ws}"
|
||||
set +a
|
||||
|
||||
# Help
|
||||
if [[ $1 == *"help"* ]] ; then
|
||||
curl -s "${BASE_SCRIPT}" | bash -s -- help
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Run
|
||||
curl -s "${BASE_SCRIPT}" | bash -s -- $@
|
||||
Loading…
x
Reference in New Issue
Block a user