Update Orbit README to reflect packaging now done with fleetctl (#2626)

This commit is contained in:
m4wh6k
2021-10-24 17:57:08 -07:00
committed by GitHub
parent 6c58159fb8
commit bb5e5d08f5
2 changed files with 8 additions and 7 deletions
@@ -0,0 +1 @@
* Updates Orbit README since fleetctl is now used for building packages.
+7 -7
View File
@@ -8,12 +8,12 @@ Orbit is the recommended agent for Fleet. But Orbit can be used with or without
## Try Orbit
#### With [`fleetctl preview` already running](https://github.com/fleetdm/fleet#try-fleet) and [Go](https://golang.org/doc/install) 1.16 installed:
#### With [`fleetctl preview` already running](https://github.com/fleetdm/fleet#try-fleet):
```bash
# From within the orbit/ directory in this repo…
# With fleetctl in your $PATH
# Generate a macOS installer pointed at your local Fleet
go run ./cmd/package --type=pkg --fleet-url=localhost:8412 --insecure --enroll-secret=YOUR_FLEET_ENROLL_SECRET_HERE
fleetctl package --type=pkg --fleet-url=localhost:8412 --insecure --enroll-secret=YOUR_FLEET_ENROLL_SECRET_HERE
```
> With fleetctl preview running, you can find your Fleet enroll secret by selecting the "Add new host" button on the Hosts page in the Fleet UI.
@@ -117,7 +117,7 @@ Building Windows packages requires Docker to be installed.
### Building packages
Use `go run ./cmd/package` from this directory to run the packaging tools.
Use `fleetctl package` to run the packaging tools.
The only required parameter is `--type`, use one of `deb`, `rpm`, `pkg`, or `msi`.
@@ -126,14 +126,14 @@ Configure osquery to connect to a Fleet (or other TLS) server with the `--fleet-
A minimal invocation for communicating with Fleet:
```sh
go run ./cmd/package --type deb --fleet-url=fleet.example.com --enroll-secret=notsosecret
fleetctl package --type deb --fleet-url=fleet.example.com --enroll-secret=notsosecret
```
This will build a `.deb` package configured to communicate with a Fleet server at `fleet.example.com` using the enroll secret `notsosecret`.
When the Fleet server uses a self-signed (or otherwise invalid) TLS certificate, package with the `--insecure` or `--fleet-certificate` options.
See `go run ./cmd/package` for the full range of packaging options.
See `fleetctl package` for the full range of packaging options.
#### Update channels
@@ -160,7 +160,7 @@ For Notarization, valid App Store Connect credentials must be available on the b
Build a signed and notarized macOS package with an invocation like the following:
```sh
AC_USERNAME=zach@example.com AC_PASSWORD=llpk-sije-kjlz-jdzw go run ./cmd/package --type=pkg --fleet-url=fleet.example.com --enroll-secret=63SBzTT+2UyW --sign-identity 3D7260BF99539C6E80A94835A8921A988F4E6498 --notarize
AC_USERNAME=zach@example.com AC_PASSWORD=llpk-sije-kjlz-jdzw fleetctl package --type=pkg --fleet-url=fleet.example.com --enroll-secret=63SBzTT+2UyW --sign-identity 3D7260BF99539C6E80A94835A8921A988F4E6498 --notarize
```
This process may take several minutes to complete as the Notarization process completes on Apple's servers.