You can transform processes in the VMs that are identified as non-analysable components during analysis.
Procedure
- Click Transform from the main menu.
- On the left navigation page, go to .
- Click on the three dots next to the VM name.
- Select Process Containerization.
You see the different phases involved to create a docker image for the process.
- Initiate the Image Template Creation.
- Enter an unique name to identify image template.
- Enter the base image name in the
repository/image:tag
format to use as base image for building OCI image.
- Select a source registry to pull the base image. By default, Application Transformer for VMware Tanzu tries to pull from docker hub with anonymous account, which might later fail due to docker restrictions.
- Click Validate to verify if the base image exists.
- Click .
- Select the environment variables.
- Search or scroll-down to select a process on the left section of the screen.
- Select the required environment variables on the right section of the screen.
Note: You can add custom variables.
- Click .
These are the values to the
ENV parameter in the docker file.
- Expand the file tree to select the files and folders to copy from the source VM to the image.
Note: If the file or folder has more than 10 recursive symlinks, you see the
Too many symlinks encountered in resolving filename error message.
Application Transformer for VMware Tanzu does not create symlink for the file with in the image, instead it copies the file content.
- Click Upload to override configurations or allow customizations and select the files.
You must upload the file with same file name or a zipped folder with same name to override the source VM files and folder. These overridden files will be copied to the image. You can delete the overridden file, if required.
- Click .
- Upload a shell script (.sh file) to configure the container that will run as an executable or edit the commands to start the docker image.
Note: By default, the command line of the selected process is used as entrypoint.sh, which you can modify.
- Click .
- Review or modify the parameter values that you provided for the docker file and click Next.
- Specify the image tag and enter the repository to push the built OCI image and artifacts.
- Click Validate and click Containerize.
You see the
Build Image and
Push Image tasks are running in the Recent Tasks pane.
Results
Go to
to see the new image template that you created.
What to do next
- Click the Download Image Artifact link to download the image template.
The template contains, the files that you downloaded, a sample deployment file, the docker file, and the entry point script file.
-
Use the deployment file to edit and deploy the image in the Tanzu Kubernetes Grid cluster.