dsanderbi commented on issue #4881:
URL: https://github.com/apache/hop/issues/4881#issuecomment-3563857170
Hi @sramazzina,
The current Apache Hop Docker image already provides
`HOP_ENVIRONMENT_CONFIG_FILE_NAME_PATHS`.
This variable allows you to specify a comma separated list of config file
paths.
To avoid picking those files one by one it would be great if you could use
the same functionality as in the GUI (or the command line)
allowing you to simply specify a folder and a regex/wildcard to pick the
files automatically.
Something like this:
```bash
docker run --rm \
-e HOP_PROJECT_NAME=test \
-e HOP_ENVIRONMENT_NAME=test \
-e HOP_LOG_LEVEL=BASIC
-e HOP_ENVIRONMENT_CONFIG_FILE_DIRECTORY="/config" \
-e HOP_ENVIRONMENT_CONFIG_FILE_WILDCARD="*.json" \
-e HOP_ENVIRONMENT_CONFIG_FILE_EXCLUDE="*secret*.json" \
-e HOP_ENVIRONMENT_CONFIG_INCLUDE_SUBFOLDERS=true \
apache/hop:latest
```
**Since these values still need to be passed to `hop-config.sh` anyway,
someone else could handle that in a separate ticket.**
The main question is how this would be represented in `load-and-execute.sh`
in combination with `HOP_ENVIRONMENT_CONFIG_FILE_NAME_PATHS`.
So far, what was your idea for implementing this, in the context of
`hop-config.sh`?
Does the `environment-config-files` parameter still exist, or do you plan to
replaced by the new options like
`environment-config-file-directory`?
Or can be used both parameters, like this:
```bash
$ sh hop-conf.sh \
--environment-create \
--environment test-file \
--environment-project test-file \
--environment-purpose=Testing\
--environment-config-file-directory="<YOUR_ENV_CONFIG_PATH>/config"
--environment-config-file-wildcard="*.json"
--environment-config-files="config_path_1/file1.json,config_path2/sub_path/file2.json"
# already exists
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]