cloud-mta-build-tool icon indicating copy to clipboard operation
cloud-mta-build-tool copied to clipboard

support for multiple processes

Open adamko147 opened this issue 2 years ago • 0 comments

Dear MTA team,

is there a plan that MTA supports processes for CF apps, as it supported by CF manifests see https://docs.cloudfoundry.org/devguide/multiple-processes.html#manifest ?

I couldn't identify where is the issue.

I have a manifest.yaml

---
applications:
- name: app
  path: .
  buildpacks:
  - nodejs_buildpack
  processes:
  - type: web
    command: node server.js
  - type: worker
    command: node worker.js
    health-check-type: process
    instances: 1

and cf push works as expected.

With following mta.yaml

_schema-version: "3.3"
ID: app
version: 1.0.0

modules:
  - name: app
    type: nodejs
    path: .
    build-parameters:
      ignore:
      - mta_archives/
    parameters:
      processes:
        - type: web
          command: node server.js
        - type: worker
          command: node worker.js
          health-check-type: process
          instances: 1

and deploying using

mbt build 
cf deploy mta_archives/app_1.0.0.mtar

The application has only web process (no worker).

Thanks, Adam

adamko147 avatar Sep 20 '23 20:09 adamko147