electric-it / minimart

MiniMart RubyGem for Chef cookbook mirroring and storage.
Apache License 2.0
52 stars 20 forks source link

Add option to skip dependency checks #14

Closed albertsj1 closed 8 years ago

albertsj1 commented 9 years ago

I found this software the other day and it's a really nice alternative to supermarket. Thanks for taking the time to write this. One option I believe would be helpful for my use case is an option to skip the cookbook dependency resolution. I'd like to be able to add all of the cookbooks and their specified versions to the inventory without worrying about if a cookbook dependency is missing. That missing dependency is actually provided by another external cookbook source which I don't want to make available on minimart.

tapickell commented 9 years ago

Thanks @albertsj1 that sounds like a good feature request.

ghost commented 9 years ago

:+1: on this feature. Dependency resolution on a large implementation is painfully slow. I left a minimart mirror run for about 8 hours and still hadn't finished. From my basic troubleshooting the slowness was in fetch_inventory -> resolved_requirements -> inventory_requirements. My inventory requirements has nearly 3000 items. If you unique the array there are only ~300 items. Even at that amount "Solve.it!" loop was really slow. I had to export SOLVE_TIMEOUT=60 to stop time outs and I was looking to see if I should switch to dep_selector.

I have everything I want defined in my minimart explicitly called out in my inventory.yml file and would rather just skip dependency checking.

I really hopeful this will work as a Supermarket implementation as it is much easier and elegant solution to our problem. Thanks for the hard work!

g3kk0 commented 8 years ago

+1

tapickell commented 8 years ago

Fixed in version 1.1.0