Codeine is a continuous deployment tool that makes product deployment faster and safer through automation and monitoring.
Download the latest release from here.
Make a directory called codeine
:
mkdir codeine
cd to this new directory:
cd codeine
Make directories called workarea
and deployment
:
mkdir workarea
mkdir deployment
Make a directory inside workarea
called conf
:
mkdir workarea/conf
cd to the deployment
directory:
cd deployment
Unzip the file that you downloaded here.
cd to the workarea/conf
directory:
cd ../workarea/conf
If you want Codeine to run its own MySQL instance (only compiled for and tested on Suse Linux 10 and 11, 64-bit; may work on other versions, YMMV):
Create a directory under codeine
called mysql_lib
:
cd ../..
mkdir mysql_lib
Grab the contents of the libs/mysql
directory from the Codeine repository. The easiest way to do this is with svn:
svn export https://github.com/codeine-cd/codeine/trunk/libs/mysql
Create a file called codeine.conf.json
that contains the following:
{
"web_server_host": "<hostname>",
"web_server_port": <port>,
"admin_mail": "<email_address>",
"mysql":[{
"host": "<db_hostname>",
"port": <db_port>,
"dir": "workarea/mysql_work",
"bin_dir":"mysql_lib",
"user": "<user>",
"password": "<password>",
"managed_by_codeine": true
}]
}
Replace the placeholders with actual values.
Note: If you are running your own MySQL instance (instead of letting Codeine run one for you):
"dir"
and bin_dir
lines.codeine
to the ones for your MySQL server."managed_by_codeine"
to false
.On both the server machine and on each client machine, set the value of the JAVA_HOME
environment variable. The path varies depending on the Linux distribution, local environment, etc.:
setenv JAVA_HOME /path/to/jdk
(This is for tcsh. For bash, use export
instead of setenv
.)
On both the server machine and on each client machine, set the value of the CODEINE_WORKAREA
environment variable:
setenv CODEINE_WORKAREA /full/path/to/workarea
(This is the workarea directory that you created above.)
Start the server. From the codeine
directory, type:
deployment/bin/run-server.pl
you can now see it at the following link:
http://localhost:<port>/
On each client machine, run the Codeine client. From the codeine
directory, type:
deployment/bin/run-peer.pl
You can see all the connected clients by going to Manage Codeine | Codeine Nodes Info:
http://localhost: