VirtualBox 4.2 Release Candidate 2 released
OpenLogic CloudSwing is an open platform-as-a-service (PaaS) solution that enables developers and IT staff to easily deploy and operate applications in the cloud. Designed for the enterprise, CloudSwing acts as your central dashboard for applications across all of the public and private clouds you use.
Developer VM’s provide “low cost” pre configured, ready to use virtual instances for quick download and use. Main purpose is to provide pre configured virtual instances for developers in order to speed up the configuration of development and testing environment.
BitNami Alfresco Cloud VM is a pre-configured, ready to run image for running Alfresco on Amazon EC2. Alfresco is an Enterprise Content Management (ECM) system featuring Document Management, Web Content Management, Collaboration Management, Records Management and Image Management.
With the release of VMware Player 5 VMware have made it no longer free-of-charge for office use only personal use. So you’ll have to switch to VirtualBox or be sure to download VMware Player 4 instead and do not upgrade it !
VMware Player 5 is now available for commercial use with support offerings as a component of VMware Fusion Professional.
you can find out your openshift mysql host, openshift mysql user and openshift mysql password by looking at your openshift environment variables
- $ ssh myopenshiftuser@myopenshiftdomain
- $ env | grep OPENSHIFT
OpenShift provides several environment variables to reference for ease of use.
The following list are some common variables but far from exhaustive:
$_ENV[‘OPENSHIFT_APP_NAME’] – Application name
$_ENV[‘OPENSHIFT_GEAR_DIR’] – Application dir
$_ENV[‘OPENSHIFT_DATA_DIR’] – For persistent storage (between pushes)
$_ENV[‘OPENSHIFT_TMP_DIR’] – Temp storage (unmodified files deleted after 10 days)
When embedding a database using ‘rhc app cartridge add’, you can reference environment variables for username, host and password:
$_ENV[‘OPENSHIFT_DB_HOST’] – DB host
$_ENV[‘OPENSHIFT_DB_PORT’] – DB Port
$_ENV[‘OPENSHIFT_DB_USERNAME’] – DB Username
$_ENV[‘OPENSHIFT_DB_PASSWORD’] – DB Password
and you can use these in your drupal, wikkawiki, wordpress config file as follows
/** The name of the database for your lamp app */
/** MySQL database username */
/** MySQL database password */
/** MySQL hostname */
your actual php code can be found in ~/app-root/runtime/repo/php
more openshift repo layout info
php/ – Externally exposed php code goes here
libs/ – Additional libraries
misc/ – For not-externally exposed php code
../data – For persistent data (full path in environment var: OPENSHIFT_DATA_DIR)
deplist.txt – list of pears to install
.openshift/action_hooks/pre_build – Script that gets run every git push before the build
.openshift/action_hooks/build – Script that gets run every git push as part of the build process (on the CI system if available)
.openshift/action_hooks/deploy – Script that gets run every git push after build but before the app is restarted
.openshift/action_hooks/post_deploy – Script that gets run every git push after the app is restarted
Notes about layout
Please leave php, libs and data directories but feel free to create additional directories if needed.
Note: Every time you push, everything in your remote repo dir gets recreated please store long term items (like an sqlite database) in ../data which will persist between pushes of your repo.
you dont need rhc to modify your red hat openshift app just git
- git clone ssh://RHOSUSER@RHOSAPPNAME-RHOSDOMAIN.rhcloud.com/~/git/RHOSAPPNAME.git/
- cd RHOSAPPNAME
- cd php
- vi index.php
- git add .
- git commit -m ‘my changes’
- git push
creating a scalable openshift app (you seem to have to use cli instead of gui)
- install red hat cli tools
- run cli
- $ rhc app create -a lamp -t php-5.3 -s -d
- run gui
- add mysql cartridge
you should now have an openshift lamp app with a HA proxy, php & mysql all on separate openshift gears
Red Hat OpenShift Client Install
OpenShift bash / shell / ssh commands
- $ gem install rhc
- $ rhc setup – (this will automatically set up ssh key for you)
- $ rhc domain show
- $ ssh UUID@MYOPENSHIFTAPPDNSNAME
Note you can get UUID & MYOPENSHIFTAPPDNSNAME from the output of
“rhc domain show”
Add your own domain name to Red Hat OpenShift DNS
- $ rhc app add-alias -a MYAPPNAME –alias “MY.EXAMPLE.COM”
- add a CNAME for MY.EXAMPLE.COM that points to MYOPENSHIFTAPPDNSNAME