Deploying application to IBM Code Engine

About this task

Use API Agent to streamline the deployment of application source code to supported services. For more details about how to deploy code, see Code deployment tool.

Procedure

To deploy application to IBM Code Engine, complete the following steps:

  1. Log in to API Agent. For details, see Getting started.
  2. Enter the following prompt, and click Send:
    Deploy the application code from @
    and select the required file, for example, app-code.zip. The file must be a .zip file containing application code, which was produced by the OpenAPI Python Generator tool.
    Note: Entering @ after the prompt displays a list of files available in your workspace.
  3. Click Send. The API Agent displays the proposed plan.
  4. Click Start. This is an asynchronous operation and takes time to complete. In the next step you can see how to query the deployment status separately to retrieve results.
  5. Enter the following prompt to check the deployment status:
    What is the status of the deployment for the application code of file app-code?
  6. Click Send. API Agent retrieves the status of a deployment based on the .zip file name that is provided by the user. See the deployment status section for the possible deployment status. If all stages display the COMPLETED status, the tool provides with the Application URL and Application name. This Application URL can then be added to the OpenAPI used to generate the application before publishing it to API Connect. To create, publish, and test a draft API, see Creating, publishing, and testing a draft API.
  7. Once the application is deployed, enter the following prompt to fetch logs of the application.
    Provide the application logs of app-code
  8. Click Send. The fetched logs are displayed and are packaged as a .log file and provided for download and debugging.
  9. To delete the deployed application, enter the following prompt:
    Delete the deployed application from the application code file incident
  10. Click Send. The API Agent displays the proposed plan.
  11. Click Start. The API Agent deletes the application and its related resources.