Skip to content

Commit e85729e

Browse files
committed
Add containerImages build-and-push to test apps
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>
1 parent cf57799 commit e85729e

11 files changed

Lines changed: 165 additions & 0 deletions

File tree

AI/models/test/app.bicep

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ resource model 'Radius.AI/models@2025-08-01-preview' = {
1919
}
2020
}
2121

22+
resource demoImage 'Radius.Compute/containerImages@2025-08-01-preview' = {
23+
name: 'models-demo-image'
24+
properties: {
25+
environment: environment
26+
application: app.id
27+
tag: 'demo-e2e'
28+
build: {
29+
source: 'git::https://github.com/radius-project/samples.git//samples/demo?ref=190d9c4c84278980d9fae402330bd5ead76b31a5'
30+
platforms: [
31+
'linux/amd64'
32+
]
33+
}
34+
}
35+
}
36+
2237
resource democontainer 'Radius.Compute/containers@2025-08-01-preview' = {
2338
name: 'democontainer'
2439
properties: {

AI/search/test/app.bicep

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,21 @@ resource searchService 'Radius.AI/search@2025-08-01-preview' = {
1818
}
1919
}
2020

21+
resource demoImage 'Radius.Compute/containerImages@2025-08-01-preview' = {
22+
name: 'search-demo-image'
23+
properties: {
24+
environment: environment
25+
application: app.id
26+
tag: 'demo-e2e'
27+
build: {
28+
source: 'git::https://github.com/radius-project/samples.git//samples/demo?ref=190d9c4c84278980d9fae402330bd5ead76b31a5'
29+
platforms: [
30+
'linux/amd64'
31+
]
32+
}
33+
}
34+
}
35+
2136
resource democontainer 'Radius.Compute/containers@2025-08-01-preview' = {
2237
name: 'democontainer'
2338
properties: {

Data/mongoDatabases/test/app.bicep

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@ resource mongo 'Radius.Data/mongoDatabases@2025-08-01-preview' = {
2121
}
2222
}
2323

24+
resource demoImage 'Radius.Compute/containerImages@2025-08-01-preview' = {
25+
name: 'mongodb-demo-image'
26+
properties: {
27+
environment: environment
28+
application: app.id
29+
tag: 'demo-e2e'
30+
build: {
31+
source: 'git::https://github.com/radius-project/samples.git//samples/demo?ref=190d9c4c84278980d9fae402330bd5ead76b31a5'
32+
platforms: [
33+
'linux/amd64'
34+
]
35+
}
36+
}
37+
}
38+
2439
resource democontainer 'Radius.Compute/containers@2025-08-01-preview' = {
2540
name: 'democontainer'
2641
properties: {

Data/mySqlDatabases/test/app.bicep

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,21 @@ resource mysql 'Radius.Data/mySqlDatabases@2025-08-01-preview' = {
2626
}
2727
}
2828

29+
resource demoImage 'Radius.Compute/containerImages@2025-08-01-preview' = {
30+
name: 'mysql-demo-image'
31+
properties: {
32+
environment: environment
33+
application: app.id
34+
tag: 'demo-e2e'
35+
build: {
36+
source: 'git::https://github.com/radius-project/samples.git//samples/demo?ref=190d9c4c84278980d9fae402330bd5ead76b31a5'
37+
platforms: [
38+
'linux/amd64'
39+
]
40+
}
41+
}
42+
}
43+
2944
resource democontainer 'Radius.Compute/containers@2025-08-01-preview' = {
3045
name: 'democontainer'
3146
properties: {

Data/neo4jDatabases/test/app.bicep

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,21 @@ resource myapp 'Radius.Core/applications@2025-08-01-preview' = {
1414
}
1515
}
1616

17+
resource demoImage 'Radius.Compute/containerImages@2025-08-01-preview' = {
18+
name: 'neo4j-demo-image'
19+
properties: {
20+
environment: environment
21+
application: myapp.id
22+
tag: 'demo-e2e'
23+
build: {
24+
source: 'git::https://github.com/radius-project/samples.git//samples/demo?ref=190d9c4c84278980d9fae402330bd5ead76b31a5'
25+
platforms: [
26+
'linux/amd64'
27+
]
28+
}
29+
}
30+
}
31+
1732
resource mycontainer 'Radius.Compute/containers@2025-08-01-preview' = {
1833
name: 'mycontainer'
1934
properties: {

Data/postgreSqlDatabases/test/app.bicep

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,21 @@ resource postgresql 'Radius.Data/postgreSqlDatabases@2025-08-01-preview' = {
2626
}
2727
}
2828

29+
resource demoImage 'Radius.Compute/containerImages@2025-08-01-preview' = {
30+
name: 'postgresql-demo-image'
31+
properties: {
32+
environment: environment
33+
application: app.id
34+
tag: 'demo-e2e'
35+
build: {
36+
source: 'git::https://github.com/radius-project/samples.git//samples/demo?ref=190d9c4c84278980d9fae402330bd5ead76b31a5'
37+
platforms: [
38+
'linux/amd64'
39+
]
40+
}
41+
}
42+
}
43+
2944
resource democontainer 'Radius.Compute/containers@2025-08-01-preview' = {
3045
name: 'democontainer'
3146
properties: {

Data/redisCaches/test/app.bicep

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ resource redis 'Radius.Data/redisCaches@2025-08-01-preview' = {
1919
}
2020
}
2121

22+
resource demoImage 'Radius.Compute/containerImages@2025-08-01-preview' = {
23+
name: 'redis-demo-image'
24+
properties: {
25+
environment: environment
26+
application: app.id
27+
tag: 'demo-e2e'
28+
build: {
29+
source: 'git::https://github.com/radius-project/samples.git//samples/demo?ref=190d9c4c84278980d9fae402330bd5ead76b31a5'
30+
platforms: [
31+
'linux/amd64'
32+
]
33+
}
34+
}
35+
}
36+
2237
resource democontainer 'Radius.Compute/containers@2025-08-01-preview' = {
2338
name: 'democontainer'
2439
properties: {

Data/sqlServerDatabases/test/app.bicep

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ resource sqlserver 'Radius.Data/sqlServerDatabases@2025-08-01-preview' = {
2929
}
3030
}
3131

32+
resource demoImage 'Radius.Compute/containerImages@2025-08-01-preview' = {
33+
name: 'sqlserver-demo-image'
34+
properties: {
35+
environment: environment
36+
application: app.id
37+
tag: 'demo-e2e'
38+
build: {
39+
source: 'git::https://github.com/radius-project/samples.git//samples/demo?ref=190d9c4c84278980d9fae402330bd5ead76b31a5'
40+
platforms: [
41+
'linux/amd64'
42+
]
43+
}
44+
}
45+
}
46+
3247
resource democontainer 'Radius.Compute/containers@2025-08-01-preview' = {
3348
name: 'democontainer'
3449
properties: {

Messaging/kafka/test/app.bicep

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ resource kafkaBroker 'Radius.Messaging/kafka@2025-08-01-preview' = {
1919
}
2020
}
2121

22+
resource demoImage 'Radius.Compute/containerImages@2025-08-01-preview' = {
23+
name: 'kafka-demo-image'
24+
properties: {
25+
environment: environment
26+
application: app.id
27+
tag: 'demo-e2e'
28+
build: {
29+
source: 'git::https://github.com/radius-project/samples.git//samples/demo?ref=190d9c4c84278980d9fae402330bd5ead76b31a5'
30+
platforms: [
31+
'linux/amd64'
32+
]
33+
}
34+
}
35+
}
36+
2237
resource democontainer 'Radius.Compute/containers@2025-08-01-preview' = {
2338
name: 'democontainer'
2439
properties: {

Messaging/rabbitMQ/test/app.bicep

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ resource queue 'Radius.Messaging/rabbitMQ@2025-08-01-preview' = {
1919
}
2020
}
2121

22+
resource demoImage 'Radius.Compute/containerImages@2025-08-01-preview' = {
23+
name: 'rabbitmq-demo-image'
24+
properties: {
25+
environment: environment
26+
application: app.id
27+
tag: 'demo-e2e'
28+
build: {
29+
source: 'git::https://github.com/radius-project/samples.git//samples/demo?ref=190d9c4c84278980d9fae402330bd5ead76b31a5'
30+
platforms: [
31+
'linux/amd64'
32+
]
33+
}
34+
}
35+
}
36+
2237
resource democontainer 'Radius.Compute/containers@2025-08-01-preview' = {
2338
name: 'democontainer'
2439
properties: {

0 commit comments

Comments
 (0)