Skip to content

Conversation

@travisb-nexthop
Copy link
Contributor

Pre-submission checklist

  • I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running pip install -r requirements-dev.txt && pre-commit install
  • pre-commit run

Summary

This is the basic Distro Image CI where the Distro Image is built. This simply invokes the fboss-image build command against the sample from_source.json image manifest.

The resulting artifacts are not preserved in this PR.

As part of this it is necessary to remove -it from the docker command
because GHA's don't have a stdin. Further the sample image manifest now
requires all components be present, so add them.

Test Plan

Look at the new workflow results in this PR.

    [Nexthop] Add support for image build

    **Pre-submission checklist**
    - [X] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
    - [X] `pre-commit run`

    Summary:
       Customer request for this functionality. Developed kiwi-ng xml configuration and
       required bash launch scripts to generate the required images.

    Test Plan:
       Successful execution will result in generated images in output directory.
    [Nexthop] Add fboss-image build command stub

    Add a basic skeleton of the fboss-image tool which only supports the
    full-manifest build command. This will invoke the Distro Image build
    and move the resulting ISO to the specified file.

    This invokes the scripts added in facebook#669

    Future PRs will improve this basic skeleton to support the full
    command set from the design.

    Test Plan

    Manually execute the new fboss-image build command against the new
    skeleton image manifest file:

        $ ./fboss-image build ../from_source.json

    then verify that the basic installer image was created as
    fboss-distro-image_usb.iso as defined in the manifest file.
<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please provide enough information so
that others can review your pull request. -->

**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the
files I modified in this PR. You can install the linters by running `pip
install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

<!-- Explain the motivation for making this change and any other context
that you think would help reviewers of your code. What existing problem
does the pull request solve? -->

This is the start of the Distro Image CI where the Distro Image is
built. This simply invokes the `fboss-image build` command against the
sample `from_source.json` image manifest.

The resulting artifacts are not preserved in this PR.

As part of this it is necessary to remove `-it` from the docker command
because GHA's don't have a stdin. Further the sample image manifest now
requires all components be present, so add them.

<!-- Demonstrate the code is solid. Example: The exact commands you ran
and their output, screenshots / videos if the pull request changes the
user interface. How exactly did you verify that your PR solves the issue
you wanted to solve? -->

<!-- If a relevant Github issue exists for this PR, please make sure you
link that issue to this PR -->

Look at the new workflow in this PR.
@meta-cla meta-cla bot added the CLA Signed label Dec 1, 2025
@travisb-nexthop
Copy link
Contributor Author

This is a stacked PR where the required PRs are represented as commits. The real change for this PR is this commit.

@travisb-nexthop travisb-nexthop marked this pull request as ready for review December 2, 2025 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant