chef-boneyard / knife-container

DEPRECATED: Container support for Chef's Knife Command
Apache License 2.0
57 stars 11 forks source link

There should be a way to specify an environment when bootstrapping containers against a Chef server #26

Closed irvingpop closed 10 years ago

irvingpop commented 10 years ago

Perhaps I'm missing something obvious and this is already easily doable?

tduffield commented 10 years ago

There is no knife-container option for it but chef-init accepts the -E flag: https://github.com/opscode/chef-init/blob/master/lib/chef-init/cli.rb#L72-L75. You could modify your Dockerfile to pass in the -E flag to your chef-init --bootstrap RUN command.