Kouhei Sutou
null+****@clear*****
Tue Sep 9 17:50:16 JST 2014
Kouhei Sutou 2014-09-09 17:50:16 +0900 (Tue, 09 Sep 2014) New Revision: 244e9c6ae7bbc591577502c0224d1c66e034d69f https://github.com/groonga/groonga/commit/244e9c6ae7bbc591577502c0224d1c66e034d69f Message: package yum: reduce required memory Modified files: packages/yum/Vagrantfile packages/yum/build-rpm.sh Modified: packages/yum/Vagrantfile (+1 -1) =================================================================== --- packages/yum/Vagrantfile 2014-09-06 03:30:02 +0900 (a0afb49) +++ packages/yum/Vagrantfile 2014-09-09 17:50:16 +0900 (f348eb8) @@ -34,7 +34,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| node.vm.box_url = vm[:box_url] node.vm.provision(:shell, :path => "build-rpm.sh") node.vm.provider("virtualbox") do |virtual_box| - virtual_box.memory = 4096 + virtual_box.memory = 1536 end end end Modified: packages/yum/build-rpm.sh (+5 -0) =================================================================== --- packages/yum/build-rpm.sh 2014-09-06 03:30:02 +0900 (2996aff) +++ packages/yum/build-rpm.sh 2014-09-09 17:50:16 +0900 (321b957) @@ -13,6 +13,11 @@ rpmbuild_options= . /vagrant/env.sh +swap_file=/tmp/swap +run dd if=/dev/zero of="$swap_file" bs=1024 count=1024K +run mkswap "$swap_file" +run swapon "$swap_file" + distribution=$(cut -d " " -f 1 /etc/redhat-release | tr "A-Z" "a-z") if grep -q Linux /etc/redhat-release; then distribution_version=$(cut -d " " -f 4 /etc/redhat-release) -------------- next part -------------- HTML����������������������������... Download