All Products
Search
Document Center

CloudOps Orchestration Service:Create an application through a Git repository

Last Updated:Mar 11, 2025

Application management integrates features such as resource allocation, security, monitoring, event handling, CloudOps, and publishing. It caters to developers who need to rapidly create applications and CloudOps teams aiming for uniform resource management, significantly enhancing automation and operational efficiency. If your code resides in a Git repository and requires direct management through application management, refer to this topic for guidance on creating an application via a Git repository.

Background information

Before creating an application from a Git repository, it's important to understand the Cloud Native Buildpacks (CNB) technology. CNB offers developers a more effective and secure method for converting code into container images suitable for any environment.

CNB supports various programming languages and frameworks, automatically determining the appropriate runtime and libraries for the application's needs, which ensures consistency across different environments. It also enhances build speed and storage efficiency with layered images, streamlining updates and maintenance. For more information, see Cloud Native Buildpacks.

Feature description

Application management enables the creation of applications through a Git repository. The features are as follows:

  • Users provide a code repository address and grant application management access. Application management clones the repository to the build server, constructs a container image, uploads it to the Container Registry (ACR), and then provisions an Elastic Compute Service (ECS) cloud server with specified parameters. It installs the Docker runtime on the server and launches the container application.

  • Users can update the application in application management with a single click after changes to the repository code. Application management retrieves the latest code, rebuilds and updates the container image, and deploys the new version of the container application.

  • Application management also allows for modifications to the cloud server's configuration, including the instance type and public bandwidth.

Limits

  • Only single-instance ECS applications are supported, with Alibaba Cloud Linux 3 as the operating system.

  • Public and private repositories on GitHub and Gitee are supported, provided they contain supported languages such as Java, Python, Go, Node.js, Ruby, and PHP for direct deployment.

  • Repositories must adhere to Buildpacks requirements for successful builds and operation.

    For instance, a Java project should include a pom.xml or gradle.xxx file; a Python project requires a Procfile to define the container's start command.

    Note

    Ensure your repository meets the necessary criteria and consider adding any required configuration files for proper application build and execution.

Procedure

  1. Navigate to the CloudOps Orchestration Service (OOS) > Application Management page.

  2. On the Create Application tab, choose Create From Git Repository as the method.

  3. In the Application source section, configure parameters for the Git platform and repository user.

    Authorize the application management OAuth App to access the repository using your code platform account.

    Important

    Authorization is necessary for successful code retrieval, even for public repositories, due to strict API call limits on non-logged-in requests on code hosting platforms.

    Git Platform

  4. Set the application name, description, deployment region, and group name in the Basic Information and Configure Application Groups sections.

  5. In the Application configuration section, select the Branch, and configure the container runtime environment variables and application listening port.

    The application listening port is passed to the application as the PORT environment variable. Ensure your application code can read the PORT variable and listen on it, or provide the default listening port of your application.

    Application Configuration

  6. Configure the initial password, payment mode, instance type, and network settings for the new cloud server in the ECS instance password and ECS instance configuration sections.

  7. Review the cost details and Create the application.

    Note

    The build process may take some time; please be patient.

    Once deployed, access the application through the HTTP address provided in the Overview tab, in the Application Output section.

    image.png

Related operations

  • Quick operations

    Quick operations include updating the application, modifying environment variables, and changing cloud server configurations. This example demonstrates updating the application program:

    1. In the Quick Operations section of the Overview tab, select Update Application Program.

    2. Choose the code branch for the application program update.

      To update, the branch must have a new Git commit if the branch itself hasn't changed.

      image.png

    3. Review the changes and submit the update.

  • Create a new group

    When creating an application from a Git repository, establishing a new application group must also originate from the same repository. Users can select a deployment branch, and the remaining steps mirror those of application creation.

FAQ

For issues related to building an application from a Git repository, see Failure when Building and Deploying Applications from a Git Code Repository.