Skip to content

Commit

Permalink
dapr tutorial port and routes fixes (radius-project#748)
Browse files Browse the repository at this point in the history
Signed-off-by: Will Tsai <[email protected]>
  • Loading branch information
willtsai committed Dec 13, 2023
1 parent 830f0d8 commit 206005f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 44 deletions.
24 changes: 2 additions & 22 deletions samples/dapr/dapr-azure.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
image: 'ghcr.io/radius-project/samples/dapr-frontend:latest'
env: {
CONNECTION_BACKEND_APPID: backend.name
ASPNETCORE_URLS: 'http://*:8080'
}
ports: {
ui: {
containerPort: 80
provides: frontendRoute.id
containerPort: 8080
}
}
}
Expand All @@ -62,26 +62,6 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
}
}

resource frontendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = {
name: 'frontend-route'
properties: {
application: app.id
}
}

resource gateway 'Applications.Core/gateways@2023-10-01-preview' = {
name: 'gateway'
properties: {
application: app.id
routes: [
{
path: '/'
destination: frontendRoute.id
}
]
}
}

resource account 'Microsoft.Storage/storageAccounts@2019-06-01' = {
name: 'dapr${uniqueString(resourceGroup().id)}'
location: location
Expand Down
24 changes: 2 additions & 22 deletions samples/dapr/dapr.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
image: 'ghcr.io/radius-project/samples/dapr-frontend:latest'
env: {
CONNECTION_BACKEND_APPID: backend.name
ASPNETCORE_URLS: 'http://*:8080'
}
ports: {
ui: {
containerPort: 80
provides: frontendRoute.id
containerPort: 8080
}
}
}
Expand All @@ -65,26 +65,6 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
}
}

resource frontendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = {
name: 'frontend-route'
properties: {
application: app.id
}
}

resource gateway 'Applications.Core/gateways@2023-10-01-preview' = {
name: 'gateway'
properties: {
application: app.id
routes: [
{
path: '/'
destination: frontendRoute.id
}
]
}
}

resource stateStore 'Applications.Dapr/stateStores@2023-10-01-preview' = {
name: 'statestore'
properties: {
Expand Down

0 comments on commit 206005f

Please sign in to comment.