-
Notifications
You must be signed in to change notification settings - Fork 363
Updating Ruby Package in CAPI Release
Renee Chu edited this page May 15, 2019
·
25 revisions
Updating the ruby package in CAPI release will allow CAPI jobs to use an updated version of ruby.
A ruby package spec file contains metadata providing which version of ruby, rubygems, and other supportive libraries. The packaging scripts specifies un-compressing these dependencies and installing them on our instances. (Q: Where does bosh get the ruby source code from?)
Steps to update ruby package (metadata for the ruby run for capi jobs) Steps to update ruby package (metadata for the ruby run for capi jobs)
- Get the most up-to-date version of bosh ruby-release:
git clone https://github.com/bosh-packages/ruby-release
-or-
cd ~/workspace/ruby-release && git pull
cd ~/workspace/capi-release
- Run the
vendor-package
command to create 2 new directories that point to the updated ruby packagebosh vendor-package ruby-2.4.6-r0.7.0 ~/workspace/ruby-release/
creates.final_builds/packages/ruby-2.4.6-r0.9.0/
andpackages/ruby-2.4.6-r0.9.0/
- Delete the old ruby package
rm -rf packages/ruby-2.4-r5/
- Go into the
capi-release/jobs
directory. For each of the jobspec
files, underpackages:
, change all instances ofruby-2.4-r5
toruby-2.4.6-r0.9.0
- Target a bosh-lite. run
deploy
. This syncs blobs, creates and uploadscapi-release
, and does a bosh deploy. - Validate that it works:
bosh ssh api
cd /var/vcap/jobs/cloud_controller_ng/bin
. ruby_version.sh
ruby -v
# Should see "ruby 2.4.6p354"
-
Pipelines
-
Contributing
- Tips and Tricks
- Cloud Controller API v3 Style Guide
- Playbooks
- Development configuration
- Testing
-
Architectural Details
-
CC Resources
- Apps
- Audit Events
- Deployments
- Labels
- Services
- Sidecars
-
Dependencies
-
Troubleshooting
- Ruby Console Script to Find Fields that Cannot Be Decrypted
- Logging database queries in unit tests
- Inspecting blobstore cc resources and cc packages(webdav)
- How to Use USR1 Trap for Diagnostics
- How to Perf: Finding and Fixing Bottlenecks
- How to get access to mysql database
- How To Get a Ruby Heap Dumps & GC Stats from CC
- How to curl v4 internal endpoints with mtls
- How to access Bosh Director console and restore an outdated Cloud Config
- Analyzing Cloud Controller's NGINX logs using the toplogs script
-
k8s
-
Archive