sonata-nfv / tng-sdk-package

The 5GTANGO SDK tool to create and unpack 5GTANGO packages.
http://www.5gtango.eu
Apache License 2.0
7 stars 9 forks source link

Pre-download the tng-schemas to the tng-sdk-package container #174

Closed mpeuster closed 5 years ago

mpeuster commented 5 years ago

This will ensure the container works w/o internet access when it is started.

Schemas shall be fetched during container build.

Place:

quobis@quobis-UX330UAK:~$ ls ~/.tng-schema/
function-descriptor service-descriptor test-descriptor

More details:

mac-peuster1:~ manuel$ tree .tng-schema/
.tng-schema/
├── function-descriptor
│   └── vnfd-schema.yml
├── service-descriptor
│   └── nsd-schema.yml
└── test-descriptor
    └── test-schema.yml

Test

# container w/o network
docker run --rm -it --network none registry.sonata-nfv.eu:5000/tng-sdk-package:latest /bin/bash
# various test commands
tng-validate  --project misc/5gtango_ns_project_example1
tng-pkg -u misc/5gtango-ns-package-example.tgo