How to build your own OCP 4 installer
Make your build directory
mkdir -p ~/go/src/github.com/openshift
cd ~/go/src/github.com/openshift
Clone the repo
git clone https://github.com/openshift/installer.git
cd installer
Set your branch
git checkout release-4.5
Build it
hack/build.sh
Optionally build it with libvirt support
TAGS=libvirt hack/build.sh
sudo cp bin/openshift-install /usr/local/bin/openshift-install
Pick a image for OCP or OKD
Openshift releases: https://openshift-release.svc.ci.openshift.org/
OKD releases: https://origin-release.svc.ci.openshift.org
export OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE=quay.io/openshift-release-dev/ocp-release:4.5.16-x86_64
Run the installer
openshift-install