Skip to content

Commit

Permalink
doc: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss committed Sep 26, 2023
1 parent 6052895 commit c63ca23
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/install/containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,20 @@ docker run --rm \
--output harvest-compose.yml
```

By default, the above command uses the harvest configuration file located in the current directory, denoted as `$(pwd)/harvest.yml`. However, you may want to use a harvest config from a different location.
??? question "What if my harvest configuration file is in a different path"
Suppose the path to your harvest configuration file is stored in a variable named `HARVEST_CONFIG_PATH`
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 to point to your `harvest.yml`

```sh
export HARVEST_CONFIG_PATH="/opt/custom_harvest.yml"
HYML="/opt/custom_harvest.yml" \
docker run --rm \
--entrypoint "bin/harvest" \
--volume "$(pwd):/opt/temp" \
--volume "${HARVEST_CONFIG_PATH}:${HARVEST_CONFIG_PATH}" \
ghcr.io/netapp/harvest:latest \
generate docker full \
--output harvest-compose.yml \
--config ${HARVEST_CONFIG_PATH}
--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:
Expand Down

0 comments on commit c63ca23

Please sign in to comment.