Skip to content

Allow building without systemd dependency - #64

Merged
dave-tucker merged 1 commit into
docker:masterfrom
tiborvass:master
Jan 30, 2017
Merged

Allow building without systemd dependency#64
dave-tucker merged 1 commit into
docker:masterfrom
tiborvass:master

Conversation

@tiborvass

Copy link
Copy Markdown
Contributor

Signed-off-by: Tibor Vass teabee89@gmail.com

@runcom

runcom commented Nov 15, 2016

Copy link
Copy Markdown
Collaborator

Why is this needed here? Isn't just ok to skip socket activation like it's currently happening (and like Docker or runc does?

@tiborvass

Copy link
Copy Markdown
Contributor Author

@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.

@runcom

runcom commented Nov 15, 2016

Copy link
Copy Markdown
Collaborator

I see, tests are failing though

@tiborvass

Copy link
Copy Markdown
Contributor Author

@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

@tiborvass tiborvass Nov 16, 2016

Copy link
Copy Markdown
Contributor Author

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 dave-tucker left a comment

Copy link
Copy Markdown
Contributor

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 <teabee89@gmail.com>
@tiborvass

Copy link
Copy Markdown
Contributor Author

@dave-tucker @runcom rebased

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants