Merge pull request #147 from cloudfoundry/fix-e2e Fix e2e
Merge pull request #147 from cloudfoundry/fix-e2e
Fix e2e
Lifecycle that produces Cloud Foundry droplets using Cloud Native Buildpacks.
-b
--buildpacks
[]string
--system-buildpacks-dir
string
/tmp/buildpacks
-d
--droplet
/tmp/droplet
-r
--result
/tmp/result.json
-w
--workspaceDir
/home/vcap/workspace
-l
--layers
/home/vcap/layers
--pass-env-var
-c
--cache-dir
/tmp/cache
--cache-output
/tmp/cache-output.tgz
--auto-detect
bool
false
Example
{ "lifecycle_metadata": { "buildpacks": [ { "key": "paketo-buildpacks/node-engine", "name": "paketo-buildpacks/node-engine@3.2.1", "version": "3.2.1" }, { "key": "paketo-buildpacks/npm-install", "name": "paketo-buildpacks/npm-install@1.5.0", "version": "1.5.0" }, { "key": "paketo-buildpacks/node-start", "name": "paketo-buildpacks/node-start@1.1.5", "version": "1.1.5" }, { "key": "paketo-buildpacks/npm-start", "name": "paketo-buildpacks/npm-start@1.0.17", "version": "1.0.17" } ] }, "process_types": { "web": "sh /home/vcap/workspace/start.sh" }, "execution_metadata": "", "lifecycle_type": "cnb" }
Reads config/metadata.toml from CNB_LAYERS_DIR (default /home/vcap/layers) and launches the application using the Cloud Native Buildpacks launcher.
config/metadata.toml
CNB_LAYERS_DIR
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
cnbapplifecycle
Lifecycle that produces Cloud Foundry droplets using Cloud Native Buildpacks.
Builder
-b,--buildpacks[]string--system-buildpacks-dirstring/tmp/buildpacks-d,--dropletstring/tmp/droplet-r,--resultstring/tmp/result.json-w,--workspaceDirstring/home/vcap/workspace-l,--layersstring/home/vcap/layers--pass-env-var[]string-c,--cache-dirstring/tmp/cache--cache-outputstring/tmp/cache-output.tgz--auto-detectboolfalseMetadata
Example
Launcher
Reads
config/metadata.tomlfromCNB_LAYERS_DIR(default/home/vcap/layers) and launches the application using the Cloud Native Buildpacks launcher.