Fixing Building Fleet docs (#22293)

- use correct node version
- update to use "docker compose", which is now integrated with Docker
This commit is contained in:
Victor Lyuboslavsky 2024-09-27 11:41:26 -05:00 committed by GitHub
parent 348d381ad1
commit 710465c1a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,7 @@ sudo npm install -g yarn
# Install nvm to manage node versions (apt very out of date) https://github.com/nvm-sh/nvm#install--update-script
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
# refresh your session before continuing
nvm install v19.7.0
nvm install v20.11.1
```
#### Windows
@ -149,7 +149,7 @@ The following assumes that you already installed [Docker](https://docs.docker.c
To set up a canonical development environment via Docker, run the following from the root of the repository:
```sh
docker-compose up
docker compose up
```
> Note: you can customize the DB Docker image via the environment variables FLEET_MYSQL_IMAGE and FLEET_MYSQL_PLATFORM. For example:
@ -161,12 +161,12 @@ docker-compose up
If you'd like to shut down the virtual infrastructure created by Docker, run the following from the root of the repository:
```sh
docker-compose down
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:
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:
```sh
./build/fleet prepare db --dev