Created
September 4, 2015 13:55
-
-
Save sykesm/e90e872da4382ff86186 to your computer and use it in GitHub Desktop.
What a staging task looks like
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rootfs": "preloaded:rabbit_hole", | |
"env": [ | |
{ | |
"name": "LANG", | |
"value": "en_US.UTF-8" | |
} | |
], | |
"action": { | |
"timeout": { | |
"action": { | |
"serial": { | |
"actions": [ | |
{ | |
"download": { | |
"artifact": "app package", | |
"from": "http://example-uri.com/bunny", | |
"to": "/tmp/app", | |
"cache_key": "", | |
"user": "vcap" | |
} | |
}, | |
{ | |
"emit_progress": { | |
"action": { | |
"parallel": { | |
"actions": [ | |
{ | |
"emit_progress": { | |
"action": { | |
"download": { | |
"from": "http://file-server.com/v1/static/rabbit-hole-compiler", | |
"to": "/tmp/lifecycle", | |
"cache_key": "buildpack-rabbit_hole-lifecycle", | |
"user": "vcap" | |
} | |
}, | |
"start_message": "", | |
"success_message": "", | |
"failure_message_prefix": "Failed to set up staging environment" | |
} | |
}, | |
{ | |
"download": { | |
"artifact": "zfirst", | |
"from": "first-buildpack-url", | |
"to": "/tmp/buildpacks/0fe7d5fc3f73b0ab8682a664da513fbd", | |
"cache_key": "zfirst-buildpack", | |
"user": "vcap" | |
} | |
}, | |
{ | |
"download": { | |
"artifact": "asecond", | |
"from": "second-buildpack-url", | |
"to": "/tmp/buildpacks/58015c32d26f0ad3418f87dd9bf47797", | |
"cache_key": "asecond-buildpack", | |
"user": "vcap" | |
} | |
}, | |
{ | |
"try": { | |
"action": { | |
"download": { | |
"artifact": "build artifacts cache", | |
"from": "http://example-uri.com/bunny-droppings", | |
"to": "/tmp/cache", | |
"cache_key": "", | |
"user": "vcap" | |
} | |
} | |
} | |
} | |
] | |
} | |
}, | |
"start_message": "No buildpack specified; fetching standard buildpacks to detect and build your application.\nDownloading buildpacks (zfirst, asecond), build artifacts cache...", | |
"success_message": "Downloaded buildpacks", | |
"failure_message_prefix": "Downloading buildpacks failed" | |
} | |
}, | |
{ | |
"emit_progress": { | |
"action": { | |
"run": { | |
"path": "/tmp/lifecycle/builder", | |
"args": [ | |
"-buildArtifactsCacheDir=/tmp/cache", | |
"-buildDir=/tmp/app", | |
"-buildpackOrder=zfirst-buildpack,asecond-buildpack", | |
"-buildpacksDir=/tmp/buildpacks", | |
"-outputBuildArtifactsCache=/tmp/output-cache", | |
"-outputDroplet=/tmp/droplet", | |
"-outputMetadata=/tmp/result.json", | |
"-skipCertVerify=false", | |
"-skipDetect=false" | |
], | |
"env": [ | |
{ | |
"name": "VCAP_APPLICATION", | |
"value": "foo" | |
}, | |
{ | |
"name": "VCAP_SERVICES", | |
"value": "bar" | |
} | |
], | |
"resource_limits": { | |
"nofile": 512 | |
}, | |
"user": "vcap" | |
} | |
}, | |
"start_message": "Staging...", | |
"success_message": "Staging complete", | |
"failure_message_prefix": "Staging failed" | |
} | |
}, | |
{ | |
"emit_progress": { | |
"action": { | |
"parallel": { | |
"actions": [ | |
{ | |
"upload": { | |
"artifact": "droplet", | |
"from": "/tmp/droplet", | |
"to": "http://cc-uploader.com/v1/droplet/bunny?cc-droplet-upload-uri=http%3A%2F%2Fexample-uri.com%2Fdroplet-upload&timeout=900", | |
"user": "vcap" | |
} | |
}, | |
{ | |
"try": { | |
"action": { | |
"upload": { | |
"artifact": "build artifacts cache", | |
"from": "/tmp/output-cache", | |
"to": "http://cc-uploader.com/v1/build_artifacts/bunny?cc-build-artifacts-upload-uri=http%3A%2F%2Fexample-uri.com%2Fbunny-uppings&timeout=900", | |
"user": "vcap" | |
} | |
} | |
} | |
} | |
] | |
} | |
}, | |
"start_message": "Uploading droplet, build artifacts cache...", | |
"success_message": "Uploading complete", | |
"failure_message_prefix": "Uploading failed" | |
} | |
} | |
] | |
} | |
}, | |
"timeout": 900000000000 | |
} | |
}, | |
"disk_mb": 3072, | |
"memory_mb": 2048, | |
"cpu_weight": 50, | |
"privileged": true, | |
"log_source": "STG", | |
"log_guid": "bunny", | |
"metrics_guid": "", | |
"result_file": "/tmp/result.json", | |
"completion_callback_url": "http://the-stager.example.com/v1/staging/a-staging-guid/completed", | |
"annotation": "{\"lifecycle\":\"buildpack\"}", | |
"egress_rules": [ | |
{ | |
"protocol": "TCP", | |
"destinations": [ | |
"0.0.0.0/0" | |
], | |
"port_range": { | |
"start": 80, | |
"end": 443 | |
}, | |
"log": false | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment