I do ruby development on my Mac, as well as deploy Chef code.
https ://docs.chef.io/install_dk.html states:
Using the Chef development kit-provided Ruby as your system Ruby is optional. This just depends on how you are using Ruby on your system. For many users, Ruby is primarily used for authoring Chef cookbooks and recipes. If that’s true for you, then using the Chef development kit-provided Ruby as your system Ruby is recommended. But for other users who are already using tools like rbenv to manage Ruby versions, then that’s OK too.
It would be more helpful if there was a documented way on the site as exactly how to do this. https ://github.com/chef/chef-dk#using-chefdk-as-your-primary-development-environment doesn’t shed light on it.
In the past I’ve tried adding chefdk as a rbenv version, which worked until, well, until it didn’t at which point it just utterly confused my teammate.
We’ve once worked with ChefDK in a VM, which is all a bit heavy.
Docker for Mac now exists (in Beta) https://docs.docker.com/docker-for-mac/
How about an officially maintained, documented and supported ChefDK-in-Docker & Dockerfile in which all configuration is set, to isolate us from Ruby version hell?
Sure… they are out there (21 and counting)… https://github.com/search?o=desc&q=docker-chefdk&s=updated&type=Repositories&utf8=✓
Let’s not have everyone choose. Let’s do this together.
PS. I had to break 2 of the URLs to pass the “new user” filter.