mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
And include that hash in the 'openshift version' and log output. This
makes it easier to troubleshoot reports from official builds, which
currently reference internal tags:
$ RELEASE=quay.io/openshift-release-dev/ocp-release:4.0.0-0.7
$ INSTALLER="$(oc adm release info "${RELEASE}" --image-for installer)"
$ oc image extract "${INSTALLER}" --file=/usr/bin/openshift-install
$ chmod +x openshift-install
$ ./openshift-install version
./openshift-install v4.0.15-1-dirty
although you can currently extract the commit given the pullspec and
access to the backing registry:
$ oc image info --output=json "${INSTALLER}" | jq -r '.config.config.Labels["io.openshift.build.commit.id"]'
c8b3b55326