Skip to content

Commit

Permalink
dapr: fix default image
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Lilljedahl <[email protected]>
  • Loading branch information
marcosnils committed Mar 3, 2024
1 parent d4161dc commit 15660af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions dapr/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/dagger.gen.go linguist-generated
/querybuilder/** linguist-generated
/internal/dagger/** linguist-generated
/internal/querybuilder/** linguist-generated
2 changes: 1 addition & 1 deletion dapr/dagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
}
],
"source": ".",
"engineVersion": "v0.9.10"
"engineVersion": "v0.10.0"
}
6 changes: 3 additions & 3 deletions dapr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

type Dapr struct {
image string
Image string
}

func New(
Expand All @@ -15,7 +15,7 @@ func New(
// +default="docker.io/daprio/daprd:1.13.0-rc.7"
image string,
) *Dapr {
return &Dapr{}
return &Dapr{Image: image}
}

func (m *Dapr) Dapr(
Expand Down Expand Up @@ -43,7 +43,7 @@ func (m *Dapr) Dapr(
args = append(args, "-app-channel-address", *appChannelAddress)
}

dapr := dag.Container().From(m.image).
dapr := dag.Container().From(m.Image).
With(func(c *Container) *Container {
if componentsPath != nil {
c = c.WithDirectory("/components", componentsPath)
Expand Down

0 comments on commit 15660af

Please sign in to comment.