Skip to content

Commit

Permalink
Update docs and Makefile to use Github releases for binaries (kolide#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zwass authored and directionless committed Jun 4, 2019
1 parent eb21211 commit bf6c6b3
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,4 @@ xp-fleetctl: .pre-binary-bundle .pre-fleetctl generate

binary-bundle: xp-fleet xp-fleetctl
cd build/binary-bundle && zip -r "fleet_${VERSION}.zip" darwin/ linux/ windows/
cp build/binary-bundle/fleet_${VERSION}.zip build/binary-bundle/fleet_latest.zip
cp build/binary-bundle/fleet_${VERSION}.zip build/binary-bundle/fleet.zip
12 changes: 6 additions & 6 deletions docs/infrastructure/fleet-on-centos.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ $ vagrant ssh
To install Fleet, run the following:

```
$ wget https://dl.kolide.co/bin/fleet_latest.zip
$ unzip fleet_latest.zip 'linux/*' -d fleet
$ wget https://github.com/kolide/fleet/releases/latest/download/fleet.zip
$ unzip fleet.zip 'linux/*' -d fleet
$ sudo cp fleet/linux/fleet* /usr/bin/
```

Expand All @@ -45,10 +45,10 @@ To start the MySQL service:
$ sudo systemctl start mysqld
```

Let's set a password for the MySQL root user.
Let's set a password for the MySQL root user.
MySQL creates an initial temporary root password which you can find in ```/var/log/mysqld.log``` you will need this password to change the root password.

Connect to MySQL
Connect to MySQL
```
$ mysql -u root -p
```
Expand All @@ -75,9 +75,9 @@ And exit MySQL
```
mysql> exit
```
Stop MySQL and start again
Stop MySQL and start again
```
$ sudo mysqld stop
$ sudo mysqld stop
$ sudo systemctl start mysqld
```
It's also worth creating a MySQL database for us to use at this point. Run the following to create the `kolide` database in MySQL. Note that you will be prompted for the password you created above.
Expand Down
4 changes: 2 additions & 2 deletions docs/infrastructure/fleet-on-ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ $ vagrant ssh
To install Fleet, run the following:

```
$ wget https://dl.kolide.co/bin/fleet_latest.zip
$ unzip fleet_latest.zip 'linux/*' -d fleet
$ wget https://github.com/kolide/fleet/releases/latest/download/fleet.zip
$ unzip fleet.zip 'linux/*' -d fleet
$ sudo cp fleet/linux/fleet /usr/bin/fleet
$ sudo cp fleet/linux/fleetctl /usr/bin/fleetctl
```
Expand Down
6 changes: 3 additions & 3 deletions docs/infrastructure/installing-fleet.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ For more information on using Fleet, refer to the [Configuring The Fleet Binary]
Download the latest raw Fleet binaries:

```
curl -O https://dl.kolide.co/bin/fleet_latest.zip
curl -O https://github.com/kolide/fleet/releases/latest/download/fleet.zip
```

Unzip the binaries for your platform:

```
# For a Darwin compatible binary
unzip fleet_latest.zip 'darwin/*' -d fleet
unzip fleet.zip 'darwin/*' -d fleet
./fleet/darwin/fleet_darwin_amd64 --help
# For a Linux compatible binary
unzip fleet_latest.zip 'linux/*' -d fleet
unzip fleet.zip 'linux/*' -d fleet
./fleet/linux/fleet_linux_amd64 --help
```

Expand Down
20 changes: 18 additions & 2 deletions docs/infrastructure/updating-fleet.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,25 @@ Follow the binary update instructions corresponding to the original installation

#### Raw binaries

Download and unzip the Fleet binaries from [github.com/kolide/fleet/releases](https://github.com/kolide/fleet/releases).
Download the latest raw Fleet binaries:

Replace the existing Fleet binary with the appropriate binary for your platform.
```
curl -O https://github.com/kolide/fleet/releases/latest/download/fleet.zip
```

Unzip the binaries for your platform:

```
# For a Darwin compatible binary
unzip fleet.zip 'darwin/*' -d fleet
./fleet/darwin/fleet --help
# For a Linux compatible binary
unzip fleet.zip 'linux/*' -d fleet
./fleet/linux/fleet --help
```

Replace the existing Fleet binary with the newly unzipped binary.

#### Docker container

Expand Down

0 comments on commit bf6c6b3

Please sign in to comment.