Building packages and projects

Build a distributable package for a project. The package that is built doesn't require access to an orchestration environment. You can run the package on the project source anytime.

Building a project to produce a release package is an important step of the lifecycle. To ensure that the most recent changes are bundled, the push and test commands run a build first. By doing so, the user does not often need to explicitly call build.

Build a project

To build a project, go to the project directory and run the following build command:

lmctl project build

This command produces a .tgz package in the LMCTL build workspace directory (_lmctl/build) that is relative to your project. This directory is automatically created. If packaging is configured in the lmproject file, a .csar is created instead of a .tgz package.

The project package includes the artifacts that are needed for the root service of your project and for each subproject. The structure of the directories and artifacts in the package is determined by LMCTL and cannot be altered.