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
d1222dfc
Commit
d1222dfc
authored
Oct 24, 2023
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
70ee02fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
net.sh
net.sh
+7
-2
No files found.
net.sh
View file @
d1222dfc
...
...
@@ -4,6 +4,11 @@ set -e
N
=
${
1
:-
1
}
for
i
in
$(
seq
1
$N
)
do
rm
-rfv
./data/net
$i
done
composefile
=
"docker-compose-net.yml"
...
...
@@ -24,7 +29,7 @@ for i in $(seq 1 $N)
do
echo
" net
$i
:"
>>
$composefile
echo
" image: 192.168.1.220:5000/metanet:v0.0.1"
>>
$composefile
echo
" image: 192.168.1.220:5000/metanet:v0.0.1"
>>
$composefile
echo
" container_name: net
$i
"
>>
$composefile
if
[
$i
-eq
1
]
;
then
echo
" entrypoint: /root/MetaNet --single-node --enable-prom --log-level debug --p2p-priv-key /root/default-priv-key --grpc-host 0.0.0.0 --grpc-port 38010 --p2p-host-ip 172.99.1.1"
>>
$composefile
...
...
@@ -35,7 +40,7 @@ echo "$deploy" >> $composefile
echo
" ports:"
>>
$composefile
echo
" -
\"
$((
38010
+
i
))
:38010
\"
"
>>
$composefile
echo
" volumes:"
>>
$composefile
echo
" - ./data/net
$i
:/root/data"
>>
$composefile
echo
" - ./data/net
$i
:/root/data"
>>
$composefile
echo
" networks:"
>>
$composefile
echo
" meta:"
>>
$composefile
echo
" ipv4_address: 172.99.1.
$i
"
>>
$composefile
...
...
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