{"__v":0,"_id":"58336bf81a80690f00d31e6b","category":{"__v":2,"_id":"56ccf29a431ada1f00e85aae","pages":["56ccf3498c4a331d002c1e1e","56ccf35a8c4a331d002c1e21"],"project":"55c6bec1b9aa4e0d0016c2c3","version":"55c6bec1b9aa4e0d0016c2c6","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-24T00:00:26.717Z","from_sync":false,"order":4,"slug":"code-labs","title":"Code Labs"},"parentDoc":null,"project":"55c6bec1b9aa4e0d0016c2c3","user":"57041a518572520e00d38e4a","version":{"__v":8,"_id":"55c6bec1b9aa4e0d0016c2c6","project":"55c6bec1b9aa4e0d0016c2c3","createdAt":"2015-08-09T02:45:21.683Z","releaseDate":"2015-08-09T02:45:21.683Z","categories":["55c6bec2b9aa4e0d0016c2c7","56c14bc5826df10d00e82230","56cceed8723ad71d00cae46c","56ccf29a431ada1f00e85aae","56ccf3c28fa8b01b00b82018","56ce1e6ee538330b0021ac5d","56f97e9a4c612020008f2eaf","5734fafd146eb82000597261"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-11-21T21:49:44.335Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":5,"body":"In this codelab, you will create a cohesive workflow which takes source code and builds, tests, and promotes it to production. This will be accomplished via 3 pipelines:\n\n* Deploy to Test\n* Validate Test\n* Promote to Prod\n\n## Part 0: Environment Setup\n\nYou need a Cloud Foundry instance setup. The easiest to get going with is [Pivotal Web Services](https://console.run.pivotal.io/), the publicly hosted solution. Assuming you have an account, complete the following steps:\n\n1. Navigate to your desired organization and space.\n1. Create a Redis Labs service and name it **spinnaker-redis**.\n1. Install Spinnaker into your CF space using [Spring Cloud Spinnaker.](https://spinnaker-deployer-snapshot.cfapps.io/).\n* Using Spring Cloud Spinnaker, enter your CF credentials.\n* Select your organization and space from the dropdown.\n* Enter \"lab\" into **Namespace**.\n* Click on \"Pick from a list\" and select \"spinnaker-redis\".\n* Enter \"prod\" into **Primary Account Name**.\n* Enter your username/password for either an artifactory or S3 repository of your application.\n* Click on **Refresh list of domains** and select your preferred domain for applications.\n* Click on the **Status** tab at the top.\n* Click on **Load**\n* After all the buttons appear, click on **Deploy All** at the bottom.\n* Wait for all components to finish installing. (May take 10 minutes or more).\n* When completed, click on **Link All**.\n* Click on the the hyperlink to **deck**.\n* Click on **Routes**.\n* Click on the hyperlink to access Deck UI.\n\n## Part 1: Deploy to Test\n\n## Part 2: Validate Test\n\n## Part 3: Promote to Prod","excerpt":"","slug":"cloud-foundry-source-to-prod","type":"basic","title":"Cloud Foundry Source to Prod"}

Cloud Foundry Source to Prod


In this codelab, you will create a cohesive workflow which takes source code and builds, tests, and promotes it to production. This will be accomplished via 3 pipelines: * Deploy to Test * Validate Test * Promote to Prod ## Part 0: Environment Setup You need a Cloud Foundry instance setup. The easiest to get going with is [Pivotal Web Services](https://console.run.pivotal.io/), the publicly hosted solution. Assuming you have an account, complete the following steps: 1. Navigate to your desired organization and space. 1. Create a Redis Labs service and name it **spinnaker-redis**. 1. Install Spinnaker into your CF space using [Spring Cloud Spinnaker.](https://spinnaker-deployer-snapshot.cfapps.io/). * Using Spring Cloud Spinnaker, enter your CF credentials. * Select your organization and space from the dropdown. * Enter "lab" into **Namespace**. * Click on "Pick from a list" and select "spinnaker-redis". * Enter "prod" into **Primary Account Name**. * Enter your username/password for either an artifactory or S3 repository of your application. * Click on **Refresh list of domains** and select your preferred domain for applications. * Click on the **Status** tab at the top. * Click on **Load** * After all the buttons appear, click on **Deploy All** at the bottom. * Wait for all components to finish installing. (May take 10 minutes or more). * When completed, click on **Link All**. * Click on the the hyperlink to **deck**. * Click on **Routes**. * Click on the hyperlink to access Deck UI. ## Part 1: Deploy to Test ## Part 2: Validate Test ## Part 3: Promote to Prod