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
9f43372d
Commit
9f43372d
authored
Feb 01, 2024
by
duanjinfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log pring
parent
900d211e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
task_msg.go
nm/task_msg.go
+2
-0
docker.go
operate/docker.go
+1
-0
No files found.
nm/task_msg.go
View file @
9f43372d
...
@@ -118,7 +118,9 @@ func (t *TaskHandler) ComputeTaskHandler(taskMsg *nodeManagerV1.PushTaskMessage)
...
@@ -118,7 +118,9 @@ func (t *TaskHandler) ComputeTaskHandler(taskMsg *nodeManagerV1.PushTaskMessage)
isImageRunExist
:=
false
isImageRunExist
:=
false
for
_
,
container
:=
range
containers
{
for
_
,
container
:=
range
containers
{
if
container
.
ImageID
==
imageId
{
if
container
.
ImageID
==
imageId
{
log
.
Info
(
"sprintf before task cmd api url:"
,
taskCmd
.
ApiUrl
)
taskCmd
.
ApiUrl
=
fmt
.
Sprintf
(
taskCmd
.
ApiUrl
,
container
.
Ports
[
0
]
.
PublicPort
)
taskCmd
.
ApiUrl
=
fmt
.
Sprintf
(
taskCmd
.
ApiUrl
,
container
.
Ports
[
0
]
.
PublicPort
)
log
.
Info
(
"sprintf after task cmd api url:"
,
taskCmd
.
ApiUrl
)
isImageRunExist
=
true
isImageRunExist
=
true
break
break
}
}
...
...
operate/docker.go
View file @
9f43372d
...
@@ -62,6 +62,7 @@ func (d *DockerOp) GetContainerSign(taskMsg *nodemanagerv1.PushTaskMessage, task
...
@@ -62,6 +62,7 @@ func (d *DockerOp) GetContainerSign(taskMsg *nodemanagerv1.PushTaskMessage, task
TaskParam
:
taskMsg
.
TaskParam
,
TaskParam
:
taskMsg
.
TaskParam
,
TaskResult
:
taskRes
,
TaskResult
:
taskRes
,
}
}
log
.
Info
(
"container sign req body:"
,
reqBody
)
body
,
err
:=
json
.
Marshal
(
reqBody
)
body
,
err
:=
json
.
Marshal
(
reqBody
)
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Error
(
"Unable to marshal task info: "
,
err
.
Error
())
log
.
Error
(
"Unable to marshal task info: "
,
err
.
Error
())
...
...
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