The right way to maintain build grid for continuous integration is virtualization.
2008-11-24 13:04
483 查看
Cruise team use cruise to do continuous integration.
We are using virtual machines of Xen server to setup our CI build grid, rather than physical machines. Because the virtual machines are easy to maintain. You can easily import a VM to jion the build grid. Only one thing which you have to do is to change the host name of the new VM. The backup of original virtual machine has setup with cruise agent and the environment our continuous integration need.
The issue of disk space raised over time.
Due to the low disk space in the original virtual machine's backup, the agents often run out of disk space when we add multiple pipelines for release management.
So we have to figure out how to add more disk space under /var/lib/cruise-agents/pipelines.
What I did was to add a new partition to the VM and backup the new VM as the seed.
It was really easy. I like VMs.
-----------------------------------------------------------------
how to add a hard driver to linux and mount it.sudo rm -rf /var/lib/cruise-agent/pipelines
sudo /sbin/fdisk /dev/xvdc
and the prompt: n (create a new empty dos partition table) and: w
sudo mkfs -t ext3 /dev/xvdc
sudo mkdir /var/lib/cruise-agent/pipelines
sudo mount -t ext3 /dev/xvdc /var/lib/cruise-agent/pipelines
sudo chown -R cruise:cruise /var/lib/cruise-agent/pipelines
We are using virtual machines of Xen server to setup our CI build grid, rather than physical machines. Because the virtual machines are easy to maintain. You can easily import a VM to jion the build grid. Only one thing which you have to do is to change the host name of the new VM. The backup of original virtual machine has setup with cruise agent and the environment our continuous integration need.
The issue of disk space raised over time.
Due to the low disk space in the original virtual machine's backup, the agents often run out of disk space when we add multiple pipelines for release management.
So we have to figure out how to add more disk space under /var/lib/cruise-agents/pipelines.
What I did was to add a new partition to the VM and backup the new VM as the seed.
It was really easy. I like VMs.
-----------------------------------------------------------------
how to add a hard driver to linux and mount it.sudo rm -rf /var/lib/cruise-agent/pipelines
sudo /sbin/fdisk /dev/xvdc
and the prompt: n (create a new empty dos partition table) and: w
sudo mkfs -t ext3 /dev/xvdc
sudo mkdir /var/lib/cruise-agent/pipelines
sudo mount -t ext3 /dev/xvdc /var/lib/cruise-agent/pipelines
sudo chown -R cruise:cruise /var/lib/cruise-agent/pipelines
相关文章推荐
- This file is set to build for a version older than the project deployment target. Functionality may
- Maven项目导入到Eclipse时Build出现the user operation is waiting for building workspace to complete的问题解决
- "There is only one way to do it, the right way” -------Guido van Rossum
- The best way to be "right once" is to have the ability to envision what things are going to look like three weeks, three months
- What is the best way to calculate a checksum for a file that is on my machine?
- xib This file is set to build for a version older than the project deployment target解决方法
- What is the easiest way of getting OpenLayers to configure itself for printing?
- What is the best way to implement a heartbeat in C++ to check for socket connectivity?
- 插入mysql语句报错:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
- 错误:check the manual that corresponds to your MySQL server version for the right
- Your build host version of Xamarin.IOS (release NO.)is too recent to work with the IOS designer
- How to build the environment of MSYS for the crossing compiler?
- The project was not built since its build path is incomplete. Cannot find the class file for javax.s
- Unity3d build打包app时报错:Failed to re-package resources. See the Console for details.
- JAVA Error:The project was not built since its build path is incomplete. Cannot find the class file for java.util.Map$Entry.....
- The best way to predict future is to invent it.------Alan Kay
- How To Print a Form That Is Too Large for the Screen or Page
- Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information.
- for the right syntax to use near ''X''问题解决
- CHECK the manual that corresponds TO your MySQL SERVER VERSION FOR the RIGHT syntax TO USE near.....