Skip to content

v5.1.0

Latest

Choose a tag to compare

@DtxdF DtxdF released this 13 Jul 05:37

Changes between 5.0.0 and 5.1.0

  • Make the entry point and its arguments persistent:
    • Although a container is primarily configured using environment variables, there may be cases where defining arguments modifies the behavior of the entry point, so it might be useful to preserve both a custom entry point and its arguments. For example, in the PostgreSQL OCI image, arguments can specify parameters for the postgres daemon, and the current behavior will only take them into account at the time of executing oci run, but not after (re)starting the jail (i.e., at system startup).

      To implement this, the set-args, set-entrypoint, del-args, and del-entrypoint subcommands have been added, and logic has been implemented in the -P flag of oci run to call these subcommands. oci exec will now prioritize both the custom entry point and the custom arguments over those defined by the OCI image.

      And while here: create a common function that the del-* subcommands can call to avoid repetitive code and simplify the process. Also, don't display the PID when there isn’t one in oci exec, which happens with processes that spawn and die quickly.

  • Redirect stdout to stderr:
    • Some child processes run without redirecting stdout to stderr, so stdout is displayed on the parent process. This was done primarily so that oci run could redirect stdout to a file or another destination (such as a pipe) without corrupting the file.

Full Changelog: v5.0.0...v5.1.0