Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 2.41 KB

File metadata and controls

37 lines (31 loc) · 2.41 KB

Configuring DevOps tools

Creating a Python Starter Kit

  1. Log in to IBM Cloud.
  2. Click Create resource in the top right corner.
  3. Under Starter Kits, choose Python Microservice with Flask and click Create app in the next page.
  4. Name it username-python-microservice, leaving everything else untouched and hit Create.

Creating GitHub repository

  1. Log in to IBM Cloud.
  2. Click username-python-microservice in the Apps panel on the left.
  3. In the App details tab, click Configure continuous delivery to enable the Continuous Delivery feature.
  4. In the Choose a deployment environment panel, pick Deploy to Cloud Foundry and hit Next.
  5. In the Configure toolchain panel, name the toolchain as username-python-microservice-cf (where cf refers to "Cloud Foundry") and click Create.
  6. Copy the Git URL in the Deployment details box and click the View toolchain button.
    • Note: You might need to refresh the browser window in case the Git URL does not show up.
  7. Delete Git and Eclipse Orion Web IDE by clicking the three vertical dots in the top right corner of their cards.
  8. On the top right, click Add a Tool and choose GitHub from the catalog.
  9. Authorise access from IBM Cloud to your GitHub account by clicking the Authorize button.
  10. Under Repository type, choose Clone from the menu.
  11. Paste the URL you copied to Source repository URL.
  12. Choose your own username as Owner and name the repository as username-python-microservice.
  13. Make sure the Enable GitHub Issues and Track deployment of code changes boxes are checked.
  14. Click Create Integration.

Configuring Continuous Delivery Pipeline

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