-
Notifications
You must be signed in to change notification settings - Fork 9
Example: Creating a package
Manuel Peuster edited this page Jul 4, 2018
·
6 revisions
To create a package using tng-sdk-package
you need either an existing 5GTANGO SDK project or you need to create a new one.
You can use the tng-sdk-project
tool to create new and manage existing 5GTANGO SDK projects. Please check the tng-sdk-project
for further installation and setup instructions.
# create a new project with an example NSD and VNFD
$ tng-prj -p path/to/project
There are several existing project examples available in different repositories:
- Basic project example as part of this repository
- Different project examples in the official
tng-schema
repository - Official 5GTANGO examples repository
# package a project
tng-pkg -p misc/5gtango_ns_project_example1
# output
2018-07-04 09:59:54 [INFO] [packager.py] Packager created: TangoPackager(96050c3e-cea7-4c20-a69f-1d8f56efdc4b)
2018-07-04 09:59:54 [INFO] [packager.py] Creating 5GTANGO package using project: 'misc/5gtango_ns_project_example1'
2018-07-04 09:59:54 [INFO] [packager.py] Package created: 'eu.5gtango.5gtango-project-sample.0.1.tgo'
2018-07-04 09:59:54 [INFO] [packager.py] Packager done (0.2755s): TangoPackager(96050c3e-cea7-4c20-a69f-1d8f56efdc4b)
===============================================================================
P A C K A G I N G R E P O R T
===============================================================================
Packaged: misc/5gtango_ns_project_example1
Project: eu.5gtango.5gtango-project-sample.0.1
Artifacts: 2
Output: eu.5gtango.5gtango-project-sample.0.1.tgo
Error: None
Result: Success.
===============================================================================
# package a project and specify the output file
tng-pkg -p misc/5gtango_ns_project_example1 -o mypkg.tgo
# output
2018-07-04 10:00:24 [INFO] [packager.py] Packager created: TangoPackager(b7edbb99-f620-47e5-ab4d-a62a6585ddc8)
2018-07-04 10:00:24 [INFO] [packager.py] Creating 5GTANGO package using project: 'misc/5gtango_ns_project_example1'
2018-07-04 10:00:24 [INFO] [packager.py] Package created: 'mypkg.tgo'
2018-07-04 10:00:24 [INFO] [packager.py] Packager done (0.1148s): TangoPackager(b7edbb99-f620-47e5-ab4d-a62a6585ddc8)
===============================================================================
P A C K A G I N G R E P O R T
===============================================================================
Packaged: misc/5gtango_ns_project_example1
Project: eu.5gtango.5gtango-project-sample.0.1
Artifacts: 2
Output: mypkg.tgo
Error: None
Result: Success.
===============================================================================