Coder Social home page Coder Social logo

cq-dev-server-provision's Introduction

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

Its assumed that you have access to a barebones server and the server can connect to the internet. Github requires you to authenticate with them. So you would first need to request to add your public SSH key to the github to be able to clone this repository. If you need steps to generate SSH keys on the barebones Linux server, here are the steps:
https://help.github.com/articles/generating-ssh-keys

Provision

After the ssh key is added, just copy the bootstrap script, (For bootstapping Ubuntu 12.04, use: bootstrap_chef.sh and For CentOS Use: foo-bar.sh) to the home folder of the user and run it.

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

cq-dev-server-provision's People

Contributors

srinikancharla avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.