Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect ruby packaging docs to wiki #489

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions docs/bumping_ruby_packaging.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
## How to bump the Ruby packing in capi-release

From time to time, the Ruby version for the capi-release needs to be bumped. Ruby is provided as a [BOSH package that needs to be embedded into the release](https://bosh.io/docs/package-vendoring/) and uploaded to a remote blob store.


1. Clone https://github.com/cloudfoundry/bosh-package-ruby-release. `git clone https://github.com/cloudfoundry/bosh-package-ruby-release`
1. Clone 'capi-release' and change directory into `capi-release`
1. Add `config/private.yml` to the `capi-release` with credentials to blobstore. Currently this is located in the credentials store with the CAPI release with the name `private.yml`.
1. run the command `bosh vendor-package ruby-MAJOR.MINOR ~/DIRECTORY_WHERE_CLONED/bosh-package-ruby-release/` where MAJOR.MINOR would be the Ruby version you are bumping to, e.g. `ruby-3.2`.
1. When completed, the `git diff` will indicate the new hashes for ruby-3.2 package or whichever version you have specified.
1. Update .ruby-version file to new version of ruby within the `capi-release` directory.
1. Commit and create a pull request for `capi-release`

In addition, [cloud_controller_ng](https://github.com/cloudfoundry/cloud_controller_ng/) also needs to have it's Ruby version bumped.
1. Update .ruby-version file to new version of ruby within the `cloud_controller_ng` directory.
1. Commit and create a pull request for `cloud_controller_ng`

For both of these steps, please ensure that the correct version of Ruby is being run in a local testing environment to ensure the correct version. A simple way to do this would be to check the ruby version on a CAPI VM by running the following command as root : `/var/vcap/packaging/ruby/bin/ruby -v` and noting the correctly bumped Ruby version.
See [Updating Ruby Package in CAPI Release](https://github.com/cloudfoundry/cloud_controller_ng/wiki/Updating-Ruby-Package-in-CAPI-Release) in the Cloud Controller wiki.