bw6-plugin-maven icon indicating copy to clipboard operation
bw6-plugin-maven copied to clipboard

Deploying Application with Custom Profile using Maven plugin [enhancement]

Open kgera-tibco opened this issue 6 years ago • 2 comments

Requirement: Deployment of application with a custom profile in Maven plugin setup

This is achievable(tested) with BWCE when deploying application manually in a Docker Container setup following below mentioned steps:

  1. Create a new .substvar file following the same structure as an existing substvar file.
  2. In the newly created substvar file, replace the values of the token that needs to be updated in the application. A token is a value which starts and ends on a "#". For example, #Message#. In this case, Message is the token. Replace this token with a value. Note: In case, a hardcoded text/value needs to be provided, please enter the value without #.
  3. Copy the newly created substvar file under TIBCO_HOME/bwce//docker directory for creating the base image.
  4. Provide the environment variable BW_PROFILE with the newly created substvar file while running the application image. For example, docker run -e BW_PROFILE="custom" . Note: Here, custom is the name of new substvar file created.

Please advise on how this can be achieved with Maven Plugin. Please let me know in case of any queries.

Thank You.

kgera-tibco avatar May 03 '19 10:05 kgera-tibco