Getting access to images from a local image registry
Use the load images script to access FNCM component images from a local image registry. The load images script pulls the images from IBM Entitled Registry and pushes them to your registry. The device that you use to run the script must be connected to the internet and have access to the local registry.
Before you begin
The loadimages.py script uses the following utility tools and needs them to be installed on your client machine:
- Kubernetes CLI
- Python
container-samples
repository from GitHub- Skopeo
If the script finds that any of these tools are missing on the client, it reports which tools are missing and provides a choice to install the tool.
About this task
The loadimages.py script creates a file that contains the image repository information for the FNCM components. Based on the information in the file, the component images are pulled from IBM Entitled Registry. You can review the file to specify the FNCM component images that you require, and update the repository or tag information for the components. The script then processes the file to copy the specified component images from the IBM Entitled Registry to a private image registry that you supply.
The loadimages.py script has two modes.- generate
- When you run the script in
generate
mode, it first checks whether all the required descriptor files exist and flags files that are missing. When all the required files exist and the prerequisites validation passes, it generates the imageDetails.toml file. The imageDetails.toml file contains the image repository and tag information for the FNCM components that are supported in a FileNet P8 container environment. - push
- The
push
mode copies the images for the FNCM components that are specified in imageDetails.toml from the IBM Entitled Registry to a private image registry that you supply.
After you downloaded the container-samples repository, change the directory to the container-samples/scripts folder.
python3 loadimages.py --help
Usage: loadimages.py [OPTIONS] COMMAND [ARGS]...
FileNet Content Manager Deployment Load Images CLI.
Options:
--version Show version and exit.
--install-completion Install completion for the current shell.
--show-completion Show completion for the current shell, to copy it or customize the installation.
--help Show this message and exit.
Customization and Utils:
--silent --no-silent Enable Silent Install (no prompts). [default: no-silent]
--verbose --no-verbose Enable verbose logging. [default: no-verbose]
--dryrun --no-dryrun Perform a dry run [default: no-dryrun]
Commands:
generate Generate the image details file.
push Push images to a registry based on existing image details file.
You can run the script interactively, or supply the environment variables beforehand and
run the script as a silent deployment.python3 loadimages.py
python3 loadimages.py --silent
Procedure
Results
What to do next
To install the operator, see Installing the operator by running a script.