Skip to content

SriniKancharla/cq-dev-server-provision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GOAL

Provision a cq dev server with the following software pre-installed

Java OpenJDK
Tomcat Latest
Git
SVN Client
SVN Server
OpenLDAP
Nexus
and last but not least CQ

This project uses Chef Solo to do the provisioning. Currently onlu Ubuntu 12.04 and CentOS 6 are supported which at the time of developemnt are the latest LTS versions of the respective OSs.

The bootstrap script for ubuntu is modified from the following gist:
https://gist.github.com/chrismdp/1026628

For bootstraping CentOS 6, use:

Prerequisites

1. Its assumed that you have access to a barebones server and the server can connect to the internet.
2. You have a github account.

Provision

To provision the barebones server just run the following command.

For Ubuntu:
$GIT_USER='git_username' GIT_PASSWORD='git_password' bash < bootstrap_chef.sh

For CentOS:

Note: You will have to set execute flags on the file. e.g. chmod 755 bootstrap_chef.sh

This would update and install all the nessesary software. The script would need you to confirm adding github.com to known hosts list. After the script is done executing succesfully it will print a chef-solo command to run. Please copy and paste that command in the terminal and run it.

Tomcat
You can verify that the tomcat is running by accessing it at http://ip-address:8080/
Git Server
Login with your username and password to the server. Git server deamon should already be started when the server starts.

$ cd /srv/git
$ mkdir repo_name.git
$ cd repo_name.git
$ git --bare init
This creates a new repo on the git server.

In your local dev environment run git clone ssh://username@servername/srv/git/repo_name.git (where repo_name.git is your actual app repo directory)
· cd into repo_name locally
· Commit your local code
· git push origin master

Note: You might need sudo access to run some of these commands.

About

Developer in a box

developer in a box

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published