Added link to development-infrastructure docs at the end of building-the-code docs to walk contributors to the next step of serving Fleet locally. Added --auth_jwt_key="insecure" flag to fleet serve command in development-infrastructure docs.
1.6 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:
fleet prepare db
Running Fleet using Docker development infrastructure
To start the Fleet server backed by the Docker development infrastructure, run the Fleet binary as follows:
fleet serve --auth_jwt_key="insecure"
By default, Fleet will try to connect to servers running on default ports on localhost. Depending on your browser's settings, you may have to click through a security warning.
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 Fleet binary to specify the path to your config. See fleet --help for more options.