Add all known outstanding yaml config options as of process-compose v1.7.3#98
Conversation
…1.7.3
- per-process `description` that displays in the UI
- global and per-process `log_configuration`, including `rotation`
- global and per-process `vars` for supporting Go template expansion on configs
- `env_cmds` allows running host commands to populate env variables
- `ordered_shutdown` controls the order of process shutdown
- `is_strict` does additional checking on configuration files at startup
- `disable_env_expansion` to not propagate .env variables to processes
- `http_get.{headers,status_code}` and `working_dir` for probe commands
- `replicas` to run multiple copies of processes
- `entrypoint` alternate to `command`
- `is_elevated` for sudo/runas priviledged processes
- `extends,is_disabled,is_dotenv_disabled` for multi-file fragments and overrides.
- `launch_timeout_seconds` for daemon processes
This comment was marked as off-topic.
This comment was marked as off-topic.
|
@shivaraj-bh Does this look good to be merged? |
adrian-gierakowski
left a comment
There was a problem hiding this comment.
should we also add all env vars from here to here:
process-compose-flake/nix/process-compose/cli.nix
Lines 18 to 27 in e968a94
adrian-gierakowski
left a comment
There was a problem hiding this comment.
there are also some missing flags here, like disable-dotenv
|
I want to use the options defined in this PR. Aside from 3 comments from @adrian-gierakowski and a small nit (about |
|
@daroot Would you like to address these, so we can merge your PR? |
- Make disable-dotenv default to true, per @adrian-gierakowski request. - Remove unnecessary args in vars.nix
|
I've updated the missing env vars and addressing the args nit. I'm less sure about adding all the individual cli options separately. Given you can do |
@daroot It might seems like a rather strange use-case, but: I often use these settings to enforce certain cli options on the users of the app. For example, |
These are not very crucial (as one can still use CLI args). Can be added later if needed |
|
Did the |
process-compose-flake/nix/process-compose/settings/process.nix Lines 275 to 278 in 3667881 |
Was that functionality [rather than the option that declares it] introduced in a different PR? Or is that overriding handled by code outside of this codebase ? |
This behaviour is defined in https://github.com/F1bonacc1/process-compose/blob/0d943455017c8eb9a9dfd2c192456df1667a17c4/src/app/process.go#L273-L279. (This should probably be mentioned in PC docs) |
|
Thanks @shivaraj-bh I didn't realize it was passed through verbatim to PC. In that case I think there's a bug somewhere, issue opening in #110. |
descriptionthat displays in the UIlog_configuration, includingrotationvarsfor supporting Go template expansion on configsenv_cmdsallows running host commands to populate env variablesordered_shutdowncontrols the order of process shutdownis_strictdoes additional checking on configuration files at startupdisable_env_expansionto not propagate .env variables to processeshttp_get.{headers,status_code}andworking_dirfor probe commandsreplicasto run multiple copies of processesentrypointalternate tocommandis_elevatedfor sudo/runas priviledged processesextends,is_disabled,is_dotenv_disabledfor multi-file fragments and overrides.launch_timeout_secondsfor daemon processes