-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Support for execution logs files #92
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. Can you paste a snapshot of how the logs are looking in PR description/comments
pkg/runner/docker/docker.go
Outdated
@@ -271,3 +278,35 @@ func (d *docker) PullImage(containerImageConfig *core.ContainerImageConfig, r *c | |||
} | |||
return nil | |||
} | |||
|
|||
func (d *docker) WriteLogs(ctx context.Context, r *core.RunnerOptions) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to export this? Otherwise, lowercase it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created internal function.
Issue Link
#91: Support for execution logs files.
Description
Adds support to create a new log file for each container spawned for build task.
Logs will be generated in
/var/log/synapse/<jobID>/<containerName>.log
folder inside container which is mounted withcurrent directory
(./logs/synapse
) in docker-compose file.Log files will contain nucleus container stdout/stderr logs.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: