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
f253df1a
Commit
f253df1a
authored
Nov 01, 2023
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix metanet config
parent
89aea1f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
host.sh
host/host.sh
+6
-6
net.sh
net.sh
+6
-6
No files found.
host/host.sh
View file @
f253df1a
...
...
@@ -48,11 +48,11 @@ do
mkdir
-p
$configPath
configFile
=
$configPath
/config.yaml
rm
-fv
$configFile
echo
"single
_
node: true"
>>
$configFile
echo
"enable
_
prom: true"
>>
$configFile
echo
"grpc
_
host:
\"
0.0.0.0
\"
"
>>
$configFile
echo
"grpc
_
port: 38010"
>>
$configFile
echo
"p2p
_host_
ip:
\"
172.99.1.
$i
\"
"
>>
$configFile
echo
"single
-
node: true"
>>
$configFile
echo
"enable
-
prom: true"
>>
$configFile
echo
"grpc
-
host:
\"
0.0.0.0
\"
"
>>
$configFile
echo
"grpc
-
port: 38010"
>>
$configFile
echo
"p2p
-host-
ip:
\"
172.99.1.
$i
\"
"
>>
$configFile
if
[
$i
-eq
1
]
;
then
echo
"p2p-priv-key:
\"
/etc/MetaNet/default-priv-key
\"
"
>>
$configFile
else
...
...
@@ -175,7 +175,7 @@ echo ' - meta' >> $compose
echo
""
>>
$composefile
echo
""
>>
$composefile
echo
" net:"
>>
$composefile
echo
" image: 192.168.1.220:5000/metanet:v0.0.
4
"
>>
$composefile
echo
" image: 192.168.1.220:5000/metanet:v0.0.
5
"
>>
$composefile
echo
" container_name: net"
>>
$composefile
echo
" entrypoint: /usr/bin/MetaNet -c /root/config.yaml > /root/net.log 2>&1"
>>
$composefile
echo
"
$resourcenebula
"
>>
$composefile
...
...
net.sh
View file @
f253df1a
...
...
@@ -14,11 +14,11 @@ do
mkdir
-p
$configPath
configFile
=
$configPath
/config.yaml
rm
-fv
$configFile
echo
"single
_
node: true"
>>
$configFile
echo
"enable
_
prom: true"
>>
$configFile
echo
"grpc
_
host:
\"
0.0.0.0
\"
"
>>
$configFile
echo
"grpc
_
port: 38010"
>>
$configFile
echo
"p2p
_host_
ip:
\"
172.99.1.
$i
\"
"
>>
$configFile
echo
"single
-
node: true"
>>
$configFile
echo
"enable
-
prom: true"
>>
$configFile
echo
"grpc
-
host:
\"
0.0.0.0
\"
"
>>
$configFile
echo
"grpc
-
port: 38010"
>>
$configFile
echo
"p2p
-host-
ip:
\"
172.99.1.
$i
\"
"
>>
$configFile
if
[
$i
-eq
1
]
;
then
echo
"p2p-priv-key:
\"
/etc/MetaNet/default-priv-key
\"
"
>>
$configFile
else
...
...
@@ -45,7 +45,7 @@ for i in $(seq 1 $N)
do
echo
" net
$i
:"
>>
$composefile
echo
" image: 192.168.1.220:5000/metanet:v0.0.
4
"
>>
$composefile
echo
" image: 192.168.1.220:5000/metanet:v0.0.
5
"
>>
$composefile
echo
" container_name: net
$i
"
>>
$composefile
echo
" entrypoint: /usr/bin/MetaNet -c /root/config.yaml > /root/net.log 2>&1"
>>
$composefile
echo
"
$deploy
"
>>
$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