summaryrefslogtreecommitdiffstats
path: root/build/variables.sh
diff options
context:
space:
mode:
authorMichael Chapman <michapma@redhat.com>2017-09-29 16:02:50 +1000
committerTim Rozet <trozet@redhat.com>2017-10-05 19:13:27 +0000
commit189b69a875d3eefca2a7eb3fa354b9f4930cbcd7 (patch)
treea1bb0bdd98828c4e4aca2dc00173a8a86622645a /build/variables.sh
parent7771d5010b9845576ceb0bbe5ad5f405ed99b871 (diff)
Increase memory size for virt-customize
Some of the bigger commands can exceed the default, so increase all instances for consistency. It's unlikely build machines won't have 4G of memory available. Change-Id: Ifa575b6e6faef9ba038900ab0e080da15d5680aa JIRA: APEX-520 Signed-off-by: Michael Chapman <michapma@redhat.com> (cherry picked from commit 0220094bfe4abdc964f282f4f01190897e3065e4)
Diffstat (limited to 'build/variables.sh')
-rw-r--r--build/variables.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/variables.sh b/build/variables.sh
index b0713268..93c71957 100644
--- a/build/variables.sh
+++ b/build/variables.sh
@@ -16,6 +16,9 @@ CACHE_HISTORY=".cache_history"
PATCHES_DIR="${BUILD_ROOT}/patches"
BUILD_UTILS="$(dirname ${BUILD_ROOT})/apex/build_utils.py"
+# Run virt-customize commands with a guest memory of 4G to avoid
+# oom issues on some of the larger build steps
+VIRT_CUSTOMIZE="virt-customize -m 4096"
rdo_images_uri=${RDO_IMAGES_URI:-http://artifacts.opnfv.org/apex/euphrates/rdo}
@@ -53,4 +56,4 @@ nosdn_vpp_rpms=(
'https://nexus.fd.io/content/repositories/fd.io.centos7/io/fd/vpp/vpp-api-python/17.07.01-release.x86_64/vpp-api-python-17.07.01-release.x86_64.rpm'
'https://nexus.fd.io/content/repositories/fd.io.centos7/io/fd/vpp/vpp-lib/17.07.01-release.x86_64/vpp-lib-17.07.01-release.x86_64.rpm'
'https://nexus.fd.io/content/repositories/fd.io.centos7/io/fd/vpp/vpp-plugins/17.07.01-release.x86_64/vpp-plugins-17.07.01-release.x86_64.rpm'
-) \ No newline at end of file
+)