fleet/docs/development/development-infrastructure.md
Mike Arpaia a4d9fe8dfd Documentation Structure (#1101)
Initial structure and content for the Kolide documentation.
2017-01-25 14:51:00 -07:00

1.5 KiB

Development Infrastructure

Starting the local development environment

To set up a canonical development environment via docker, run the following from the root of the repository:

docker-compose up

This requires that you have docker installed. At this point in time, automatic configuration tools are not included with this project.

Stopping the local development environment

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

Setting up the database tables

Once you docker-compose up and are running the databases, you can build the code and run the following command to create the database tables:

kolide prepare db

Running Kolide using Docker development infrastructure

To start the Kolide server backed by the Docker development infrasturcture, run the Kolide binary as follows:

kolide serve

By default, Kolide will try to connect to servers running on default ports on localhost.

If you're using Docker via Docker Toolbox, you may have to modify the default values use the output of docker-machine ip instead of localhost. There is an example configuration file included in this repository to make this process easier for you. Use the --config flag of the Kolide binary to specify the path to your config. See kolide --help for more options.