mirror of
https://github.com/logos-storage/logos-storage-DAppNodePackage.git
synced 2026-01-05 23:03:06 +00:00
chore: update codex to version 0.2.0 (#1)
* chore: update codex to version 0.2.0 * feat: adjust package to codex 0.2.0 * setup wizard: update entries description * docs: update packages links
This commit is contained in:
parent
71d795bf0a
commit
5ea3457f88
@ -1,4 +1,4 @@
|
|||||||
# Codex Dappnode package
|
# Codex Dappnode packages
|
||||||
|
|
||||||
<p align="center" width="100%">
|
<p align="center" width="100%">
|
||||||
<img src="avatar-codex.png" alt="Codex Dappnode package" />
|
<img src="avatar-codex.png" alt="Codex Dappnode package" />
|
||||||
@ -29,10 +29,15 @@
|
|||||||
# Directory
|
# Directory
|
||||||
cd DAppNodePackage-codex
|
cd DAppNodePackage-codex
|
||||||
|
|
||||||
# Build all packages ~ 10 minutes
|
# Build all packages (~ 10 minutes) - use your IPFS package Container IP
|
||||||
npx @dappnode/dappnodesdk build --all-variants --provider=http://172.33.0.6:5001
|
npx @dappnode/dappnodesdk build --all-variants --provider=http://172.33.0.6:5001
|
||||||
```
|
```
|
||||||
|
|
||||||
|
| Package | Link |
|
||||||
|
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| Codex | [`/ipfs/QmQjh7iCM97U7rAzALsJz7brwLttrwYirG6EKYhRAA3qys`](http://my.dappnode/installer/public/%2Fipfs%2FQmQjh7iCM97U7rAzALsJz7brwLttrwYirG6EKYhRAA3qys) |
|
||||||
|
| Codex with local Geth | [`/ipfs/Qmdpnv5Kev3moyobAKbKhU7of1DywJ5VEDKd3f2ti199tB`](http://my.dappnode/installer/public/%2Fipfs%2FQmdpnv5Kev3moyobAKbKhU7of1DywJ5VEDKd3f2ti199tB) |
|
||||||
|
|
||||||
|
|
||||||
## Todo
|
## Todo
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ fi
|
|||||||
# Parameters
|
# Parameters
|
||||||
if [[ -z "${CODEX_NAT}" ]]; then
|
if [[ -z "${CODEX_NAT}" ]]; then
|
||||||
if [[ "${NAT_IP_AUTO}" == "true" && -z "${NAT_PUBLIC_IP_AUTO}" ]]; then
|
if [[ "${NAT_IP_AUTO}" == "true" && -z "${NAT_PUBLIC_IP_AUTO}" ]]; then
|
||||||
export CODEX_NAT=$(hostname --ip-address)
|
export CODEX_NAT="extip:$(hostname --ip-address)"
|
||||||
echo "Private: CODEX_NAT=${CODEX_NAT}"
|
echo "Private: CODEX_NAT=${CODEX_NAT}"
|
||||||
elif [[ -n "${NAT_PUBLIC_IP_AUTO}" ]]; then
|
elif [[ -n "${NAT_PUBLIC_IP_AUTO}" ]]; then
|
||||||
# Run for 60 seconds if fail
|
# Run for 60 seconds if fail
|
||||||
@ -20,9 +20,10 @@ if [[ -z "${CODEX_NAT}" ]]; then
|
|||||||
SECONDS=0
|
SECONDS=0
|
||||||
SLEEP=5
|
SLEEP=5
|
||||||
while (( SECONDS < WAIT )); do
|
while (( SECONDS < WAIT )); do
|
||||||
export CODEX_NAT=$(curl -s -f -m 5 "${NAT_PUBLIC_IP_AUTO}")
|
IP=$(curl -s -f -m 5 "${NAT_PUBLIC_IP_AUTO}")
|
||||||
# Check if exit code is 0 and returned value is not empty
|
# Check if exit code is 0 and returned value is not empty
|
||||||
if [[ $? -eq 0 && -n "${CODEX_NAT}" ]]; then
|
if [[ $? -eq 0 && -n "${IP}" ]]; then
|
||||||
|
export CODEX_NAT="extip:${IP}"
|
||||||
echo "Public: CODEX_NAT=${CODEX_NAT}"
|
echo "Public: CODEX_NAT=${CODEX_NAT}"
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"upstream": [
|
"upstream": [
|
||||||
{
|
{
|
||||||
"repo": "codex-storage/nim-codex",
|
"repo": "codex-storage/nim-codex",
|
||||||
"version": "0.1.9",
|
"version": "0.2.0",
|
||||||
"arg": "UPSTREAM_VERSION_CODEX_NODE"
|
"arg": "UPSTREAM_VERSION_CODEX_NODE"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -5,7 +5,7 @@ services:
|
|||||||
context: ./codex-node
|
context: ./codex-node
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
UPSTREAM_VERSION_CODEX_NODE: 0.1.9
|
UPSTREAM_VERSION_CODEX_NODE: 0.2.0
|
||||||
image: codex-node.public.dappnode.eth:0.1.0
|
image: codex-node.public.dappnode.eth:0.1.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@ -25,7 +25,7 @@ fields:
|
|||||||
service: [codex-node, geth]
|
service: [codex-node, geth]
|
||||||
title: Codex network
|
title: Codex network
|
||||||
description: >-
|
description: >-
|
||||||
- **`Testnet`** - Codex Testnet network. Please check the [docs](https://docs.codex.storage/networks/networks) for available networks.
|
- **`Testnet`** - Codex Testnet network. Check the [docs](https://docs.codex.storage/networks/networks) for available networks.
|
||||||
enum:
|
enum:
|
||||||
- testnet
|
- testnet
|
||||||
required: true
|
required: true
|
||||||
@ -68,7 +68,7 @@ fields:
|
|||||||
description: >-
|
description: >-
|
||||||
Address of deployed Marketplace contract.
|
Address of deployed Marketplace contract.
|
||||||
|
|
||||||
We should set this variable **only if we would like to override auto-detected address**. Please check the address for the network you are using in the [docs](https://docs.codex.storage/networks/networks).
|
We should set this variable **only if we would like to override auto-detected address**. Check the address for the network you are using in the [docs](https://docs.codex.storage/networks/networks).
|
||||||
pattern: "^0x[a-fA-F0-9]{40}$"
|
pattern: "^0x[a-fA-F0-9]{40}$"
|
||||||
patternErrorMessage: Must be a valid Ethereum address
|
patternErrorMessage: Must be a valid Ethereum address
|
||||||
required: false
|
required: false
|
||||||
@ -83,7 +83,7 @@ fields:
|
|||||||
description: >-
|
description: >-
|
||||||
Address of deployed Marketplace contract.
|
Address of deployed Marketplace contract.
|
||||||
|
|
||||||
We should set this variable because we are running in **Codex `storage node`** mode. Please check the address for the network you are using in the [docs](https://docs.codex.storage/networks/networks).
|
We should set this variable because we are running in **Codex `storage node`** mode. Check the address for the network you are using in the [docs](https://docs.codex.storage/networks/networks).
|
||||||
pattern: "^0x[a-fA-F0-9]{40}$"
|
pattern: "^0x[a-fA-F0-9]{40}$"
|
||||||
patternErrorMessage: Must be a valid Ethereum address
|
patternErrorMessage: Must be a valid Ethereum address
|
||||||
required: true
|
required: true
|
||||||
@ -109,8 +109,8 @@ fields:
|
|||||||
service: codex-node
|
service: codex-node
|
||||||
title: CODEX_NAT
|
title: CODEX_NAT
|
||||||
description: >-
|
description: >-
|
||||||
Public IP address to announce behind a NAT.
|
Specify method to use for determining public address. Must be one of: `any`, `none`, `upnp`, `pmp`, `extip:<IP>`, default = `any`. Check the [docs](https://docs.codex.storage/learn/run#nat-configuration) for more details.
|
||||||
pattern: "^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0).){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0)$"
|
pattern: "^(any|none|upnp|pmp|extip:((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0).){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0))$"
|
||||||
patternErrorMessage: Must be a valid IP address
|
patternErrorMessage: Must be a valid IP address
|
||||||
required: true
|
required: true
|
||||||
if: { "IP_MODE": { "enum": ["manual"] } }
|
if: { "IP_MODE": { "enum": ["manual"] } }
|
||||||
@ -209,7 +209,7 @@ fields:
|
|||||||
service: codex-node
|
service: codex-node
|
||||||
title: EXTRA_OPTS
|
title: EXTRA_OPTS
|
||||||
description: >-
|
description: >-
|
||||||
Extra options to pass to the Codex node. Check [Codex CLI options](https://docs.codex.storage/learn/run#cli-options) for more details.
|
Extra options to pass to the Codex node. Check the [docs](https://docs.codex.storage/learn/run#cli-options) for more details.
|
||||||
pattern: "^.*$"
|
pattern: "^.*$"
|
||||||
patternErrorMessage: Must be a valid string
|
patternErrorMessage: Must be a valid string
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user