Install a local openshift on CentOS - Jorge-Dacal/devonfw-shop-floor GitHub Wiki

Steps

  1. Install the KVM binary as follows:

$ sudo curl -L https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.7.0/docker-machine-driver-kvm -o /usr/local/bin/docker-machine-driver-kvm
  1. Make the binary executable as follows:

$ sudo chmod +x /usr/local/bin/docker-machine-driver-kvm

For more information, see the GitHub documentation of the docker machine KVM driver.

  1. Install libvirt and qemu-kvm on your system.

$ sudo yum install libvirt qemu-kvm
  1. Add yourself to the libvirt group so that you do not need to use sudo:

$ sudo usermod -a -G libvirt <username>
  1. Update your current session to apply the group change:

$ newgrp libvirt
  1. Start the libvirtd service:

$ sudo systemctl start libvirtd
$ sudo systemctl enable libvirtd
  1. Download the CDK from Red Hat developers webpage and copy it to the server. Using Filezilla is a easy way to copy files to a remote server.

filezilla
  1. Copy the executable file to bin directory and add that folder to the system PATH.

$ mkdir -p ~/bin
$ cp ~/Downloads/cdk-3.1.0-1-minishift* ~/bin/minishift
$ chmod +x ~/bin/minishift
$ export PATH=$PATH:$HOME/bin
$ echo ‘export PATH=$PATH:$HOME/bin’ >> ~/.bashrc
  1. Setup cdk

$ minishift setup-cdk
  1. Configure red hat developer username and password.

$ export MINISHIFT_USERNAME=<RED_HAT_USERNAME>
$ export MINISHIFT_PASSWORD='<RED_HAT_PASSWORD>'
$ echo export MINISHIFT_USERNAME=$MINISHIFT_USERNAME >> ~/.bashrc
$ echo export MINISHIFT_PASSWORD=$MINISHIFT_PASSWORD >> ~/.bashrc

Install docker

⚠️ **GitHub.com Fallback** ⚠️