To prepare your application for deployment to a container platform, generate a deployment manifest by using the {ProductFullName} command-line interface (CLI). Generating the deployment manifest creates the necessary configuration files to define your application’s resources, streamlining the move to your target environment.
You can auto-generate the {ocp-full} deployment manifest for the Cloud Foundry (CF) application by using the generate command. Based on the Helm template that you provide, the command generates manifests, such as a ConfigMap, and non-Kubernetes manifests, such as a Dockerfile, for application deployment.
-
You have Cloud Foundry (v3) as a source platform.
-
You have {ocp-short} as a target platform.
-
You installed {ProductShortName} {CLIName} version 7.3.0.
-
You generated a discovery manifest.
-
You created a Helm template with the required configuration for the {ocp} deployment.
-
Open the terminal application and navigate to the
<{ProductShortName}_HOME>/directory. -
Generate the deployment manifest as an output file:
$ mta-cli generate helm --chart-dir helm_sample \ --input <path_to_discovery-manifest> \ --output-dir <location_of_deployment_manifest> \
-
Verify the ConfigMap:
$ mta-cli cd <location_of_deployment_manifest> \ $ cat configmap.yaml $ cat Dockerfile
-
Verify the Dockerfile:
$ mta-cli cd <location_of_deployment_manifest> \ $ cat Dockerfile