Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
metadeploy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nebula
metadeploy
Commits
73618d7a
Commit
73618d7a
authored
Oct 23, 2023
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c790e95c
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
111 additions
and
9 deletions
+111
-9
docker-compose.yml
docker-compose.yml
+53
-9
config.toml
nebula/nebula1/config.toml
+0
-0
.gitkeep
nebula/nebula1/data/chain/.gitkeep
+0
-0
genesis.json
nebula/nebula1/genesis.json
+0
-0
config.toml
nebula/nebula2/config.toml
+4
-0
.gitkeep
nebula/nebula2/data/chain/.gitkeep
+0
-0
genesis.json
nebula/nebula2/genesis.json
+35
-0
start.sh
net/net1/start.sh
+17
-0
prometheus.yml
prometheus/prometheus.yml
+2
-0
No files found.
docker-compose.yml
View file @
73618d7a
...
...
@@ -4,15 +4,33 @@ services:
net
:
image
:
net
container_name
:
net
entrypoint
:
/root/MetaNet --single-node --enable-prom
volumes
:
-
./net/net1/:/root/net/
entrypoint
:
/bin/sh /root/net/start.sh
ports
:
-
"
38010:38010"
deploy
:
restart_policy
:
condition
:
on-failure
delay
:
15s
max_attempts
:
100
window
:
120s
net2
:
image
:
net
container_name
:
net2
volumes
:
-
./net/net2/:/root/net/
entrypoint
:
/bin/sh /root/net/start.sh
ports
:
-
38010:38010
-
"
38011:38010"
deploy
:
restart_policy
:
condition
:
on-failure
delay
:
15s
max_attempts
:
100
window
:
120s
txchecker
:
image
:
txchecker
container_name
:
txchecker
...
...
@@ -22,6 +40,7 @@ services:
delay
:
15s
max_attempts
:
100
window
:
120s
sentry
:
image
:
sentry
container_name
:
sentry
...
...
@@ -33,11 +52,13 @@ services:
window
:
120s
volumes
:
-
./sentry/app.json:/root/app.json
nebula
:
image
:
nebula
container_name
:
nebula
depends_on
:
-
net
-
net2
-
sentry
deploy
:
restart_policy
:
...
...
@@ -46,9 +67,27 @@ services:
max_attempts
:
100
window
:
120s
volumes
:
-
./nebula/config.toml:/root/config.toml
-
./nebula/genesis.json:/root/genesis.json
-
./nebula/data:/root/data
-
./nebula/nebula1/config.toml:/root/config.toml
-
./nebula/nebula1/genesis.json:/root/genesis.json
-
./nebula/nebula1/data:/root/data
nebula2
:
image
:
nebula
container_name
:
nebula2
depends_on
:
-
net
-
net2
-
sentry
deploy
:
restart_policy
:
condition
:
on-failure
delay
:
15s
max_attempts
:
100
window
:
120s
volumes
:
-
./nebula/nebula2/config.toml:/root/config.toml
-
./nebula/nebula2/genesis.json:/root/genesis.json
-
./nebula/nebula2/data:/root/data
cryptor
:
image
:
cryptor
...
...
@@ -67,8 +106,10 @@ services:
entrypoint
:
MetaRing start --ethconfig.httphost 0.0.0.0 --mempool.sentryurl sentry:38003 --mempool.nebulaurl nebula:38004 --mempool.p2purl net:38010 --mempool.cryptourl cryptor:38001 --mempool.checkerurl txchecker:38002
depends_on
:
-
net
-
net2
-
sentry
-
nebula
-
nebula2
-
cryptor
deploy
:
# resources:
...
...
@@ -84,26 +125,27 @@ services:
max_attempts
:
100
window
:
120s
ports
:
-
8545:8545
-
5001:5001
-
"
8545:8545"
-
"
5001:5001"
prometheus
:
image
:
prom/prometheus:latest
container_name
:
prometheus
ports
:
-
9090:9090
-
"
9090:9090"
command
:
-
--config.file=/etc/prometheus/prometheus.yml
volumes
:
-
./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
depends_on
:
-
cadvisor
cadvisor
:
#image: gcr.io/cadvisor/cadvisor:latest
image
:
google/cadvisor:latest
container_name
:
cadvisor
ports
:
-
8080:8080
-
"
8080:8080"
volumes
:
-
/:/rootfs:ro
-
/var/run:/var/run:rw
...
...
@@ -112,7 +154,9 @@ services:
depends_on
:
-
ring
-
net
-
net2
-
sentry
-
txchecker
-
cryptor
-
nebula
-
nebula2
nebula/config.toml
→
nebula/
nebula1/
config.toml
View file @
73618d7a
File moved
nebula/data/chain/.gitkeep
→
nebula/
nebula1/
data/chain/.gitkeep
View file @
73618d7a
File moved
nebula/genesis.json
→
nebula/
nebula1/
genesis.json
View file @
73618d7a
File moved
nebula/nebula2/config.toml
0 → 100644
View file @
73618d7a
p2p_server
=
"net2:38010"
sentry_server
=
"sentry:38003"
grpc_addr
=
":38004"
chain_id
=
100
nebula/nebula2/data/chain/.gitkeep
0 → 100644
View file @
73618d7a
nebula/nebula2/genesis.json
0 → 100644
View file @
73618d7a
{
"miner"
:
"0x905D5E8F7db76bCA91fdcA0990be7263dfD23335"
,
"timestamp"
:
1676518132
,
"extraData"
:
"0x"
,
"accounts"
:
{
"0x0000000000000000000000000000000000000001"
:
{
"nonce"
:
"0"
,
"balance"
:
"10000000000000000000000"
},
"0x905D5E8F7db76bCA91fdcA0990be7263dfD23335"
:
{
"nonce"
:
"10"
,
"balance"
:
"0x20000000000"
},
"0x64fB93d7eBEa9fae570F2852C270F137cF60ba90"
:
{
"nonce"
:
"0"
,
"balance"
:
"0x200000000000000000000000000"
},
"0x78328fa01CEE3B31129f85b6174a28C42c85fbBF"
:{
"nonce"
:
"0"
,
"balance"
:
"0x2000000000000000000000000000"
},
"0xc49926c4124cee1cba0ea94ea31a6c12318df947"
:{
"nonce"
:
"0"
,
"balance"
:
"0x2000000000000000000000000000"
},
"0x2A5Ff76F69E893b113F8cC788e2c64960f3648cB"
:
{
"nonce"
:
"0"
,
"balance"
:
"0x200000000000000000000000000"
},
"0x257A1F95F3C09a0A2F4d82d3f916E8DbCE084659"
:
{
"nonce"
:
"0"
,
"balance"
:
"0x200000000000000000000000000"
}
}
}
net/net1/start.sh
0 → 100644
View file @
73618d7a
#!/bin/bash
NET1_HOST
=
"net"
NET1_IP
=
$(
nslookup
$NET1_HOST
|
awk
'/^Address: / { print $2 }'
)
NET2_HOST
=
"net2"
NET2_IP
=
$(
nslookup
$NET2_HOST
|
awk
'/^Address: / { print $2 }'
)
echo
"IP address of
$NET1_HOST
is
$NET1_IP
"
echo
"IP address of
$NET2_HOST
is
$NET2_IP
"
echo
"/root/MetaNet --single-node --enable-prom --log-level debug
\
--p2p-priv-key a5b18000b95e9e8e2afe5d49355b48c99aeee9e986ddc144af848847afd18df3
\
--grpc-host 0.0.0.0 --grpc-port 38010 --p2p-host-ip
$NET1_IP
"
\ No newline at end of file
prometheus/prometheus.yml
View file @
73618d7a
...
...
@@ -14,8 +14,10 @@ scrape_configs:
static_configs
:
-
targets
:
-
net:38020
-
net2:38020
-
job_name
:
container-nebula
scrape_interval
:
5s
static_configs
:
-
targets
:
-
nebula:38020
-
nebula2:38020
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment