Bacarus02/19/2021, 4:07 PM
RUN 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
RUN cp build/linux/* /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)
RUN cp build/linux.amd64/* /usr/local/kolide/bin/
is used internally by package-builder when it’s building for rpm/deb/pacman. It’s not something you would call on your own.
should work. But I don’t know if you’re trying to build launcher, or just a package?
with appropriate options from a host that supports docker.
Bacarus02/22/2021, 1:43 PM
I have this error message:
package-builder make --hostname=fleet:8080 --enroll_secret=my_secret --root_pem=fleet.pem --output_dir=. -targets linux-launchd-rpm
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 understand
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, 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
Bacarus02/22/2021, 5:03 PM