Closed miha-plesko closed 7 years ago
@gberginc this PR might be somewhat more cumbersome to review since there is refactoring involved. Please let me know if you will need any help/explanation.
@miha-plesko I see a lot of changes, so it should be farily easy right?
:smile:
Oh, it's not even in conflict with master, I expected some problems after merging https://github.com/mikelangelo-project/capstan/pull/34. Everything is possible on Fridays :)
Everything is awesome :).
Squash please and we are GTG.
Everything is awesome and squashed :)
Similarly as it's already implemented for
capstan run
we want to be able to accept environment variables here. We need this when we want to compose unikernel with specific bootcmd and run it elsewhere (e.g. on openstack).To support such functionality we do a little refactoring. There were too many flags walking around the code and with the refactoring we encapsulate them into a struct named SimpleBootOptions. This way we centralize work related to building boot command. Having this done, it was simple to support --env also for
package compose
command.The effect is as follows: