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
73ab2e2a
Commit
73ab2e2a
authored
Aug 27, 2025
by
mova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update scripts
parent
3866bdc9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
43 deletions
+8
-43
docker-compose-sender.yml
host/docker-compose-sender.yml
+1
-1
host.sh
host/host.sh
+3
-1
run-testnet.sh
mainchain/scripts/run-testnet.sh
+4
-41
No files found.
host/docker-compose-sender.yml
View file @
73ab2e2a
...
...
@@ -15,7 +15,7 @@ services:
sender
:
image
:
movachain/test-net-tester:v0.0.12-16
container_name
:
sender
entrypoint
:
sh -c 'echo +sender+ && sender -test.run TestManyToMany /privatefromto-100_000.tmp 1
92.168.1.220
cryptor-sender 10000 0 50000 >> /sender/sender.log 2>&1 '
entrypoint
:
sh -c 'echo +sender+ && sender -test.run TestManyToMany /privatefromto-100_000.tmp 1
72.31.18.157
cryptor-sender 10000 0 50000 >> /sender/sender.log 2>&1 '
#entrypoint: sh -c 'sender -test.run TestManyToMany -test.timeout 0 /privatefromto-10_000.tmp 192.168.1.220 cryptor-sender 30000'
#echo " entrypoint: sh -c 'echo "+"ring"+" && sleep 10 && sender -test.run TestManyToMany -test.timeout 0 "
#entrypoint: sh -c 'echo "sender" && sleep 40 && go test -v -run TestSendSignatureTxsStream ./rpc/grpc/ --timeout 0 -args ring 192.168.1.242 100000'
...
...
host/host.sh
View file @
73ab2e2a
...
...
@@ -199,6 +199,7 @@ echo 'gs_block_count = 100' >> $configFile
echo
"{"
>
./explorer/config.json
echo
"
\"
rpcURL
\"
:
\"
http://
$myIpAddr
:18545
\"
"
>>
./explorer/config.json
echo
"}"
>>
./explorer/config.json
cp
./explorer/config.json ./web/config/config.json
sed
"s/EXPORT_IP/
$myIpAddr
/g"
./nginx/conf.d/ethnode.conf.temp
>
/tmp/ethnode.conf.a
...
...
@@ -385,7 +386,7 @@ echo "peerid=\$(cat $datadir/net/$i/peer-id)" >> $startfile
echo
"sentryIp=
\$
(cat
$datadir
/sentry/app.json | grep -oE '[0-9]+
\.
[0-9]+
\.
[0-9]+
\.
[0-9]+')"
>>
$startfile
echo
"echo ./
host.sh ./dir replaceCunnentNodePublicIP
\$
sentryIp /ip4/
\$
ip/tcp/30333/p2p/
\$
peerid"
>>
$startfile
echo
"echo ./
join.sh
\$
peerid"
>>
$startfile
echo
"for i in {1..120}"
>>
$startfile
echo
"do"
>>
$startfile
...
...
@@ -530,6 +531,7 @@ echo " ports:" >> $composefile
echo
" -
$((
10080
))
:80"
>>
$composefile
echo
" volumes:"
>>
$composefile
echo
" - ./web:/usr/share/nginx/html"
>>
$composefile
echo
" - ./explorer:/usr/share/nginx/html/config"
>>
$composefile
echo
" networks:"
>>
$composefile
...
...
mainchain/scripts/run-testnet.sh
View file @
73ab2e2a
#!/bin/bash
set
-eux
#
set -eux
N
=
${
1
:-
1
}
Join
=
${
2
:-
false
}
...
...
@@ -14,43 +14,6 @@ endN=$(ls -l ${DEST} |grep "^d" | grep "node*" | wc -l)
offsetN
=
$((
$endN
-
$N
))
if
${
Join
}
;
then
for
i
in
$(
seq
$((
$offsetN
+
1
))
$endN
)
do
idx
=
$((
((
$i
-
1
))*
10
))
echo
$idx
docker run
-d
--name
=
node
$i
--net
=
cmpnet
-e
"ID=
$i
"
--ip
=
172.77.5.
$i
-p
$((
26656
+
$idx
))
:26656
-p
$((
26657
+
$idx
))
:26657
-p
$((
1317
+
$idx
))
:1317
-p
$((
8545
+
$idx
))
:8545
-p
$((
8546
+
$idx
))
:8546
-v
$MPWD
/conf/deploy:/cmp
-it
caduceus/cmp2-test-net-order-chain:v0.0.1 /usr/bin/start.sh
done
sleep
10
for
i
in
$(
seq
$((
$offsetN
+
1
))
$endN
)
do
idx
=
$((
((
$i
-
1
))*
10
))
echo
$idx
while
[
$(
cmpcli status
-n
tcp://localhost:
$((
26657
+
$idx
))
| jq
'.sync_info.catching_up'
| bc
)
-ne
0
]
do
echo
'.sync_info.catching_up'
sleep
1
done
done
for
i
in
$(
seq
$((
$offsetN
+
1
))
$endN
)
do
dest
=
$DEST
/node
$i
validatorPub
=
$(
cmpd metaversegraph show-validator
--home
$dest
)
cmpcli tx staking create-validator
--chain-id
200812
--amount
10000000cmp
--pubkey
$validatorPub
--moniker
node
$i
--commission-rate
0.1
--commission-max-rate
0.2
--commission-max-change-rate
0.01
--min-self-delegation
1
--from
mykey
$i
-y
done
exit
0
fi
docker network prune
-f
docker network create
\
...
...
@@ -58,11 +21,11 @@ docker network create \
--subnet
=
172.77.0.0/16
\
--ip-range
=
172.77.0.0/16
\
--gateway
=
172.77.5.254
\
cmp
net
mova
net
echo
"bootup tx order net"
for
i
in
$(
seq
1
$N
)
do
idx
=
$((
((
$i
-
1
))*
10
))
echo
$idx
docker run
-d
--name
=
node
$i
--net
=
cmpnet
-e
"ID=
$i
"
-e
"ENABLE-CROSS-DOMAIN=true"
-e
"READ-TIMEOUT=60"
-e
"WRITE-TIMEOUNT=60"
--ip
=
172.77.5.
$i
-p
$((
26656
+
$idx
))
:26656
-p
$((
26657
+
$idx
))
:26657
-p
$((
1317
+
$idx
))
:1317
-p
$((
8545
+
$idx
))
:8545
-p
$((
8546
+
$idx
))
:8546
-v
$MPWD
/conf/deploy:/cmp
-it
caduceus/cmp2-test-net-order-chain:v0.0.1 /usr/bin/start.sh
docker run
-d
--name
=
node
$i
--net
=
movanet
-e
"ID=
$i
"
-e
"ENABLE-CROSS-DOMAIN=true"
-e
"READ-TIMEOUT=60"
-e
"WRITE-TIMEOUNT=60"
--ip
=
172.77.5.
$i
-p
$((
26656
+
$idx
))
:26656
-p
$((
26657
+
$idx
))
:26657
-p
$((
1317
+
$idx
))
:1317
-p
$((
8545
+
$idx
))
:8545
-p
$((
8546
+
$idx
))
:8546
-v
$MPWD
/conf/deploy:/cmp
-it
movachain/test-net-order-chain:v0.0.1 /usr/bin/start.sh
done
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