From 44878fa89e99940d95c91788a83bbe1f5ca02ca3 Mon Sep 17 00:00:00 2001 From: Lars Erik Wik Date: Thu, 13 Nov 2025 13:47:08 +0100 Subject: [PATCH 1/2] Updated added instructions for build hub package Ticket: ENT-12603 Signed-off-by: Lars Erik Wik --- README.md | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dac4279..181343b 100644 --- a/README.md +++ b/README.md @@ -243,8 +243,6 @@ The `buildslave` machine is set up specifically for the `build-remote` script. This script checks that certain dependencies are installed, while others are not installed, to avoid conflicting dependencies. Running `build-remote` from `dev` VM to `buildslave` VM is the easiest. -### Example: mingw cross compile for windows using build-remote - If you haven't already, create the buildslave base box: ``` @@ -292,6 +290,43 @@ logout From the dev machine, execute the build-remote script: +``` +bash /northern.tech/buildscripts/build-remote --no-tests --source /northern.tech/ --role hub --verbose build@buildslave +``` + +Your build files will appear here: + +``` +~/workdir-nova-master-build@buildslave/build/output/nova-master-localbuild/current/--/ +``` + +You can i.e. copy the deb package to the `/vagrant` directory: + +``` +cp workdir-nova-master-build@buildslave/build/output/nova-master-localbuild/current/--/cfengine-nova-hub_*.deb /vagrant/ +``` + +Login to you hub machine `CTRL + D` followed by: + +``` +vagrant ssh hub +``` + +Make sure to remove PostgreSQL: + +``` +sudo apt purge postgres* +``` + +Install with: + +``` +mv /vagrant/cfengine-nova-hub_*.deb ~/ +sudo dpkg -i cfengine-nova_3.27.0a.ef005c5af~unknown.ubuntu22_amd64.deb +``` + +### Example: mingw cross compile for windows using build-remote + ``` bash /northern.tech/cfengine/buildscripts/build-remote -c x64-mingw --source /northern.tech/cfengine --verbose build@buildslave ``` From 322f6ebed1c713a061aba764c1062c51fe0a29cd Mon Sep 17 00:00:00 2001 From: Lars Erik Wik Date: Thu, 13 Nov 2025 13:48:07 +0100 Subject: [PATCH 2/2] Increase RAM for hub VM PostgreSQL requires more RAM. Ticket: ENT-12603 Signed-off-by: Lars Erik Wik --- Vagrantfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index a62739d..fde75e8 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -142,6 +142,12 @@ Vagrant.configure("2") do |config| hub.vm.hostname = "hub" hub.vm.network "private_network", ip: "192.168.56.90" hub.vm.network :forwarded_port, guest: 443, host: 9002 + hub.vm.provider "virtualbox" do |v| + v.memory = 4096 + end + hub.vm.provider :libvirt do |v| + v.memory = 4096 + end end # Client test machine: