Skip to content

Conversation

@reubeno
Copy link
Member

@reubeno reubeno commented Feb 9, 2026

  • Converts container-base.kiwi to define multiple kiwi profiles
  • Adds new "Container-Build" profile as a dev-oriented build container image that mimics (most of) the contents of the 3.0 OneBranch container image.
  • Imports components required for the new profile.

@reubeno reubeno marked this pull request as ready for review February 10, 2026 16:42
Copilot AI review requested due to automatic review settings February 10, 2026 16:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new development-oriented container image variant by introducing KIWI profiles for container-base and wiring the new profile into the image configuration and schema so it can be selected during builds.

Changes:

  • Introduces Container-Base and Container-Build profiles in container-base.kiwi, with additional dev tooling in the build profile.
  • Updates base/images/images.toml to build container-base via Container-Base and adds a new container-build image using Container-Build.
  • Extends the azldev JSON schema to support per-component %check configuration and an image definition profile field; imports additional components needed by the new build image.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
external/schemas/azldev.schema.json Adds schema support for %check configuration and image build profile.
base/images/images.toml Switches container-base to use a KIWI profile and adds container-build.
base/images/container-base/container-base.kiwi Defines new KIWI profiles and adds dev-tool packages for the build container.
base/comps/components.toml Imports additional components required by the new build-container package set.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +16 to +20
"description": "Required justification for skipping the %check section"
}
},
"additionalProperties": false,
"type": "object"
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skip_reason is described as required, but the schema doesn’t enforce it. Add conditional validation so when skip is true, skip_reason becomes required (and ideally non-empty) to keep validation consistent with the description.

Suggested change
"description": "Required justification for skipping the %check section"
}
},
"additionalProperties": false,
"type": "object"
"description": "Required justification for skipping the %check section",
"minLength": 1
}
},
"additionalProperties": false,
"type": "object",
"allOf": [
{
"if": {
"properties": {
"skip": {
"const": true
}
},
"required": [
"skip"
]
},
"then": {
"required": [
"skip_reason"
]
}
}
]

Copilot uses AI. Check for mistakes.
Comment on lines 397 to +401
"type": "string",
"title": "Path",
"description": "Path to the image definition file"
},
"profile": {
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ImageDefinition still doesn’t declare any required fields. Since type/path are essential for locating/building an image definition, consider adding required: ["type", "path"] (leaving profile optional) so invalid configs are rejected by schema validation.

Copilot uses AI. Check for mistakes.
<package name="azure-cli" />
<package name="cmake" />
<package name="curl" />
<package name="g++" />
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

g++ is unlikely to be a valid RPM package name in Fedora/Azure Linux (the C++ compiler package is typically gcc-c++). If left as-is, KIWI will fail package resolution for the build profile; switch to the correct package name.

Suggested change
<package name="g++" />
<package name="gcc-c++" />

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant