Title
#fleet
j

Jerome

08/12/2022, 12:53 PM
Hello, Regarding https://github.com/fleetdm/fleet/issues/6363 and https://github.com/fleetdm/fleet/issues/6364, it seems to be possible to build fleet-desktop packages from Linux. I'm running on Ubuntu 20.04 up-to-date. I follow the command indicates on https://github.com/fleetdm/fleet/tree/main/tools/fleetctl-docker,
docker run -v "$(pwd):/build" fleetdm/fleetctl package --type=msi
but I'm facing errors with all types With
deb
:
Error: initialize updates: failed to get osqueryd: download "osqueryd/linux/stable/osqueryd": exec check failed "/tmp/orbit-package2691724252/root/opt/orbit/staging/osqueryd": exec new version: : fork/exec /tmp/orbit-package2691724252/root/opt/orbit/staging/osqueryd: no such file or directory
With pkg:
Error: build pkg: cpio Payload: wait cpio: exit status 1
With msi:
Error: package root files: heat failed: exec: "docker": executable file not found in $PATH
Do I miss a step or something? Because if I use fleetctl binary directly and run
fleetctl package --type=deb --fleet-desktop --fleet-url=<https://fleet.test.com:8090> --enroll-secret=secret
, it works well for all platform types
roberto

roberto

08/12/2022, 1:54 PM
hey Jerome, this is something we haven't officially released yet, so the
fleetdm/fleetctl
image that's published in Docker Hub doesn't contain this functionality yet, that's why you're getting those errors. If you want to give it a try anyways, you can either: 1. Use
fleetdm/fleetctl:v4.18.0-beta
instead 2. Build the image locally
j

Jerome

08/12/2022, 2:36 PM
Thank you for help! It works like a charm with beta tag image 🤩