Skip to content

Latest commit

 

History

History
57 lines (47 loc) · 2.18 KB

README-DevOps.md

File metadata and controls

57 lines (47 loc) · 2.18 KB

Nameko Examples

Airship Ltd

Airship Ltd

Buying and selling quality airships since 2012

Prerequisites deployment to Cloudfoundry / Tanzu

Setup

For below instruction, we are assuming you have created a free CF acount from Pivotal. We are using their free backing service from there.

  • Login into CF account. Read quick tutorial

  • Activate environment before running deployment script

$ conda activate namekoexample
  • Deploy to CF
(namekoexample) devops/nex-deploy.sh <prefix>

If prefix is demo, the above command will:

  • Create the following free backing service instances
    • demo-rabbitmq for messaging
    • demo-postgres for postgres (Order service)
    • demo-redis for redis (Products service)
  • Deploy app(s) define in manifest.yml with:
    • App name: demo-namekoexample
    • URL: demo-namekoexample.cfapps.io

For multiple app deployment, uncomment appropriately in manifest.yml

  • Undeploy apps from CF
(namekoexample) devops/nex-undeploy.sh <prefix>
  • Verifying app works in CF
(namekoexample) test/nex-smoketest.sh <prefix>

CI/CD

Using Cloudfoundry CLI is so straightforward that creating automation for development in dev or production environment is trivial from developer point of view