Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Latest commit

 

History

History
44 lines (37 loc) · 3.14 KB

File metadata and controls

44 lines (37 loc) · 3.14 KB

Configuring DevOps tools

In this section, you will create a Python Flask starter kit and link it to a Github repository. Later will you configure a Continuous Delivery Pipline that will track the repository and redeploy your application at every git push.

Creating a Python Starter Kit

  1. Log in to IBM Cloud.
  2. Click Create resource + in the top right corner.
  3. Open the Software menu on the left, then check the Developer Tools and Starter Kits filter boxes.
  4. Select the Python Flask App card. python_flask_app
  5. In the next page, click Get started.
  6. Name it username-python-microservice and, leaving everything else untouched, hit Create.

Creating GitHub repository

  1. Log in to IBM Cloud.
  2. Click username-python-microservice in the Apps link on the Resource summary panel.
  3. In the Deployment Automation card, click the Deploy your app button to configure the Continuous Delivery feature.
  4. In the Select the deployment target panel, pick Cloud Foundry.
  5. Click the New + button to generate a new IBM Cloud API key and click OK in the pop-up window. Click Next at the bottom of the screen.
  6. In the Configure the DevOps toolchain panel, name the toolchain as username-python-microservice-cf (where cf refers to "Cloud Foundry") and click Create.
  7. Wait until the Delivery Pipeline Status moves from In progress to Success.
    • Note: You might need to refresh your browser window so that it shows the App URL. delivery_pipeline
  8. In the Details card, copy the Source URL.
  9. In the Deployment Automation card, open the link containing the Name of your Continuous Delivery service.
  10. On the top right corner, click Add tool and choose GitHub from the Version Control category in the catalog.
  11. Authorise access from IBM Cloud to your GitHub account by checking the "I understand" box.
  12. Under Repository type, choose Clone from the menu.
  13. Paste the Source URL you copied to Source repository URL.
  14. Choose your own username as Owner and name the repository as username-python-microservice.
    • Note: The default Repository Name will contain an unwanted -cf suffix. Please consider removing it.
  15. Make sure the Enable GitHub Issues and Track deployment of code changes boxes are checked.
  16. Click Create Integration.

Configuring Continuous Delivery Pipeline

  1. Log in to IBM Cloud.
  2. Click username-python-microservice in the Apps link on the Resource summary panel.
  3. In the Deployment Automation card, click the name of your Delivery Pipeline.
  4. In the next screen, click the gear icon in the Build Stage card and then Configure Stage.
  5. In the Input tab, choose the option in Git repository that leads to Github as Git URL.
  6. Save your work and run the Build Stage by clicking the ▶️ icon.
  7. Watch as the Build Stage completes and triggers the Deploy Stage.