cloudfoundry-community / bosh-gen

Rapid generation of BOSH releases
MIT License
68 stars 21 forks source link

ctl_setup - auto load from job's packages only #66

Closed drnic closed 7 years ago

drnic commented 9 years ago

Instead of https://github.com/cloudfoundry-community/bosh-gen/blob/e547126a3e9eb0f3dd9095f1fecd6935eac8b8f1/lib/bosh/gen/generators/job_generator/templates/jobs/%25job_name%25_nginx_rack/templates/bin/ctl_setup.sh.erb#L29-L32 which loads from global set of packages from across all colocated jobs, look up from the job's packages only /var/vcap/jobs/<myjob>/packages/*

frodenas commented 9 years ago

I was thinking to use the same trick on my helpers, but unfortunately /var/vcap/jobs/<myjob>/packages/* contains not just the job's packages but all packages.

drnic commented 9 years ago

Perhaps we need to fix BOSH then at the same time

frodenas commented 9 years ago

:pray:

vito commented 9 years ago

:(

come to think of it that's also not necessarily safe (but it's at least better). if I were to do that with my own packages that depend on the rootfses I'll still get really weird behavior.

drnic commented 9 years ago

@cppforlife any ideas/proposals for how a job template can programmatically setup $PATH, etc for each of its packages?