Skip to main content

Posts

Showing posts with the label Hanlon

CI ready for Hanlon

Good news Hanlon developers, Hanlon Git repo is integrated with Travis CI to perform automated unit test and code validation. This step improves the current contribution model in a number of ways... 1. All pull requests are automatically tested based on RSpec 2. Easier for contributors to validate pull request and provide thumbs-up 3. Improves the overall turn around time on PR merge.

Setting up Hanlon Development Environment (Update)

This is an update to my previous post Setting up Hanlon Development Environment . This update reflects the latest script changes incorporated Pre-requisites Operating System: Support any standard Linux distribution (Ubuntu LTS 14.04) Database: MongoDB Web Server: Trinidad Dev Tools: JRuby development enviroment with necessary gems Others: git, make, openjdk7, etc., Setting up Update your linux to get all the latest distributions apt-get install updates 1. Install pre-requisites apt-get install -y git make mongodb openjdk-7-jre-headless g++ curl   2. Install ruby environment with your preferred Ruby environment manager like rvm or rbenv (I prefer using rvm) and setup jruby as your default environment \curl -sSL https://get.rvm.io | bash -s stable --ruby=jruby source /usr/local/rvm/scripts/rvm rvm use jruby –default   3. Setup Hanlon working directory (My preferred location ~/wspace/hanlon) and clone hanon git repository cd mkdir wspace git clone https://g...

Hanlon server can now run on Java

Hanlon server code is migrated / refactored to run on JRuby so that hanlon server can be deployed on Java Application Servers. This blog outline the process to create hanlon.jar file for JAS deployment Dependencies 1. OpenJDK 7 2. Jruby Hanlon Jar Creation Assuming hanlon git repo is cloned and a suitable dev environment setup. (ref. Setting up Hanlon Development Environment for further details) 1. Create hanlon.jar # go to hanlon home directory cd scripts ./create_war.sh create_war.sh download necessary dependencies (xxx_jdbc.jar, ruby gems etc.,) and includes them into the war file   2. Deploy war Created war file can be found under builds directory of hanlon home directory. This file can be deployed onto your favorite java application server. It is tested on tomcat, jboss and glassfish. If you get a chance to test on other JAS containers, please post your feedback for any improvements

Building Hanlon Micro-Kernel (MK)

I am posting a quick cookbook on creating hanlon microkernel for easy reference. Detailed information on how the microkernel organized and build along with details on each of the command listed here can be found on git hanlon microkernel wiki   1. Install dependencies sudo apt-get install squashfs-tools -y sudo apt-get install -y fakeroot sudo apt-get install p7zip-full -y sudo apt-get install curl -y   2. Install Ruby (I prefer using rvm) \curl -sSL https://get.rvm.io | bash -s stable --ruby source /home/user/.rvm/scripts/rvm   3. Clone hanlon micro-kernel project into your working directory (my directory ~/wspace/hanlon/hanlon-mk) cd mkdir wspace mkdir hanlon git clone hanlon-mk cd hanlon-mk   4. Clone hanlon micro-kernel project into your working directory (my directory ~/wspace/hanlon/hanlon-mk) cd mkdir wspace mkdir hanlon git clone hanlon-mk   5. Create bundle file: This would create a temporary tar file containing all necessary ...

Setting up Hanlon Development Environment

Pre-requisites Operating System: Support any standard Linux distribution (Ubuntu LTS 14.04) Database: MongoDB Web Server: Trinidad Dev Tools: JRuby development enviroment with necessary gems Others: git, make, openjdk7, etc., Setting up Update your linux to get all the latest distributions apt-get install updates 1. Install pre-requisites apt-get install -y git make mongodb openjdk-7-jre-headless g++ isc-dhcp-server ipxe tftp tftpd curl 2. Install ruby environment with your preferred Ruby environment manager like rvm or rbenv (I prefer using rvm) and setup jruby as your default environment \curl -sSL https://get.rvm.io | bash -s stable --ruby=jruby source /usr/local/rvm/scripts/rvm rvm use jruby --default 3. Setup Hanlon working directory (My preferred location ~/wspace/hanlon) and clone hanon git repository cd mkdir wspace git clone https://github.com/csc/Hanlon.git hanlon 4. Install / update ruby gems cd hanlon bundle install gem install bundler trinidad 5. Run trinida...

Hanlon Announced Today

The CSC Open Source Program launched today with the first production ready version of Hanlon, a node provisioning solution. It is a major rewrite of the Razor project, which was originally written by Tom McSweeney and Nick Weaver two years ago, with an improved architecture and design. For people not familiar with Razor, Razor is an automated, policy driven OS provisioning and node control solution for both bare metal and virtual machines provisioning. A detailed overview can be found in Nick's blog . Tom McSweeney and Nick Weaver , who originally built Razor during their EMC days, launched it as open source through Puppet Labs , which grabbed a lot of attention from the community. A detailed history of Razor and the events that lead to the birth of Hanlon can be found in Tom McSweeney's Hanlon announcement blog . Coming back to Hanlon, Hanlon is released as two open source projects : Hanlon (the web server component to manage Hanlon nodes) and the Hanlon-Microke...