On Wednesday, 27.01.2016 at 22:05, Barbu Paul - Gheorghe wrote:
> On 01/27/2016 12:30 PM, Martin Lucina wrote:
> > Having said that, running a unikernel with *more than 1* binary multibaked
> > into it with no configuration of rc[] does not make sense to me. I propose
> > to change the spec to account for this by refusing to run at all (with an
> > error) if more than 1 binary is baked into the unikernel and no rc[] is
> > passed in the configuration.
> 
> In my opinion having the binaries run one after the other with just the
> binary name passed in as argv would be a good default when no configuration is
> given.
> 
> This may ome in helpful when multibaking just for introducing a delay for
> attaching gdb as in [1] and you don't want to write a config file just for 
> that
> simple case.
> For more complex use-cases, of course a configuration file is mandatory.

Good point, useful case. So, you're proposing that an image baked as
follows:

$ rumprun-bake unikernel.bin first second third

When run without rc[] (or no configuration passed), rumprun will run the
binaries one after another (i.e. with default runmode = "") with argv as
follows:

[ "first" ]
[ "second" ]
[ "third" ]

Seems entirely reasonable to me, and possible to do with the improvements
to multibake I did, so I'll go do it then :-)

Thanks for the feedback!

Martin

Reply via email to