Install a local openshift on CentOS - Jorge-Dacal/devonfw-shop-floor GitHub Wiki
-
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
-
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.
-
Install libvirt and qemu-kvm on your system.
$ sudo yum install libvirt qemu-kvm
-
Add yourself to the libvirt group so that you do not need to use sudo:
$ sudo usermod -a -G libvirt <username>
-
Update your current session to apply the group change:
$ newgrp libvirt
-
Start the libvirtd service:
$ sudo systemctl start libvirtd
$ sudo systemctl enable libvirtd
-
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.
-
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
-
Setup cdk
$ minishift setup-cdk
-
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