SysAdmin

Openshift – Basic Commands

JJ
Jobin Joseph · Founder and CEO
·Published 27 May 2012·1 min read

Some basic commands for OpenShift users.

– Create a Namespace.

`rhc domain create -n yourname -l rhloginid`

– Change your Name pace

`rhc domain alter -n yourname -l rhloginid`

– Create a php Application

`rhc app create -a appname -t php-5.3 -l rhlogin`

At the time of this writing, The Valid application types are (nodejs-0.6, jbossas-7, python-2.6, jenkins-1.4, ruby-1.8, diy-0.1, php-5.3, perl-5.10)

– Add mysql cartridge to your application

`rhc app cartridge add -c mysql-5.1 -a appname -l rhlogin`

At the time of this writing, The valid Cartridges are mongodb-2.0, cron-1.4, mysql-5.1, postgresql-8.4, haproxy-1.4, 10gen-mms-agent-0.1, phpmyadmin-3.4, metrics-0.1, rockmongo-1.1, jenkins-client-1.4.

– Set Alias for you application

`rhc app add-alias –alias www.example.com -a appname -l rhlogin`

– Remove alias of your application

`rhc app remove-alias –alias www.example.com -a appname -l rhlogin`

Jobin Joseph
Jobin Joseph, Founder and CEO
5x AWS Certified, ISO 27001:2022 Lead Implementer, 17+ years building cloud infrastructure for regulated industries.
About Jobin →

Reading this because your AWS bill or uptime is a problem?

30 minutes, direct with the founder, no sales pitch: one specific recommendation for your AWS workload.

Book a free 30-minute review
30 min Free Consultation →