mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 22:40:12 +01:00
Merge branch 'vm-cpu-memory-status' into 'master'
build: read VM CPUs/RAM from builder/Vagrantfile See merge request fdroid/fdroidserver!1262
This commit is contained in:
commit
1562975bad
@ -1277,8 +1277,7 @@ def main():
|
||||
if m:
|
||||
status_output['hostProcMeminfoMemTotal'] = m.group(1)
|
||||
break
|
||||
fdroid_path = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))
|
||||
buildserver_config = os.path.join(fdroid_path, 'makebuildserver.config.py')
|
||||
buildserver_config = 'builder/Vagrantfile'
|
||||
if os.path.isfile(buildserver_config) and os.access(buildserver_config, os.R_OK):
|
||||
with open(buildserver_config) as configfile:
|
||||
for line in configfile:
|
||||
|
12
tests/builder/Vagrantfile
vendored
Normal file
12
tests/builder/Vagrantfile
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
# generated file, do not change.
|
||||
# https://gitlab.com/fdroid/fdroid-bootstrap-buildserver/-/blob/c0762bf9398d0/provision.yml#L552
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = "buildserver"
|
||||
config.vm.synced_folder ".", "/vagrant", disabled: true
|
||||
|
||||
config.vm.provider :libvirt do |libvirt|
|
||||
libvirt.cpus = 24
|
||||
libvirt.memory = 30720
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user