Defining the list of images to pull
The Image Puller can pre-pull most images, including scratch images such as che-machine-exec
. However, images that mount volumes in the Dockerfile, such as traefik
, are not supported for pre-pulling on OpenShift 3.11.
Pre-pulling images involved in workspace startup will reduce workspace start times. For example:
-
Che-Theia
-
broker images
-
plug-in sidecar images
-
The
curl
tool is available. See curl homepage. -
The
jq
tool is available. See jq homepage. -
The
yq
tool is available. See yq homepage.
-
Gather a list of relevant container images for the Kubernetes or OpenShift platform:
Example 1. Getting the list of all relevant images for Kubernetes$ curl -sSLo- https://raw.githubusercontent.com/eclipse-che/che-operator/7.43.x/deploy/olm-catalog/stable/eclipse-che-preview-kubernetes/manifests/che-operator.clusterserviceversion.yaml | \ yq -r '.spec.install.spec.deployments[].spec.template.spec.containers[].env[] | select(.name | test("RELATED_IMAGE_.*"; "g")) | .value' | \ sort -u
Example 2. Getting the list of all relevant images for OpenShift$ curl -sSLo- https://raw.githubusercontent.com/eclipse-che/che-operator/7.43.x/deploy/olm-catalog/stable/eclipse-che-preview-openshift/manifests/che-operator.clusterserviceversion.yaml | \ yq -r '.spec.install.spec.deployments[].spec.template.spec.containers[].env[] | select(.name | test("RELATED_IMAGE_.*"; "g")) | .value' | \ sort -u
-
Determine images from the list for pre-pulling.
For faster workspace startup times, consider pre-pulling the workspace-related images:
-
che-theia
-
che-theia-endpoint-runtime-binary
-
che-machine-exec
-
che-plugin-artifacts-broker
-
che-plugin-metadata-broker
-