Skip to content

son‐package

José Bonnet edited this page Sep 7, 2017 · 2 revisions

The son-package tool has the main role of packaging a project, making it ready and available for the submission to the Service Platform.

Workflow

The packaging is done using the son-package tool with the --project argument. During the packaging process, the project must be verified regarding external dependencies, which may not be present in the developer's file system.

External dependencies, such as VNF descriptors, should be retrieved from the Service Platform using the son-access tool. The son-package silently uses this tool to retrieve external dependencies as long as the developer has the right access credentials configured in the workspace.

The service and function descriptors of the project are validated using the son-validate tool and the package file is created.

Usage

This tool delivers a ZIP file containing all the required descriptors of the given project and workspace.

The generated file structure follows the format defined in the package-descriptor of the son-schema repository. Please check the examples folder.

usage: son-package [-h] [--workspace WORKSPACE] [--project PROJECT]
                   [-d DESTINATION] [-n NAME]

Generate new sonata package

optional arguments:
  -h, --help            show this help message and exit
  --workspace WORKSPACE
                        Specify workspace to generate the package. If not
                        specified will assume '$HOME/.son-workspace'

  --project PROJECT     create a new package based on the project at the
                        specified location. If not specified will assume the
                        current directory.

  -d DESTINATION, --destination DESTINATION
                        create the package on the specified location

  -n NAME, --name NAME  create the package with the specific name

son-package will create a package inside the DESTINATION directory. If DESTINATION is not specified, the package will be deployed at <project root/target>.

Clone this wiki locally