Setup OpenShift on CentOS 6.x
Let’s give OpenShift by RedHat Enterprise a shot shall we?
I’m using a CentOS 6.6 final workstation to do my settings.
Note: This article expects you to execute the commands as root, unless otherwise stated. You can also do sudo <command> instead when your user is in the sudoers file.
Preparation
First you’re in need to setup your SSH and add the RHC client tool. For that you need to install a set of ruby packages:
yum install ruby ruby-devel rubygems rubygems-devel rubygem-json rubygem-parseconfig
The rubygems-devel I added optionally onto it as experience has shown that many times, issues during configurations and setups lack some devel packages. ruby-devel however I installed after running into an issue with gem so may add this to the list of things you want to install.
The packages are found in the base and epel repository. I already had the epel repository added to my repolist from previous installations so no additional steps required here. May not get confused with the OpenShift documentation as they talk about adding repos / subscriptions through the yum-config-manager.
OpenShift Client config
Note: We progress as regular user from this point onwards.
Next up is the client configuration. You can enter the setup process via:
rhc setup
It’ll ask you for the OpenShift server you want to connect to. If you use your own, enter the custom domain you have, otherwise just hit enter if you use the OpenShift online service.
The setup will ask you for OpenShift username, password, and if the should upload the keys automatically.
There will be an .openshift directory in your users home directory where you can find all required files after the setup process.
You are all set.Â
We’ll discuss interaction with OpenShift in an example project in a later blog article. Until then, have a good time and keep developing.
















