SAP / cloud-mta-build-tool

Multi-Target Application (MTA) build tool for Cloud Applications https://sap.github.io/cloud-mta-build-tool
Apache License 2.0
136 stars 56 forks source link

support for multiple processes #1076

Open adamko147 opened 10 months ago

adamko147 commented 10 months ago

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