-
Notifications
You must be signed in to change notification settings - Fork 138
Allow building without systemd dependency #64
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
Conversation
|
Why is this needed here? Isn't just ok to skip socket activation like it's currently happening (and like Docker or runc does? |
|
@runcom it's useful for being able to build a lightweight container plugin. With the systemd dependency there is a dependency on cgo at some point which prevents me from making a static binary. |
|
I see, tests are failing though |
|
@runcom it's failing because of moby/moby@b937aa8 |
| // checks whether /run/systemd/system/ exists and is a directory. | ||
| // http://www.freedesktop.org/software/systemd/man/sd_booted.html | ||
| // | ||
| // Copied from github.com/coreos/go-systemd/util.IsRunningSystemd |
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.
Actually if we do this, we probably don't need to have build tags, but it'd be less dependencies with nosystemd tag.
dave-tucker
left a comment
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 🥇
@tiborvass would you mind rebasing?
Signed-off-by: Tibor Vass <[email protected]>
|
@dave-tucker @runcom rebased |
Signed-off-by: Tibor Vass [email protected]