When deployed in the cloud, the technology stack provides a running environment for the application. The application needs to be associated with its running environment to achieve the expected function.
You can use one of the following methods to package and upload applications to SOFAStack:
Way one
To use the default technology stack architecture and technology stack provided by the SOFAStack platform, perform the following steps to publish an application:
Create an application and associate it with a technology stack.
Log on to the SOFAStack console.
In the left-side navigation pane, choose Application Management > Applications.
Click Create Application and configure the following parameters:
Parameters
Description
Application Name
Configure the application name.
It can contain letters, digits, hyphens, and underscores. It must start with a letter and end with a letter or digit.
Technology Stack
Select SOFABoot.
Application group
Select the group to which the application belongs.
Application Tags
Configure the label of the application:
Tag Type: Select System Tag or Custom Tag.
Application Level: the level of the application.
Variable Value: the value of the variable.
Application Description (optional)
Configure the description of the application.
Click Submit.
Upload the release package of the application.
In the left-side navigation pane, choose Classic Application Service > Application Release > Release Package Management.
Find the application that you created in Step 1 and click Manage in the Actions column.
Click Upload Release Package, upload the release package of the application, and then click OK.
Create an application service instance and associate it with the release package.
In the left-side navigation pane, choose Classic Application Service > Application Release > Application Service.
Click Create Service Instance and configure the following parameters:
Parameters
Description
Application
Select the application that you created in Step 1 from the drop-down list.
Service Instance Name
Configure the name of the service instance.
It can contain letters, digits, hyphens, and underscores. It must start with a letter and end with a letter or digit.
Release Package
Select the release package that you uploaded in Step 2.
Description (optional)
Configure the description of the application instance.
Technology Stack Version
Select a technology stack version from the drop-down list.
Deployment Unit
Select the deployment unit of the application.
Click OK.
Add an ECS instance.
Click the name of the service instance you just created, and then click Add Elastic Compute Service.
Click Add and create an ECS instance as prompted.
NoteThe SOFABoot technology stack currently supports the Linux operating system and the CentOS 7.x and CentOS 6.x images defined for the SOFAStack platform.
Purchase an Internet-connected SLB instance and attach it to an ECS instance.
On the Application Service Instance Details page, click SLB SLB.
Click Add and configure the SLB instance parameters.
Parameters
Description
Instance Information
Configure the number of instances and instance name as required.
Network
Configure network information:
Instance Type: Select Internet.
Internet Bandwidth Billing Method: Select a billing method based on your business requirements.
Listener information
Click Add to configure listener parameters.
Frontend Protocol: set this field to HTTP and port 80.
Backend Protocol: 8341.
Keep the default values for other parameters.
Click Create.
Click the name of the SLB instance that you created. In the Backend Server Group section, select the To Be Mounted tag, select Same App, select the ECS instance that you created, and then click Mount.
In the Mount ECS dialog box, set Traffic Weight to 100 and click OK.
After the ECS instance is mounted, you can view the ECS instance on the Mounted page.
Publish the application.
In the left-side navigation pane, choose Classic Application Service > Application Release > Release Package Management.
Select the service instance that you created in Step 3 and choose O&M Operations > Publish and Deploy.
Click Publish Now, and then click Publish as a Whole.
Mode 2
To use a custom technology stack, perform the following steps to publish an application:
Create a Spring Boot technology stack package.
For more information, see Create a technology stack package.
Upload the created technology stack package. For more information, see Manage technology stacks.
For more information, see Method 1 to publish an application.