fleet/cmd/fleetctl
Roberto Dip f7dd8c86cd
implement a docker image to package orbit natively in Linux (#6504)
Related to #6364 and #6363, this:

- Adds a new Docker image, `fleetdm/fleetctl` equipped with all necessary dependencies to build Fleet-osquery binaries for all platforms
- Modifies the package generation logic to special case this scenario via an environment variable `FLEETCTL_NATIVE_TOOLING`
- Adds a new GitHub workflow to test this

There are more details in the README, but part of the special-casing logic is in place to output the binaries to a folder named `build` when they are run with `FLEETCTL_NATIVE_TOOLING`, this is so we can persist the binary generated by the docker container via a bind mount:

```bash
docker run -v "$(pwd):/build" fleetdm/fleetctl package --type=msi
```

To test this changeset, I have generated packages for all platforms, both via the new Docker image and via the classic `fleetctl package`.
2022-07-11 09:49:13 -03:00
..
testdata Include MIA hosts under total count for Offline hosts (#5854) 2022-05-23 14:11:02 -05:00
api.go Add support for custom headers in fleetctl (#6118) 2022-06-07 16:00:09 -04:00
apply_test.go Add validation for pack scheduled query interval (#5918) 2022-05-26 16:54:21 -05:00
apply.go Add team targets to pack spec (#4272) 2022-02-21 09:18:58 -07:00
config_test.go Add support for custom headers in fleetctl (#6118) 2022-06-07 16:00:09 -04:00
config.go Add support for custom headers in fleetctl (#6118) 2022-06-07 16:00:09 -04:00
convert_test.go Add team targets to pack spec (#4272) 2022-02-21 09:18:58 -07:00
convert.go Use new error handling approach in other packages (#2954) 2021-11-22 09:13:26 -05:00
debug_test.go fix fleetctl debug commands on Windows (#6186) 2022-06-10 21:59:44 -03:00
debug.go fix fleetctl debug commands on Windows (#6186) 2022-06-10 21:59:44 -03:00
delete_test.go Simplify fleetctl implementation and improve testing (#3830) 2022-01-24 16:40:51 -03:00
delete.go Use new error handling approach in other packages (#2954) 2021-11-22 09:13:26 -05:00
flags.go improve messaging of fleetctl debug errors and archive commands (#5590) 2022-05-10 10:44:06 -03:00
fleetctl.go Improve logging for fleetctl with permissions errors (#6460) 2022-06-30 13:24:19 -07:00
get_test.go Add battery info in host details response (#6394) 2022-06-28 14:11:49 -04:00
get.go improve messaging of fleetctl debug errors and archive commands (#5590) 2022-05-10 10:44:06 -03:00
goquery.go Use new error handling approach in other packages (#2954) 2021-11-22 09:13:26 -05:00
hosts_test.go Refactor integration tests (#1821) 2021-09-15 16:27:53 -03:00
hosts.go Use new error handling approach in other packages (#2954) 2021-11-22 09:13:26 -05:00
kill_process_windows.go Download and launch orbit for the current device when starting preview (#2437) 2021-10-15 18:23:06 -03:00
kill_process.go Download and launch orbit for the current device when starting preview (#2437) 2021-10-15 18:23:06 -03:00
login.go Tweak output for fleetctl login --help (#4776) 2022-03-23 16:40:16 -04:00
logout_test.go Simplify fleetctl implementation and improve testing (#3830) 2022-01-24 16:40:51 -03:00
logout.go Use new error handling approach in other packages (#2954) 2021-11-22 09:13:26 -05:00
package_test.go implement a docker image to package orbit natively in Linux (#6504) 2022-07-11 09:49:13 -03:00
package.go implement a docker image to package orbit natively in Linux (#6504) 2022-07-11 09:49:13 -03:00
preview_test.go Add gotestfmt to improve test output and fix flaky tests (#6528) 2022-07-11 08:12:33 -03:00
preview.go Improve logging for fleetctl with permissions errors (#6460) 2022-06-30 13:24:19 -07:00
query_output.go Support close the websocket of LiveQueryResultsHandler (#1006) 2021-09-10 16:26:39 -03:00
query_test.go Allow troubleshooting of mocked live query store (#6197) 2022-06-13 10:18:03 -03:00
query.go fleetctl query improve error message (#5141) 2022-04-20 11:35:46 -06:00
session_test.go Print version warning when using fleetctl (#4139) 2022-02-14 09:43:34 -07:00
setup.go Use new error handling approach in other packages (#2954) 2021-11-22 09:13:26 -05:00
testing_utils.go Add support for custom headers in fleetctl (#6118) 2022-06-07 16:00:09 -04:00
user.go Create Bulk Users from CSV (#3372) 2022-06-22 13:34:58 -03:00
users_test.go Create Bulk Users from CSV (#3372) 2022-06-22 13:34:58 -03:00
vulnerability_data_stream_test.go Fix flaky test TestVulnerabilityDataStream (#6162) 2022-06-09 10:36:37 -03:00
vulnerability_data_stream.go Improve vulnerability detection for Ubuntu (#6102) 2022-06-07 21:09:47 -04:00
yaml_test.go Fix yaml separator handling with comments (#2257) 2020-07-08 16:01:03 -07:00
yaml.go Fix yaml separator handling with comments (#2257) 2020-07-08 16:01:03 -07:00