LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automate VIPM packages instalation

We are looking for a way to automate interaction with vipm in Docker container so i can install dependent packages during build process, we could not find any documentation in this topic.

 

I have seen there is API for VIPM but it is not installed with free edition and paying for that feature is not an option.

Worst case solution I have now is to include all required vi packages in project repo, checkout and manually unzip in vi.lib directory, but that seems like very bad approach and there must be something better.

0 Kudos
Message 1 of 10
(1,684 Views)

With VIPM free, you can create your own (unpublished) package and add all your dependencies to it.

Then when you install it via VIPM, all the dependencies are installed in a row.

 

The package build specification file has an XML-based format, which could also be edited programmatically without VIPM.

 

However this will not be 100% automatic because you will need to manually build and install the package with VIPM, but it still saves a lot of time compared to installing all dependencies separately on each individual machine.

0 Kudos
Message 2 of 10
(1,646 Views)

Thanks for reply,

 

this build is running in headless github hosted runner. New build spinns new clean VM where those packages must be applied.

Editing will be done manually when new dependency is required for given project

Can this package configuration be installed by vipm in automated way? Like in pip or nuget package managers?

0 Kudos
Message 3 of 10
(1,641 Views)

VIPM actually has a command line interface for automating the install and uninstall of packages.  The was a feature limited to the pro license of VIPM.  But luckily for you these features and a few other, are now free.  Also free now is the VIPM toolkit for controlling VIPM from LabVIEW.  So you can automate installs and updates of packages.

0 Kudos
Message 4 of 10
(1,635 Views)

Thanks, they say it will be released 2023 

0 Kudos
Message 5 of 10
(1,629 Views)

Yup sorry I missed that, and I can't edit my post.

0 Kudos
Message 6 of 10
(1,622 Views)

VIPM 2023 Q1 was released.

Does anyone know where to find some documentation regarding CLI or if it was released?

There is nothing in VIPM instllation directory

0 Kudos
Message 7 of 10
(1,354 Views)

I only used it once many years ago, but the VIPM API might be what you want.  This is a VIPM package that can be installed, which adds a palette of tools for controlling VIPM from within LabVIEW.  These tools are for things like automatically building packages, installing packages, or doing other VIPM related tasks.  Years ago I remember digging into the VIs and they were just command line calls to a helper application.  I do not know if there is documentation on the CLI interface, or if only the VIPM API is what JKI expects you to use.

0 Kudos
Message 8 of 10
(1,335 Views)

It seems this tool is broken. When used on desktop pc works fine.

When used in docker container it hangs forever. Seems vipm must start before this API executes and can't do it inside docker.

 

I think now the way to go is to manually specify list of vipm packages to download and unzip content to LabVIEW folder. 

0 Kudos
Message 9 of 10
(1,300 Views)

@pawhan11 wrote:

It seems this tool is broken. When used on desktop pc works fine.


I wouldn't say it is broken.  I'd say it was designed around an operating system that has a GUI.  Glad you got your answer without having to pay for the pro version of VIPM, only to find it doesn't meet your needs.

0 Kudos
Message 10 of 10
(1,287 Views)