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

Allow package cache dir to be overriden for create/delete env commands #658

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

selzoc
Copy link
Member

@selzoc selzoc commented Aug 13, 2024

When the bosh cli deploys a bosh director, it typically has a cache under "$HOME/.bosh/installations//packages". This works fine if you are compiling the CPI releases locally, as the same CPI release is used both for creating the Director VM and for the Director VM to use to create other VMs.

We want to be able to shorten the create-env time by using compiled CPI releases. For Ruby-based CPIs, the location on the filesystem of their packages when they are invoked matters. Since the CPI release is compiled on stemcell, and is intended to be used on a Director VM, also based on a stemcell, the Ruby-based CPIs NEED to be located in a particular directory ("/var/vcap/packges") to function.

By allowing the bosh cli to use "/var/vcap/packages" as the package cache directory, the create-env command can use the same compiled CPI as the Director VM itself, with no modifications to the CPI.

When the bosh cli deploys a bosh director, it typically has a cache
under "$HOME/.bosh/installations/<GUID>/packages".  This works fine if
you are compiling the CPI releases locally, as the same CPI release is
used both for creating the Director VM and for the Director VM to use to
create other VMs.

We want to be able to shorten the create-env time by using compiled CPI
releases.  For Ruby-based CPIs, the location on the filesystem of their
packages when they are invoked matters.  Since the CPI release is
compiled on stemcell, and is intended to be used on a Director VM, also
based on a stemcell, the Ruby-based CPIs NEED to be located in a
particular directory ("/var/vcap/packges") to function.

By allowing the bosh cli to use "/var/vcap/packages" as the package
cache directory, the create-env command can use the same compiled CPI as
the Director VM itself, with no modifications to the CPI.

[TPCF-9087]

Co-authored-by: Ming Xiao <[email protected]>
Co-authored-by: Nitin Ravindran <[email protected]>
@selzoc selzoc merged commit 73b4202 into main Aug 13, 2024
5 checks passed
@selzoc selzoc deleted the override-package-dir branch August 13, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants