Skip to content

Commit

Permalink
doc: recommend docker compose instead of docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrinds committed Jul 9, 2024
1 parent dec5f9b commit 38cbbb0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ endif
@if [ "$(ci)" != "harvest.yml" ]; then cp $(ci) harvest.yml; else echo "Source and destination files are the same, skipping copy"; fi
@./bin/harvest generate docker full --port --output harvest-compose.yml
@docker build -f container/onePollerPerContainer/Dockerfile -t ghcr.io/netapp/harvest:latest . --no-cache --build-arg GO_VERSION=${GO_VERSION} --build-arg VERSION=${VERSION}
@docker-compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans
@docker compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans
@cp harvest.yml integration/test/
VERSION=${VERSION} INSTALL_DOCKER=1 ./integration/test/test.sh
VERSION=${VERSION} REGRESSION=1 ./integration/test/test.sh
Expand Down
4 changes: 2 additions & 2 deletions cmd/tools/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,12 @@ func generateDocker(kind int) {
if kind == harvest {
_, _ = fmt.Fprintf(os.Stderr,
"Start containers with:\n"+
color.Colorize("docker-compose -f "+opts.outputPath+" up -d --remove-orphans\n", color.Green))
color.Colorize("docker compose -f "+opts.outputPath+" up -d --remove-orphans\n", color.Green))
}
if kind == full {
_, _ = fmt.Fprintf(os.Stderr,
"Start containers with:\n"+
color.Colorize("docker-compose -f prom-stack.yml -f "+opts.outputPath+" up -d --remove-orphans\n", color.Green))
color.Colorize("docker compose -f prom-stack.yml -f "+opts.outputPath+" up -d --remove-orphans\n", color.Green))
}
}

Expand Down
10 changes: 5 additions & 5 deletions docs/install/containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ By default, the above command uses the harvest configuration file(`harvest.yml`)
Bring everything up :rocket:

```
docker-compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans
docker compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans
```

### Note on Docker Logging Configuration
Expand Down Expand Up @@ -158,7 +158,7 @@ you can start your Docker containers with the updated configuration
that includes the 1-year data retention period by executing the command below:

```sh
docker-compose -f prom-stack-prod.yml -f harvest-compose.yml up -d --remove-orphans
docker compose -f prom-stack-prod.yml -f harvest-compose.yml up -d --remove-orphans
```

### Grafana
Expand All @@ -181,13 +181,13 @@ password: admin
3. Run [docker compose up](#start-everything), for example,
```bash
docker-compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans
docker compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans
```

### Stop all containers

```
docker-compose -f prom-stack.yml -f harvest-compose.yml down
docker compose -f prom-stack.yml -f harvest-compose.yml down
```

If you encounter the following error message while attempting to stop your Docker containers using `docker-compose down`
Expand Down Expand Up @@ -250,7 +250,7 @@ Make sure you don't skip this step. It is essential as it updates local copies o
4. Restart your containers using the following:

```
docker-compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans
docker compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans
```

## Building Harvest Docker Image
Expand Down
8 changes: 4 additions & 4 deletions docs/install/harvest-containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ docker run --rm \
Bring everything up :rocket:

```
docker-compose -f harvest-compose.yml up -d --remove-orphans
docker compose -f harvest-compose.yml up -d --remove-orphans
```


Expand All @@ -68,13 +68,13 @@ docker-compose -f harvest-compose.yml up -d --remove-orphans
3. Run [docker compose up](#start-everything), for example,

```bash
docker-compose -f harvest-compose.yml up -d --remove-orphans
docker compose -f harvest-compose.yml up -d --remove-orphans
```

### Stop all containers

```
docker-compose-f harvest-compose.yml down
docker compose-f harvest-compose.yml down
```

### Upgrade Harvest
Expand Down Expand Up @@ -112,5 +112,5 @@ To upgrade Harvest:
4. Restart your containers using the following:

```
docker-compose -f harvest-compose.yml up -d --remove-orphans
docker compose -f harvest-compose.yml up -d --remove-orphans
```
2 changes: 1 addition & 1 deletion integration/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ pipeline {
ghcr.io/netapp/harvest \
generate docker full \
--output harvest-compose.yml
docker-compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans
docker compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans
sleep 1m
INSTALL_DOCKER=1 bash $WORKSPACE/harvest/integration/test/test.sh
'''
Expand Down

0 comments on commit 38cbbb0

Please sign in to comment.