deployment - How can I get Bluemix to pull in multiple runtimes? -
my primary application requires node.js runtime on bluemix. however, other components of application require both python , java. how can bluemix pull in 3 runtimes when push app?
i recommend following microservices architecture , keeping deployment lifecyle of each of 3 applications separate. can have manifest.yml file each of application , push application when needs updated. allows scale them individually well.
if need push , update 3 applications @ same time, can write simple script cf push each manifest.
cf push -f ./some_directory/application1/ cf push -f ./some_directory/application2/ cf push -f ./some_directory/application3/
you can have multiple applications defined in 1 manifest file https://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html#multi-apps
--- # manifest deploys 2 applications # apps in flame , spark directories # flame , spark in fireplace # cf push should run fireplace applications: - name: spark memory: 1g instances: 2 host: flint-99 domain: shared-domain.com path: ./spark/ services: - mysql-flint-99 - name: flame memory: 1g instances: 2 host: burnin-77 domain: shared-domain.com path: ./flame/ services: - redis-burnin-77
Comments
Post a Comment