Now that your application has gone through the analysis phase, it's ready for
containerization. The transform phase creates the containers that your application
runs in after you deploy it to Amazon ECS, Amazon EKS, or App Runner, if eligible. For more
information about how App2Container integrates with container management services and other
products, see Product and service integrations for AWS App2Container.
Choose the tab that matches your operating system (OS) platform to continue:
- Linux
-
The transform phase depends on whether you are running all steps on the application
server, or are using the application server for the analysis and a worker machine for
containerization and deployment.
To containerize the application on the application server
If you are using an application server for all steps, run the containerize command as follows.
$
sudo app2container containerize --application-id java-app-id
The output is a set of deployment files that are stored in the workspace directory
that you specified when you ran the init command.
To containerize the application on a worker machine
If you are using a worker machine for containerization and deployment, use the
following procedure to transform the application.
-
On the application server, run the extract
command as follows.
$
sudo app2container extract --application-id java-app-id
-
If you specified an Amazon S3 bucket when you ran the init
command, the archive is extracted to that location. Otherwise, you can manually
copy the resulting archive file to the worker machine.
-
On the worker machine, run the containerize
command as follows.
$
sudo app2container containerize --input-archive /path
/extraction-file
.tar
The output is a set of deployment artifacts that are stored in the workspace
directory that you specified when you ran the init
command.
- Windows
-
The transform phase depends on whether you are running all steps on the application
server or using the application server for the analysis and a worker machine for
containerization and deployment.
To containerize the application on the application server
If you are using an application server for all steps, run the containerize command as follows.
PS>
app2container containerize --application-id iis-app-id
The output is a set of deployment files stored in the workspace directory that
you specified when you ran the init command.
To containerize the application on a worker machine
If you are using a worker machine for containerization and deployment, use the
following procedure to transform the application.
-
On the application server, run the extract
command as follows.
PS>
app2container extract --application-id iis-app-id
-
If you specified an Amazon S3 bucket when you ran the init
command, the archive is extracted to that location. Otherwise, you can manually
copy the resulting archive file to the worker machine.
-
On the worker machine, run the containerize
command as follows.
PS>
app2container containerize --input-archive drive
:\path
\extraction-file
.zip
The output is a set of deployment artifacts that are stored in the workspace
directory that you specified when you ran the init
command.