Skip to content
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

Any systemd unit files available for running as a service ? #1793

Closed
afbjorklund opened this issue Nov 12, 2020 · 4 comments
Closed

Any systemd unit files available for running as a service ? #1793

afbjorklund opened this issue Nov 12, 2020 · 4 comments

Comments

@afbjorklund
Copy link
Contributor

There doesn't seem to be any files for starting up buildkitd

Similar to e.g. containerd.service

@afbjorklund afbjorklund changed the title Any systemd unit files available for running a service ? Any systemd unit files available for running as a service ? Nov 12, 2020
@afbjorklund
Copy link
Contributor Author

afbjorklund commented Nov 15, 2020

Something like:

buildkit.service

[Unit]
Description=BuildKit
Documentation=https://github.com/moby/buildkit

[Service]
ExecStart=/usr/local/bin/buildkitd

[Install]
WantedBy=multi-user.target

Not sure what the dependencies are like, with network/local-fs or with containerd ?

@afbjorklund
Copy link
Contributor Author

afbjorklund commented Dec 12, 2020

Can also be socket-activated:

buildkit.socket

[Unit]
Description=BuildKit
Documentation=https://github.com/moby/buildkit

[Socket]
ListenStream=%t/buildkit/buildkitd.sock

[Install]
WantedBy=sockets.target

That way the daemon will start on-demand, when user accesses the unix socket.

@afbjorklund
Copy link
Contributor Author

afbjorklund commented Dec 28, 2020

Unless, I am mistaken there is currenly no way to do socket-activation with buildkitd ?

With docker this is done with dockerd -H fd:// but can't really see support for the fds.

http://0pointer.de/blog/projects/socket-activation.html

It would be nice if this was implemented, for instance using go-systemd (already imported)

@afbjorklund
Copy link
Contributor Author

Included in 0.9.0

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

No branches or pull requests

1 participant