Push a sample app
What?
This is the “magic” that makes TAS such a compelling product.
Cloud Foundry applications are deployed by cf push
-ing your code or some compiled artifact. The appropriate buildpack is identified by the buildpack detect scripts, a staging container is created to prepare your app’s environment, and a droplet is produced. This droplet will be used by the cells to run your application instances. When you push an app, you can optionally include an application manifest.yml that contains properties about your application’s deployment.
How?
- Clone the cloudfoundry/cf-acceptance-tests repo to your local workstation.
cd ./cf-acceptance-tests/assets/dora
- Create a
manifest.yml
file - In the
manifest.yml
, set “dora” as the app’s name - In the
manifest.yml
, set the disk quota to 1024M - In the
manifest.yml
, set the number of instances to 2 - In the
manifest.yml
, generate a unique route for your app the first time you push. cf push
your app
Expected Result
cf app dora
will print the app’s status, including the URL. When your visit the URL in your browser you should see the words “Hi, I’m Dora!”
Resources
Cf Buildpacks CF application manifests How Applications are Staged A beginner-friendly introduction to containers, VMs, and Docker