Git Product home page Git Product logo

Comments (10)

pierreozoux avatar pierreozoux commented on June 19, 2024

šŸ‘

from rkt.

iaguis avatar iaguis commented on June 19, 2024

IIUC this is fixed by #214, right?

from rkt.

alban avatar alban commented on June 19, 2024

It would be nice to have a test for this :)

from rkt.

alban avatar alban commented on June 19, 2024

I would like systemd on the host to listen on a socket for socket activating the container. Then, when an incoming connection triggers the rkt pod to start, the file descriptor would be passed:

  • from systemd on the host to rkt
  • from rkt to stage1's init
  • from init to systemd-nspawn
  • from systemd-nspawn to systemd in the container
  • from systemd in the container to the app

I am not sure #214 does everything and it would be nice to have a test for the complete sequence.

from rkt.

kneufeld avatar kneufeld commented on June 19, 2024

@alban I know this is an ancient bug but I'm trying to get this working. I feel like I'm super close but alas I cannot get it to work.

My question is, can you run your socket accepting daemon directly or do you have to do the systemd-inside-the-container-to-the-app dance?

The docs I've found on this are non-existant or very vague. When trying to pass in a socket what goes in the '--port' parameter of the rkt command line?

Thanks.

from rkt.

iaguis avatar iaguis commented on June 19, 2024

Hi!

There's an example in https://github.com/coreos/rkt/blob/master/Documentation/using-rkt-with-systemd.md#socket-activated-service. Have you tried following that?

If after that you still have problems please let us know!

from rkt.

kneufeld avatar kneufeld commented on June 19, 2024

Thanks @iaguis but I did look at that document. I forgot to mention that what I'd like is a container per connection. In other words I want a service named [email protected].

I did notice the following line on this re-read:

An application needs to be able to accept sockets from systemd's native socket passing interface in order to handle socket activation.

Can rkt not support passing in a socket and attaching it to the apps stdin/stdout? That's how the app currently works and I believe how all inetd started apps work.

from rkt.

iaguis avatar iaguis commented on June 19, 2024

Can rkt not support passing in a socket and attaching it to the apps stdin/stdout? That's how the app currently works and I believe how all inetd started apps work.

This is not supported at the moment :(

from rkt.

kneufeld avatar kneufeld commented on June 19, 2024

Well that would explain why I've been unsuccessfully banging my head against the wall. :( indeed.

Thanks for the tech support!

from rkt.

iaguis avatar iaguis commented on June 19, 2024

Np. Would you mind filing an issue about it?

from rkt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.