Building Kit Applications#
Download and unzip the necessary packages from NGC:
Unpack the downloaded packages. For this example:
Kit SDK package is unpacked to
c:/temp/kit-sdkExtension registry package is unpacked to
c:/temp/kit-extensions-registry
In a Command Prompt window, navigate to the Kit SDK location.
cd c:/temp/kit-sdk
Create a new project using:
Windows:
new_project.batLinux:
./new_project.sh
Follow the prompts in the new project set up.
Enter a path for your project. For example,
c:/temp/my-project
Navigate to your project folder.
cd c:/temp/my-project
Create a new Kit application by using
repo template newFollow the instructions to create a new Viewer app.
Note
The default behavior is for the Kit application to search for extensions on a centralized Amazon S3 location. However, for air gap environments, we need to redirect the application to a local Kit Extension Registry, so that it can reference extension dependencies without requiring internet access.
Change the application repo.toml to point to the local extension registry:
Edit
repo.tomlin your project folder.Add a registry to
repo_precache_extssection and then save the toml file.
[repo_precache_exts] registries = [ { name = "any_name", url = "C:/temp/kit-extensions-registry" }, ]
In the Command Prompt window, build the application using:
Windows:
repo.bat buildLinux:
./repo.sh build
Launch the Viewer application using:
Windows:
repo.bat launchLinux:
./repo.sh launch
If you wish to load extensions at runtime from the application (necessary for running
repo launch -d), you will need to also configure your application to use the local registry:[settings.exts."omni.kit.registry.nucleus"] registries = [ { name = "kit/airgap", url = "c:/temp/kit-extensions-registry" }, ]