Bug 1018969 - [deploy] Add dependency directory section to managed_files.yml
Summary: [deploy] Add dependency directory section to managed_files.yml
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Andy Goldstein
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1018387 1019643
TreeView+ depends on / blocked
 
Reported: 2013-10-14 19:55 UTC by Andy Goldstein
Modified: 2015-05-14 23:30 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-30 00:48:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.