Skip to content

Commit

Permalink
doc: harvest configuration file from other location with docker run g…
Browse files Browse the repository at this point in the history
…enerate (#2377)

* doc: harvest configuration file from other location with docker run generate
  • Loading branch information
rahulguptajss authored Sep 27, 2023
1 parent 6fb987d commit b025ed6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/install/containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,22 @@ docker run --rm \
--output harvest-compose.yml
```

By default, the above command uses the harvest configuration file(`harvest.yml`) located in the current directory. If you want to use a harvest config from a different location.
??? question "What if my harvest configuration file is somewhere else or not named harvest.yml"
Use the following docker run command, updating the `HYML` variable with the absolute path to your `harvest.yml`.

```sh
HYML="/opt/custom_harvest.yml" \
docker run --rm \
--entrypoint "bin/harvest" \
--volume "$(pwd):/opt/temp" \
--volume "${HYML}:${HYML}" \
ghcr.io/netapp/harvest:latest \
generate docker full \
--output harvest-compose.yml \
--config "${HYML}"
```

`generate docker full` does two things:

1. Creates a Docker compose file with a container for each Harvest poller defined in your `harvest.yml`
Expand Down

0 comments on commit b025ed6

Please sign in to comment.