Bacarus
02/19/2021, 4:07 PMRUN GO111MODULE=on go run cmd/make/make.go -targets=launcher,extension -linkstamp $FAKE
RUN GO111MODULE=on go run cmd/make/make.go -targets=launcher,osquery-extension.exe -linkstamp $FAKE
and
RUN cp build/linux/* /usr/local/kolide/bin/
RUN cp build/linux.amd64/* /usr/local/kolide/bin/
I’ve taken a look at kolide/fpm but I don’t understand very well how it works.
What should I do if I want a simple rpm to deploy to hosts and how can I configure the launcher? (I’d like to build an rpm package that it will be launched at the startup like the msi for windows)seph
kolide/fpm
is used internally by package-builder when it’s building for rpm/deb/pacman. It’s not something you would call on your own.make build_launcher_linux
should work. But I don’t know if you’re trying to build launcher, or just a package?package-builder
with appropriate options from a host that supports docker.Bacarus
02/22/2021, 1:43 PMpackage-builder make --hostname=fleet:8080 --enroll_secret=my_secret --root_pem=fleet.pem --output_dir=. -targets linux-launchd-rpm
I have this error message:
run command /var/folders/z8/lhzyngpx57l42hr3qkq4fm1w0000gn/T/package.packageRoot989424315/usr/local/launcher/bin/launcher [-version], stderr=: fork/exec /var/folders/z8/lhzyngpx57l42hr3qkq4fm1w0000gn/T/package.packageRoot989424315/usr/local/launcher/bin/launcher: exec format error
And the rpm output package is empty.
should I add -package_version flag? which value should I give to have the most latest version?
By the way the docs is a little bit tricky to me.
Adding some other examples (especially about cross compiling) to the documentation can make it easier to understandseph
pacakge-builder
and, to be honest, much of the launcher tooling expects a fairly deeop knowledge of OS management and packaging. If you need a lot of support, or ready made things, there are several commercial vendors.package-builder make --hostname=fleet:8080 --enroll_secret=my_secret --root_pem=fleet.pem
?Bacarus
02/22/2021, 5:03 PMseph
package-builder list-targets
interesting-targets darwin-launchd-pkg,linux-systemd-rpm,linux-systemd-deb
for example