Handling the ndtrack Binary
The purpose of imgtrack, given a target image, is to create a derived image, temporarily run a container from it, and deliver to it the inventory component (ndtrack) of the standard FlexNet Inventory Scanner.
Choosing the ndtrack binary
uname
utility, and installs and runs the appropriate edition of
ndtrack for the platform. It is normal, and best practice,
to simply allow imgtrack to extract the appropriate edition of
ndtrack from its embedded tarball. However, where this does
not suit your corporate strategies, there are two alternatives:- You can instruct imgtrack to use a pre-installed copy
of ndtrack.sh (this may have been installed through
adoption or through third-party deployment). For success, this must be a
standard installation, where the tracker is located in
/opt/managesoft/libexec/support. To look here for
the tracker, and if found run that version instead of choosing one from the
attached tarball, use the
--local-ndtrack
option when invoking imgtrack. - Otherwise, you can direct imgtrack to use a copy of the
FlexNet Inventory Scanner (ndtrack.sh) saved in a
custom location, using the
--from-ndtrack
option. (If both these options are specified, this--from-ndtrack
option takes precedence.)
Providing the appropriate libc
The ndtrack binary is implemented in the C/C++ code family, and requires the standard runtime and libraries to execute. However, the target container image may be constructed without a C language runtime, standard system libraries, or typical system tools, directory layouts, or configurations; or it may contain an incompatible library. When imgtrack creates a derived image, any C library included in the source image is, of course, also included in the derived image.
ldd --version 2>&1
to capture output that
includes the specific implementation of the C library (if any). Immediately
afterwards, the container is deleted.‑‑libc-variant
option, which must identify one of the
supported implementations:glibc
– the standard GNU implementationmuslc
– the standard in the Alpine Linux distribution.
imgtrack example:latest --libc-variant glibc
IT Asset Management (Cloud)
Current