From 18612aac4dbf915b6774da8b0a3188ad93b7a1ca Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Mon, 5 Dec 2022 11:17:27 +0200 Subject: [PATCH] Improve configuration examples --- docs/clearml.conf | 74 +++++++++++++++++++++++++---------------------- 1 file changed, 39 insertions(+), 35 deletions(-) diff --git a/docs/clearml.conf b/docs/clearml.conf index 3a36e0c..f211d25 100644 --- a/docs/clearml.conf +++ b/docs/clearml.conf @@ -444,42 +444,46 @@ sdk { # Apply top-level environment section from configuration into os.environ apply_environment: true - # Top-level environment section is in the form of: - # environment { - # key: value - # ... - # } - # and is applied to the OS environment as `key=value` for each key/value pair - # Apply top-level files section from configuration into local file system apply_files: true - # Top-level files section allows auto-generating files at designated paths with a predefined contents - # and target format. Options include: - # contents: the target file's content, typically a string (or any base type int/float/list/dict etc.) - # format: a custom format for the contents. Currently supported value is `base64` to automatically decode a - # base64-encoded contents string, otherwise ignored - # path: the target file's path, may include ~ and inplace env vars - # target_format: format used to encode contents before writing into the target file. Supported values are json, - # yaml, yml and bytes (in which case the file will be written in binary mode). Default is text mode. - # overwrite: overwrite the target file in case it exists. Default is true. - # - # Example: - # files { - # myfile1 { - # contents: "The quick brown fox jumped over the lazy dog" - # path: "/tmp/fox.txt" - # } - # myjsonfile { - # contents: { - # some { - # nested { - # value: [1, 2, 3, 4] - # } - # } - # } - # path: "/tmp/test.json" - # target_format: json - # } - # } } +# Environment section (top-level) is applied to the OS environment as `key=value` for each key/value pair +# * enable/disable with `agent.apply_environment` OR `sdk.apply_environment` +# Example: +# +# environment { +# key_a: value_a +# key_b: value_b +# } + +# Files section (top-level) allows auto-generating files at designated paths with +# predefined content and target format. +# * enable/disable with `agent.apply_files` OR `sdk.apply_files` +# Files content options include: +# contents: the target file's content, typically a string (or any base type int/float/list/dict etc.) +# format: a custom format for the contents. Currently supported value is `base64` to automatically decode a +# base64-encoded contents string, otherwise ignored +# path: the target file's path, may include ~ and inplace env vars +# target_format: format used to encode contents before writing into the target file. Supported values are json, +# yaml, yml and bytes (in which case the file will be written in binary mode). Default is text mode. +# overwrite: overwrite the target file in case it exists. Default is true. +# +# Example: +# files { +# myfile1 { +# contents: "The quick brown fox jumped over the lazy dog" +# path: "/tmp/fox.txt" +# } +# myjsonfile { +# contents: { +# some { +# nested { +# value: [1, 2, 3, 4] +# } +# } +# } +# path: "/tmp/test.json" +# target_format: json +# } +# }