Skip to content
This repository has been archived by the owner on Oct 22, 2018. It is now read-only.

Latest commit

 

History

History
81 lines (63 loc) · 2.56 KB

RELEASING.md

File metadata and controls

81 lines (63 loc) · 2.56 KB

Releasing opsworks_ruby

Checklist

  1. Make changes
  2. Commit those changes
  3. Make sure Travis turns green
  4. Make sure Coverage remains 100%
  5. Bump version in package.json
  6. Bump version in metadata.rb
  7. Bump version in docs/source/config.py
  8. Add contributors to README.md and docs/source/team.rst if necessary
  9. echo -n "<your chef login>" > .chef.login
  10. Put your chef private key associated with opsworks_ruby cookbook as client.pem file into project directory
  11. docker-compose build
  12. docker-compose run --rm cookbook conventional-changelog -s -p angular -i CHANGELOG.md
  13. Commit all the things with chore: Version bump
  14. Add new configuration options to gh-pages-source if necessary
  15. Tag version
  16. Push: git push origin master --tags
  17. docker-compose run --rm cookbook knife cookbook site share opsworks_ruby Applications
  18. Draft new release on GitHub

Solving problems with knife

In case of trouble, check Sharing Chef Cookbooks article. Short version:

WARNING: No knife configuration file found

$ knife cookbook site share opsworks_ruby Applications
WARNING: No knife configuration file found
ERROR: Chef::Exceptions::CookbookNotFoundInRepo: Cannot find a cookbook named opsworks_ruby;
did you forget to add metadata to a cookbook? (http://wiki.opscode.com/display/chef/Metadata)

Solution:

% echo client_key \"#{ENV['HOME']}/.chef/client.pem\" >> ~/.chef/knife.rb
% echo cookbook_path \"#{ENV['HOME']}/Projects/cookbooks\" >> ~/.chef/knife.rb

ERROR: Errno::EACCES: Permission denied - /var/chef

% knife cookbook site share opsworks_ruby Applications
ERROR: Errno::EACCES: Permission denied - /var/chef

Solution:

% sudo chown -R $USER /var/chef

ERROR: Authentication failed due to an invalid public/private key pair

docker run -it --rm --privileged --pid=host opsworksruby_cookbook \
       nsenter -t 1 -m -u -n -i date -u $(date -u +%m%d%H%M%Y)

ERROR: Error uploading cookbook opsworks_ruby to the Opscode Cookbook Site

% knife cookbook site share opsworks_ruby Applications
Generating metadata for opsworks_ruby from /tmp/chef-opsworks_ruby-build20161021-18021-ypq6jp/opsworks_ruby/metadata.rb
Making tarball opsworks_ruby.tgz
ERROR: Error uploading cookbook opsworks_ruby to the Opscode Cookbook Site:
undefined method `strip' for nil:NilClass.
Set log level to debug (-l debug) for more information.`

Solution:

% echo node_name \"<your chef login>\" >> ~/.chef/knife.rb