Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 37 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
Expand Down Expand Up @@ -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
```
Expand Down
6 changes: 6 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down