Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
power-node
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
Odysseus
power-node
Commits
2722d4cd
Commit
2722d4cd
authored
Feb 02, 2024
by
duanjinfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update config
parent
bf4375b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 deletions
+7
-9
Dockerfile
Dockerfile
+1
-1
config.go
conf/config.go
+5
-5
config.json
config.json
+1
-3
No files found.
Dockerfile
View file @
2722d4cd
...
...
@@ -12,7 +12,7 @@ WORKDIR /build
RUN
git clone https://code.wuban.net.cn/odysseus/power-node
&&
\
git clone https://code.wuban.net.cn/odysseus/odysseus-protocol
RUN
cd
/build/power-node
&&
sh start.sh
&&
cp
build/
powerNode /powerNode
RUN
cd
/build/power-node
&&
sh start.sh
&&
cp
powerNode /powerNode
FROM
alpine
...
...
conf/config.go
View file @
2722d4cd
...
...
@@ -15,11 +15,11 @@ type Config struct {
HeartRespTimeSecond
int64
`json:"heart_response"`
HeartRespTimeMillis
int64
TaskValidatorTime
float64
`json:"task_validator_time"`
BenefitAddress
string
`json:"benefit_address"`
ContainerNum
int64
`json:"container_num"`
NodeManagerNum
int64
`json:"node_manager_num"`
ChainID
int64
`json:"chain_id"`
ApiUrl
string
`json:"api_url"`
BenefitAddress
string
ContainerNum
int64
`json:"container_num"`
NodeManagerNum
int64
`json:"node_manager_num"`
ChainID
int64
`json:"chain_id"`
ApiUrl
string
`json:"api_url"`
}
var
_cfg
*
Config
=
nil
...
...
config.json
View file @
2722d4cd
{
"nm_seed"
:
"192.168.1.241:10001"
,
"sign_prv"
:
"0e80b06d24d7543b3e2520c91d25997bcf5e0e9e6361910cea6ab268c2db3600"
,
"docker_server"
:
"tcp://192.168.1.120:2375"
,
"docker_server"
:
"tcp://127.0.0.1:2375"
,
"api_url"
:
"http://192.168.1.8:8087/api/task/taskheat"
,
"benefit_address"
:
"0x84A3175be614F5886f99Da506dF08682DF530739"
,
"node_manager_num"
:
1
,
"heart_response"
:
30
,
"task_validator_time"
:
1
,
...
...
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