We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5732e53 commit e4b539aCopy full SHA for e4b539a
Vagrantfile
@@ -29,6 +29,8 @@ nightly_release = ENV['NIGHTLY_RELEASE'] || ''
29
node_os = ENV['CONTIV_NODE_OS'] || 'centos'
30
base_ip = ENV['CONTIV_IP_PREFIX'] || '192.168.2.'
31
num_nodes = ENV['CONTIV_NODES'].to_i == 0 ? 3 : ENV['CONTIV_NODES'].to_i
32
+num_vm_cpus = (ENV['CONTIV_CPUS'] || 4).to_i
33
+vm_memory = (ENV['CONTIV_MEMORY'] || 2048).to_i
34
legacy_docker = docker_version >= "17.03" ? 0 : 1
35
36
provision_common_once = <<SCRIPT
@@ -264,6 +266,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
264
266
end
265
267
config.vm.provider 'virtualbox' do |v|
268
v.linked_clone = true if Vagrant::VERSION >= "1.8"
269
+ v.memory = vm_memory
270
+ v.cpus = num_vm_cpus
271
272
273
node_ips = num_nodes.times.collect { |n| base_ip + "#{n+10}" }
0 commit comments