Whenever I run ‘kitchen converge’, the “Installing Cookbook Gems:” part takes pretty long time to pass.
I tried using a proxy configuring .kitchen.yml as follow
and added following script in the install_chef_script.sh to make embedded ruby gem refers that file after installing chef client.
sudo bash -c “cat << EOF > /opt/chef/embedded/etc/gemrc
gem: --no-ri --no-rdoc
But after that, it still takes long time connecting the proxy server but downloading gem files using https://rubygems.org/ which doesn’t cache contents. I expect it will be faster when using http since the proxy(squid) caches contents when used with http.
Is there some way to configure ‘sources’ repos for embedded ruby gem to change the default one with ‘http’? or Is there someone who knows better approach to solve this problem?