github.com/abayer/test-infra@v0.0.5/prow/cmd/entrypoint/README.md (about)

     1  # `entrypoint`
     2  
     3  `entrypoint` wraps a process and records its output to `stdout` and `stderr` as well as its exit
     4  code, recording both to disk. The utility will exit with a non-zero exit code if the wrapped
     5  process fails or if the utility has a fatal error.
     6  
     7  This utility is intended to be used with [`sidecar`](./../sidecar/README.md), which will
     8  watch the files written by this utility and report on the status of the wrapped process.
     9  
    10  `entrypoint` can be configured by either passing in flags or by specifying a full set of options
    11  as JSON in the `$ENTRYPOINT_OPTIONS` environment variable, which has the form:
    12  
    13  ```json
    14  {
    15      "args": [
    16          "/bin/ls",
    17          "-la"
    18      ],
    19      "timeout": 7200000000000,
    20      "grace_period": 15000000000,
    21      "process_log": "/logs/process-log.txt",
    22      "marker_file": "/logs/marker-file.txt"
    23  }
    24  ```
    25  
    26  Note: the `"timeout"` and `"grace_period"` fields hold the duration in nanoseconds.