-
Notifications
You must be signed in to change notification settings - Fork 9
StorageBackend: TangoProjectFilesystemBackend
Manuel Peuster edited this page Jul 4, 2018
·
3 revisions
This storage backend is a special case since it does not interact with any external tool or component. It is the default backen used when the unpackaging functionality is triggered from the command line. Once the package is unpacked, this backend will create a 5GTANGO SDK project in the specified output folder and copy all artifacts to this project. This means that unpackaging with this backend is the inverse function of the packaging procedure.
tng-pkg -u misc/5gtango-ns-package-example.tgo -o myworkspace/
+---------------+ +-----------+ +-----------------+
| | | | | |
| | | | | |
| mypkg.tgo |---------->| tng-pkg ---------->| myproject/ |
| | | | | |
| | | | | |
+---------------+ +-----------+ +-----------------+
# trigger packager and specify output folder
tng-pkg -u misc/5gtango-ns-package-example.tgo -o myworkspace/
# output
2018-07-04 13:58:41 [INFO] [tngprj.py] tng-prj-be: Initialized TangoProjectFilesystemBackend(myworkspace/)
2018-07-04 13:58:41 [INFO] [packager.py] Packager created: TangoPackager(8f04c02d-84de-42d3-8f22-1cd501410386)
2018-07-04 13:58:41 [INFO] [tngprj.py] tng-prj-be: Created 5GTANGO SDK project: myworkspace/5gtango-ns-package-example
2018-07-04 13:58:41 [INFO] [packager.py] Packager done (0.1243s): TangoPackager(8f04c02d-84de-42d3-8f22-1cd501410386) error: None
===============================================================================
U N P A C K A G I N G R E P O R T
===============================================================================
Unpackaged: misc/5gtango-ns-package-example.tgo
Project: eu.5gtango.ns-package-example.0.1
Artifacts: 6
Output: myworkspace/5gtango-ns-package-example
Error: None
Result: Success.
===============================================================================
# result
tree myworkspace/
myworkspace/
└── 5gtango-ns-package-example
├── dependencies
├── deployment
├── project.yml
└── sources
├── Definitions
│ ├── mynsd.yaml
│ └── myvnfd.yaml
├── Icons
│ └── upb_logo.png
├── Images
│ └── mycloudimage.ref
├── Licenses
│ └── LICENSE
└── Scripts
└── cloud.init