mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Fleet is the lightweight, programmable telemetry platform for servers and workstations. Get comprehensive, customizable data from all your devices and operating systems — without the downtime risk.
6fa2413363
* Add request logging. * Catch/log panic in request handlers. * Add `mustGetDB` method that gets a DB connection or panics. This can simplify boilerplate in handlers. * Consolidate `file` and `line` in logged fields to `location`. * Set default log level to `WarnLevel`. * Log a warning when Kolide is started with the example config. * Turn on DB logging in debug mode. |
||
---|---|---|
tools | ||
.gitignore | ||
auth_test.go | ||
auth.go | ||
config.go | ||
docker-compose.yml | ||
kolide.go | ||
models.go | ||
osquery.go | ||
README.md | ||
server.go | ||
sessions_test.go | ||
sessions.go | ||
story_test.go | ||
users_test.go | ||
users.go |
Kolide
Building
To build the code, run the following from the root of the repository:
go build
Testing
To run the application's tests, run the following from the root of the repository:
go test
Development Environment
To set up the development environment via docker, run the following frmo the root of the repository:
docker-compose up
Obviouly this requires that you have docker installed. At this point in time, automatic configuration tools are not included with this project.
If you'd like to shut down the virtual infrastructure created by docker, run the following from the root of the repository:
docker-compose down
Once you docker-compose up
and are running the databases, build the code and run the following command to create the database tables:
kolide prepare-db