cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to provide dynamic values in mta.yaml for dev and prod

syedimran
Explorer
0 Kudos
503

Hello Experts,

Below is the sample mta.yaml. I am using different db name for prod and dev.  Also i am using docker for srv module. How do we provide dynamic values for db and docker image. I am aware mta extension where we can change only the parameters. Any inputs are appreciated.
_____________________________________

  - name: test-srv
    type: application
    parameters:
      docker:
        image: testingname/testimage:latest
      memory: 1G
      disk-quota: 3G
    requires:
      - name:  test-uaa
      - name: test_dev_db
View Entire Topic
gregorw
SAP Mentor
SAP Mentor
0 Kudos

If you use the BTP provided Database Options like HANA Cloud or PostgreSQL you simply would bind the DB instance to your application and evaluate the VCAP_SERVICES environment variable inside your container.

syedimran
Explorer
0 Kudos
Hello @gregorw.. Thank you for the answer.. I am able to bind using VCAP_SERVICES. I have a db name in dev as db_dev_db and in production as db_dev_db . Everytime i deploy I need to change the db name in mta.yaml and deploy and similarly with docker it is the same case. Please suggest