Bug 1018969

Summary: [deploy] Add dependency directory section to managed_files.yml
Product: OpenShift Online Reporter: Andy Goldstein <agoldste>
Component: ContainersAssignee: Andy Goldstein <agoldste>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-30 00:48:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1018387, 1019643    

Description Andy Goldstein 2013-10-14 19:55:07 UTC
We should add a section to managed_files.yml that cartridge authors can use to indicate what directories they need in app-root/runtime/dependencies that the platform should create with each new deployment directory (clean build).

Comment 1 Andy Goldstein 2013-10-14 20:02:29 UTC
The section in managed_files.yml might look like this for the php cartridge:

dependency_dirs:
- phplib

And to avoid conflicts across cartridges, we should also make it so this would result in

app-deployments/$datetime/dependencies/php/phplib

Whenever a cartridge is configured as well as for clean builds, the platform will create each cartridge's dependency directories listed in managed_files.yml and create the appropriate symlinks. From the above example, this would mean the following symlink would be created:

~/php/phplib, points at ~/app-root/runtime/dependencies/php/phplib

Comment 2 Andy Goldstein 2013-10-17 16:02:15 UTC
https://github.com/openshift/origin-server/pull/3913

Comment 3 Qiushui Zhang 2013-10-21 11:03:53 UTC
Tested on devenv_3921.
The changed files are merged in on the latest instance.

Mark the bug as verified.