imagetool

A utility to add, delete, get and compare images on the imageserver.

The imagetool is the most important utility in the Dominator system, as it is used to manage images. Imagetool may be run on any machine. It is typically run on a desktop, bastion or build machine, depending on the sophistication of your build environment.

Usage

Imagetool supports several sub-commands. There are many command-line flags which provide parameters for these sub-commands. The most commonly used parameter is -imageServerHostname which specifies which host the imageserver to talk to is running on. The basic usage pattern is:

imagetool [flags...] command [args...]

Built-in help is available with the command:

imagetool -h

Some of the sub-commands available are:

Security

Imageserver restricts RPC access using TLS client authentication. Imagetool will load certificate and key files from the ~/.ssl directory. Imagetool will present these certificates to imageserver. If one of the certificates is signed by a certificate authority that imageserver trusts, imageserver will grant access.

Making raw images

You can specify extra partitions to be created using the -extraPartitionsFilename option to the make-raw-image subcommand, which specifies a JSON file. An example file is:

[
    {
        "FileSystemLabel": "/home",
        "MountPoint": "/home",
        "MinimumBytes": 536870912,
        "RootGroupId": 1,
        "RootUserId": 2
    }
]

This will create an extra 512 MiB /home partition and file-system, with the root inode owned by GID=1,UID=2.