Deploy a Java Service from Source


Learn how to quickly build and deploy your own business source code to Kato through the documentation. The whole process does not need to modify the code or make a mirror image.


Creating service components is the beginning of using Kato. Kato supports the creation of service components in a variety of ways, and the use of source code for deployment, without changing the user’s code. It is a non-intrusive build method, users do not need to learn container technology to make images, which lowers the threshold for using Kato.


Create Service Components

  • Under the designated team page, click Add, Create components based on source code.

  • In the Custom Source Code interface, select an existing application or new application.

  • Enter Component Name, Warehouse Address, and Code Branch in the Custom Source Code interface.

  • If you need to specify a user name, password, or the required code is located in a subdirectory of the repository, you can also set it on this page.

  • Confirm creation

Code Language Recognition

Kato will automatically pull the corresponding code and perform the corresponding code inspection. The user can initially judge whether this process is working normally based on the test results.

Start Building

Click Create to enter the construction phase. If you need to define the build source settings of the current service component before building (for different languages, the optional settings for the build source are different, for the Java language, it will include the build command, the mirror private server address, etc.), port, environment variables, persistence, allocated memory and other configurations, click Advanced Settings.

Once the build starts, users can click to view the build log, learn about the build process based on the log, and troubleshoot errors in the case of a build failure. In general, the projects that users can build locally can be built normally in Kato. If you encounter any problems, please feel free to contact the technical staff of Gridworkz Cloud Services for help.

After the build is completed, the service component will automatically start and provide services.


  • Try to deploy your own source code in Kato.

  • In the next document, we will explore the deployment of an application based on Kato’s unique shared library mechanism.