Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

converter: support appending files to bootstrap layer #591

Merged
merged 2 commits into from
Apr 26, 2024

Commits on Apr 25, 2024

  1. converter: support appending files to bootstrap layer

    Support `AppendFiles` option on `converter.Merge` method,
    `AppendFiles` specifies the files that need to be appended
    to the bootstrap layer.
    
    This option allows the user to place some files in the nydus
    bootstrap layer, for example, the user can place metadata
    info generated at build time, e.g. named `image/metadata.json`.
    
    And this usage does not affect the `image/image.boot` bootstrap
    file that is accessed by the nydus runtime.
    
    Signed-off-by: Yan Song <yansong.ys@antgroup.com>
    imeoer committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    52145e6 View commit details
    Browse the repository at this point in the history
  2. optimizer-server: fix clippy errors

    Fix the clippy check errors like:
    
    ```
    warning: field `0` is never read
      --> src/main.rs:79:8
       |
    79 |     IO(io::Error),
       |     -- ^^^^^^^^^
       |     |
       |     field in this variant
       |
       = note: `#[warn(dead_code)]` on by default
    help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
       |
    79 |     IO(()),
       |        ~~
    ```
    
    Signed-off-by: Yan Song <yansong.ys@antgroup.com>
    imeoer committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    b8ffddf View commit details
    Browse the repository at this point in the history