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.
- Log in to IBM Cloud.
- Click Create resource + in the top right corner.
- Open the Software menu on the left, then check the Developer Tools and Starter Kits filter boxes.
- Select the Python Flask App card.

- In the next page, click Get started.
- Name it
username-python-microservice and, leaving everything else untouched, hit Create.
- Log in to IBM Cloud.
- Click
username-python-microservice in the Apps link on the Resource summary panel. - In the Deployment Automation card, click the Deploy your app button to configure the Continuous Delivery feature.
- In the Select the deployment target panel, pick Cloud Foundry.
- 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.
- In the Configure the DevOps toolchain panel, name the toolchain as
username-python-microservice-cf (wherecfrefers to "Cloud Foundry") and click Create. - Wait until the Delivery Pipeline Status moves from In progress to Success.
- In the Details card, copy the Source URL.
- In the Deployment Automation card, open the link containing the Name of your Continuous Delivery service.
- On the top right corner, click Add tool and choose GitHub from the Version Control category in the catalog.
- Authorise access from IBM Cloud to your GitHub account by checking the "I understand" box.
- Under Repository type, choose Clone from the menu.
- Paste the Source URL you copied to Source repository URL.
- Choose your own username as Owner and name the repository as
username-python-microservice.- Note: The default Repository Name will contain an unwanted
-cfsuffix. Please consider removing it.
- Note: The default Repository Name will contain an unwanted
- Make sure the Enable GitHub Issues and Track deployment of code changes boxes are checked.
- Click Create Integration.
- Log in to IBM Cloud.
- Click
username-python-microservice in the Apps link on the Resource summary panel. - In the Deployment Automation card, click the name of your Delivery Pipeline.
- In the next screen, click the gear icon in the Build Stage card and then Configure Stage.
- In the Input tab, choose the option in Git repository that leads to Github as Git URL.
- Save your work and run the Build Stage by clicking the
▶️ icon. - Watch as the Build Stage completes and triggers the Deploy Stage.
