-
Notifications
You must be signed in to change notification settings - Fork 410
Reef chain #776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
anukulpandey
wants to merge
94
commits into
Dokploy:canary
Choose a base branch
from
anukulpandey:reef-chain
base: canary
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Reef chain #776
Changes from all commits
Commits
Show all changes
94 commits
Select commit
Hold shift + click to select a range
50cc1bc
feat: reef chain bootstrap
anukulpandey f5949cb
fix: missing doc field
anukulpandey 91653cd
feat: reef rpc
anukulpandey 41920f4
fix: meta
anukulpandey 72b2109
feat: toml changes
anukulpandey 8869a34
fix: var in rpc
anukulpandey 35bfe1c
feat: minimal rpc
anukulpandey bba1445
feat: default envs
anukulpandey f63563f
bootnode toml
anukulpandey 2971695
feat: icon
anukulpandey 3e19c09
feat: icon
anukulpandey 61bab62
feat: old icons
anukulpandey d915a3e
Update template.toml
anukulpandey 0c600c6
Update template.toml
anukulpandey 9fa625f
fix: service name
anukulpandey 13ccca6
feat: reef-faucet
anukulpandey 6453f1e
feat: reef-keygen
anukulpandey d0277ff
feat: meta added
anukulpandey 3766185
fix: node_name unused var
anukulpandey 9bf92ed
fix: service name
anukulpandey dc7bf2e
feat: add platform
anukulpandey f47613b
feat: dokploy compatible
anukulpandey eba1896
force: platform
anukulpandey b8dd5e2
feat: linux
anukulpandey 8095cb3
feat: linux-2
anukulpandey bbf5745
feat: eth-rpc
anukulpandey 0a9d59b
fix: image
anukulpandey 4d36eb5
fix: variables
anukulpandey bcde700
feat: bootnode update
anukulpandey ffad5d2
feat: spec generator running
anukulpandey aa0d3ba
feat: validator
anukulpandey 489f393
fix: meta.json for validator
anukulpandey bf6d27c
fix: exec binary for reef-validator
anukulpandey b8d1e87
feat: validator start
anukulpandey 7b80d7a
feat: remove container name
anukulpandey a0683df
fix: env var for eth-rpc
anukulpandey 6e40b9a
feat: custom spec generator
anukulpandey 9c4c147
fix: image for reef-spec
anukulpandey 1ef6b3c
feat: dev cluster
anukulpandey 62d8e61
fix: name
anukulpandey 90eb1ae
fix: meta.json
anukulpandey 3e430b3
fix: wget
anukulpandey 4af929d
feat: reef-* removed
anukulpandey 7045f5e
feat: reef-dev cluster
anukulpandey 6bbeec3
Update docker-compose.yml
Siumauricio 593d3d2
feat: close rpc ports for reef-dev-cluster
anukulpandey e74cb02
Merge branch 'reef-chain' of https://github.com/anukulpandey/dokploy-…
anukulpandey 4f3ed19
feat: removed rpc ports from validator
anukulpandey 12847f4
feat: rpc node seperate
anukulpandey 0117938
feat: rpc node
anukulpandey 93c6307
feat: reef-rpc
anukulpandey 5ba5320
fix: meta
anukulpandey 49fcc4e
feat: removed version from docker-compose bootstrap
anukulpandey 67828bf
feat: expose 9944 for dev cluster
anukulpandey 4de4fcb
fix: start-rpc script
anukulpandey 4cdff52
feat: eth-rpc rpc host
anukulpandey 0afec75
fix: flag for eth-rpc external rpc connections
anukulpandey 1d42a67
feat: cors for all
anukulpandey 247ca6a
Merge branch 'canary' into reef-chain
anukulpandey c296fa0
fix: meta.json missing ]
anukulpandey 05ea5ba
feat:process meta
anukulpandey 5beccb1
feat: removed container_name from docker-compose
anukulpandey 14d369f
feat: port and p2p port must be string for bootnode
anukulpandey d0fed69
feat: ports for reef dev cluster
anukulpandey e991677
fix: ports for reef-dev-cluster
anukulpandey 7469a84
feat: all ports to strings
anukulpandey 819e26d
Wire Reef templates to external scripts repo
anukulpandey 6c16481
Merge branch 'Dokploy:canary' into reef-chain
anukulpandey 17f8f45
fix: align reef templates with dokploy rules
anukulpandey e7f555a
chore: process meta.json
anukulpandey c2fa2ee
fix: route reef spec generator via subdomain
anukulpandey b9c8876
feat: make reef dev cluster self-contained
anukulpandey 06e46ec
fix: make reef templates amd64 compatible
anukulpandey 20795c4
chore: update reef images to latest tags
anukulpandey 02da0d9
fix: make reef dev cluster bootstrap portable
anukulpandey 2eed1f9
fix: bootstrap reef dev cluster from pinned assets
anukulpandey def2dca
fix: make reef dev cluster zero-config
anukulpandey 77cbb62
fix: pin reef dev cluster bootstrap
anukulpandey fa4925a
feat: add eth rpc to reef dev cluster
anukulpandey 3b65138
fix: pin reef dev cluster eth rpc assets
anukulpandey 86bdfc6
fix: align reef traefik routing
anukulpandey a396077
fix: pin reef dev cluster traefik updates
anukulpandey 182735b
feat: add reef faucet frontend
anukulpandey dfcac1a
fix: pin reef faucet frontend assets
anukulpandey 652d7cb
fix: make reef dev cluster eth rpc dokploy-safe
anukulpandey c095e5d
fix: gate reef dev cluster eth rpc on health
anukulpandey 74b5720
fix: restore reef dev cluster ws rpc
anukulpandey 5e8b053
fix: pin reef dev cluster ws assets
anukulpandey 1d644e4
fix: proxy reef dev cluster ws host headers
anukulpandey 8237a34
fix: pin reef dev cluster host proxy assets
anukulpandey d8a8242
fix: raise reef faucet drip amount
anukulpandey 03b1101
fix: pin reef faucet amount assets
anukulpandey 66c59e6
Update docker-compose.yml
anukulpandey ccb0259
Merge remote-tracking branch 'origin/canary' into reef-chain
Siumauricio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| version: "3.8" | ||
|
|
||
| services: | ||
| reef-bootnode: | ||
| image: anukulpandey/reef-chain-node:latest | ||
| restart: unless-stopped | ||
| working_dir: /workspace | ||
|
|
||
| volumes: | ||
| - ./output:/output | ||
|
|
||
| expose: | ||
| - "${PORT}" | ||
| - "${P2P_PORT}" | ||
|
|
||
| environment: | ||
| V1_ADDR: ${V1_ADDR} | ||
| V1_SEED: ${V1_SEED} | ||
|
|
||
| V2_ADDR: ${V2_ADDR} | ||
| V2_SEED: ${V2_SEED} | ||
|
|
||
| V3_ADDR: ${V3_ADDR} | ||
| V3_SEED: ${V3_SEED} | ||
|
|
||
| PORT: ${PORT} | ||
| P2P_PORT: ${P2P_PORT} | ||
|
|
||
| entrypoint: /bin/sh | ||
| command: -c " | ||
| set -e && | ||
|
|
||
| echo '📦 Installing dependencies...' && | ||
| apt-get update && | ||
| apt-get install -y python3 wget ca-certificates && | ||
|
|
||
| echo '📥 Downloading bootstrap scripts...' && | ||
| mkdir -p /workspace/bootstrap/scripts && | ||
| wget -O /workspace/bootstrap/scripts/run.sh \ | ||
| https://raw.githubusercontent.com/anukulpandey/dokploy-reef-chain-scripts/52c3e30d06bba10936aea2db9740eafd76b3ac40/bootstrap/scripts/run.sh && | ||
| wget -O /workspace/bootstrap/scripts/update-spec.py \ | ||
| https://raw.githubusercontent.com/anukulpandey/dokploy-reef-chain-scripts/52c3e30d06bba10936aea2db9740eafd76b3ac40/bootstrap/scripts/update-spec.py && | ||
| wget -O /workspace/bootstrap/scripts/update-spec.sh \ | ||
| https://raw.githubusercontent.com/anukulpandey/dokploy-reef-chain-scripts/52c3e30d06bba10936aea2db9740eafd76b3ac40/bootstrap/scripts/update-spec.sh && | ||
|
|
||
| echo '🔧 Making scripts executable...' && | ||
| chmod +x /workspace/bootstrap/scripts/run.sh && | ||
| chmod +x /workspace/bootstrap/scripts/update-spec.sh && | ||
|
|
||
| echo '🚀 Running spec generator + bootnode:' && | ||
| exec /workspace/bootstrap/scripts/run.sh" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "id": "reef-bootnode", | ||
| "name": "Reef Chain - Bootnode Validator", | ||
| "version": "1", | ||
| "description": "Runs bootnode for a custom Reef Chain cluster", | ||
| "links": { | ||
| "github": "https://github.com/reef-chain/chain-upgrade", | ||
| "website": "https://hub.docker.com/repository/docker/anukulpandey/reef-chain-node", | ||
| "docs": "https://docs.reef.io/" | ||
| }, | ||
| "logo": "reef.svg", | ||
| "tags": [ | ||
| "reef-chain", | ||
| "validator", | ||
| "self-hosted", | ||
| "evm" | ||
| ] | ||
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| [variables] | ||
| V1_ADDR = "" | ||
| V1_SEED = "" | ||
|
|
||
| V2_ADDR = "" | ||
| V2_SEED = "" | ||
|
|
||
| V3_ADDR = "" | ||
| V3_SEED = "" | ||
|
|
||
| PORT="8000" | ||
| P2P_PORT="30335" | ||
|
|
||
| [[config.domains]] | ||
| serviceName = "reef-bootnode" | ||
| port = 8000 | ||
| host = "${domain}" | ||
| path = "/" | ||
|
|
||
| [[config.domains]] | ||
| serviceName = "reef-bootnode" | ||
| port = 8000 | ||
| host = "spec.${domain}" | ||
| path = "/" | ||
|
|
||
| [config.env] | ||
| V1_ADDR = "" | ||
| V1_SEED = "" | ||
|
|
||
| V2_ADDR = "" | ||
| V2_SEED = "" | ||
|
|
||
| V3_ADDR = "" | ||
| V3_SEED = "" | ||
|
|
||
| PORT="8000" | ||
| P2P_PORT="30335" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| services: | ||
| reef-dev-cluster: | ||
| image: anukulpandey/reef-chain-node:latest | ||
| restart: unless-stopped | ||
| working_dir: /workspace | ||
|
|
||
| environment: | ||
| v1sec: "${v1sec:-}" | ||
| v2sec: "${v2sec:-}" | ||
| v3sec: "${v3sec:-}" | ||
| faucetsec: "${faucetsec:-}" | ||
| DEFAULT_AMOUNT: "${DEFAULT_AMOUNT:-2000}" | ||
| MAX_AMOUNT: "${MAX_AMOUNT:-2000}" | ||
|
|
||
| volumes: | ||
| - reef-dev-cluster-state:/workspace/state | ||
| - reef-dev-cluster-download:/workspace/download | ||
|
|
||
| expose: | ||
| - "30335" | ||
| - "30333" | ||
| - "30334" | ||
| - "30336" | ||
| - "8001" | ||
| - "9944" | ||
| - "9945" | ||
| - "8080" | ||
|
|
||
| healthcheck: | ||
| test: | ||
| - CMD-SHELL | ||
| - bash -lc 'exec 3<>/dev/tcp/127.0.0.1/9944' | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 30 | ||
| start_period: 300s | ||
|
|
||
| entrypoint: /bin/sh | ||
|
|
||
| command: | ||
| - -c | ||
| - | | ||
| set -e | ||
|
|
||
| export DEBIAN_FRONTEND=noninteractive | ||
|
|
||
| echo '📦 Installing required tools...' | ||
|
|
||
| apt-get update | ||
|
|
||
| apt-get install -y \ | ||
| wget \ | ||
| curl \ | ||
| python3 \ | ||
| ca-certificates \ | ||
| gnupg \ | ||
| nginx | ||
|
|
||
| mkdir -p \ | ||
| /etc/apt/keyrings \ | ||
| /workspace \ | ||
| /workspace/state \ | ||
| /workspace/download | ||
|
|
||
| echo '🔑 Configuring NodeSource repository...' | ||
|
|
||
| curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \ | ||
| | gpg --batch --yes --dearmor -o /etc/apt/keyrings/nodesource.gpg | ||
|
|
||
| echo 'deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main' \ | ||
| > /etc/apt/sources.list.d/nodesource.list | ||
|
|
||
| apt-get update | ||
|
|
||
| apt-get install -y nodejs | ||
|
|
||
| echo '📥 Downloading cluster bootstrap...' | ||
|
|
||
| wget -O /workspace/run-cluster.sh \ | ||
| https://raw.githubusercontent.com/anukulpandey/dokploy-templates/d8a82420dad013a3eb7e5d8afc0b9f2700a0045a/blueprints/reef-dev-cluster/run-cluster.sh | ||
|
|
||
| echo '🔧 Making script executable...' | ||
|
|
||
| chmod +x /workspace/run-cluster.sh | ||
|
|
||
| echo '🚀 Starting self-contained network...' | ||
|
|
||
| exec env TEMPLATE_ASSET_REF=d8a82420dad013a3eb7e5d8afc0b9f2700a0045a \ | ||
| /workspace/run-cluster.sh | ||
|
|
||
| reef-dev-cluster-eth-rpc: | ||
| image: anukulpandey/reef-chain-eth-rpc:latest | ||
| restart: unless-stopped | ||
| working_dir: /workspace | ||
|
|
||
| depends_on: | ||
| reef-dev-cluster: | ||
| condition: service_healthy | ||
|
|
||
| expose: | ||
| - "8545" | ||
|
|
||
| environment: | ||
| NODE_RPC_URL: ws://reef-dev-cluster:9945 | ||
| PORT: "8545" | ||
|
|
||
| healthcheck: | ||
| test: | ||
| - CMD-SHELL | ||
| - bash -lc 'exec 3<>/dev/tcp/127.0.0.1/8545' | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 12 | ||
| start_period: 20s | ||
|
|
||
| entrypoint: /bin/sh | ||
|
|
||
| command: | ||
| - -c | ||
| - | | ||
| exec eth-rpc \ | ||
| --node-rpc-url "$$NODE_RPC_URL" \ | ||
| --rpc-port "$$PORT" \ | ||
| --rpc-external \ | ||
| --rpc-cors all | ||
|
|
||
| volumes: | ||
| reef-dev-cluster-state: | ||
| reef-dev-cluster-download: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "name": "reef-dev-cluster-faucet", | ||
| "version": "1.0.0", | ||
| "private": true, | ||
| "description": "HTTP faucet for a self-contained Reef dev cluster", | ||
| "main": "server.js", | ||
| "scripts": { | ||
| "start": "node server.js" | ||
| }, | ||
| "dependencies": { | ||
| "@polkadot/api": "^16.4.8" | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mainwith no integrity verificationAll seven templates download shell/Python scripts from
https://raw.githubusercontent.com/anukulpandey/dokploy-reef-chain-scripts/main/…at container startup without any hash check. Because the URL points to the mutablemainbranch, any future push to that repo (or a compromise of it) will silently replace the scripts executed in every deployment on next restart, with no way for the operator to detect the change. Consider pinning to a specific commit SHA or git tag in the URL, or verifying a checksum after download.