Add containerImages build-and-push to test apps - #227
Draft
willdavsmith wants to merge 1 commit into
Draft
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
willdavsmith
force-pushed
the
willdavsmith-containerimages-test-apps
branch
from
July 9, 2026 22:02
9fe67c5 to
2c419c6
Compare
willdavsmith
force-pushed
the
willdavsmith-containerimages-test-apps
branch
from
July 9, 2026 22:24
2c419c6 to
e85729e
Compare
Add a Radius.Compute/containerImages resource to each test app that pulls the ghcr.io/radius-project/samples/demo image, building that same demo app from source (radius-project/samples //samples/demo) in-cluster via the containerImages recipe and pushing it to the configured registry. This mirrors the decoupled build-and-push check proven in resource-types-verification: the demo container keeps running the published image, so the app's data-path verification never depends on the cluster pulling the freshly built image - reaching a successful deploy proves the build-and-push path works. The type resolves through the existing 'extension radius', which already includes Radius.Compute/containerImages, so no extra extension import is needed. Running these tests now requires the containerImages recipe plus an in-cluster BuildKit sidecar and a push registry, which the standard kind-based validation does not yet configure; enabling that is a follow-up. No CI, workflow, or recipe changes are included. Signed-off-by: willdavsmith <willdavsmith@gmail.com>
willdavsmith
force-pushed
the
willdavsmith-containerimages-test-apps
branch
from
July 9, 2026 22:28
e85729e to
eaf174c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
Radius.Compute/containerImagesresource to the 11test/app.bicepfiles that consumeghcr.io/radius-project/samples/demo:latest. Each new resource builds that same demo app from source (radius-project/samples//samples/demo, pinned to an immutable commit) in-cluster via the containerImages recipe and pushes it to the configured registry — exercising the build-and-push path end to end.This mirrors the decoupled build-and-push check proven in resource-types-verification: the demo container keeps running the published image, so the app's data-path verification never depends on the cluster being able to pull the freshly built image. Reaching a successful deploy proves the build-and-push path works.
What changed
For each of the 11 apps (
AI/{models,search},Data/{mongoDatabases,mySqlDatabases,neo4jDatabases,postgreSqlDatabases,redisCaches,sqlServerDatabases},Messaging/{kafka,rabbitMQ},Storage/objectStorage):resource demoImage 'Radius.Compute/containerImages@2025-08-01-preview'that buildsgit::https://github.com/radius-project/samples.git//samples/demo?ref=190d9c4c…,tag: 'demo-e2e',platforms: ['linux/amd64'].image:is unchanged (ghcr.io/radius-project/samples/demo:latest) — decoupled.CI prerequisite (follow-up)
Radius.Compute/containerImagesrequires an in-cluster BuildKit sidecar (dynamicrp.buildkit.enabled=true) plus a push registry + credentials. The standard kind-basedvalidate-resource-typesworkflow does not yet configure these, so it will fail to deploy these apps until that plumbing is added (enable BuildKit increate-cluster.sh+ provide a push registry/secret and wire it to the containerImages recipe). That CI enablement is a follow-up and is intentionally not part of this PR.Notes
extension radius(which already includesRadius.Compute/containerImages) — no extra extension import is needed.recipepack/azure/aks-recipepack.bicepalready declares theRadius.Compute/containerImagesrecipe (withregistry/registrySecretNameparams), so no recipe-pack change is required.Validation
Compiled the apps with
rad bicep(0.42.1): thecontainerImagesresource is emitted and fully typed viaextension radius.