-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into Added-ActorReference-creation-from-the-act…
…or-base-class
- Loading branch information
Showing
10 changed files
with
258 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net6</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\..\src\Dapr.Actors.AspNetCore\Dapr.Actors.AspNetCore.csproj" /> | ||
<ProjectReference Include="..\..\..\src\Dapr.Actors\Dapr.Actors.csproj" /> | ||
<ProjectReference Include="..\IDemoActor\IDemoActor.csproj" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<TargetFramework>net6</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<IsPublishable>true</IsPublishable> | ||
<EnableSdkContainerSupport>true</EnableSdkContainerSupport> | ||
<ContainerRepository>demo-actor</ContainerRepository> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ContainerEnvironmentVariable Include="ASPNETCORE_URLS" Value="http://+:8080" /> | ||
<ContainerPort Include="8080" Type="tcp" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\..\src\Dapr.Actors.AspNetCore\Dapr.Actors.AspNetCore.csproj" /> | ||
<ProjectReference Include="..\..\..\src\Dapr.Actors\Dapr.Actors.csproj" /> | ||
<ProjectReference Include="..\IDemoActor\IDemoActor.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
apiVersion: dapr.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: statestore | ||
spec: | ||
type: state.in-memory | ||
version: v1 | ||
metadata: | ||
- name: actorStateStore | ||
value: "true" | ||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: demoactor | ||
labels: | ||
app: demoactor | ||
spec: | ||
selector: | ||
app: demoactor | ||
ports: | ||
- name: app-port | ||
protocol: TCP | ||
port: 5010 | ||
targetPort: app-port | ||
- name: dapr-http | ||
protocol: TCP | ||
port: 3500 | ||
targetPort: 3500 | ||
type: LoadBalancer | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: demoactor | ||
labels: | ||
app: demoactor | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: demoactor | ||
template: | ||
metadata: | ||
labels: | ||
app: demoactor | ||
annotations: | ||
dapr.io/enabled: "true" | ||
dapr.io/app-id: "demoactor" | ||
dapr.io/app-port: "5010" | ||
dapr.io/enable-api-logging: "true" | ||
dapr.io/sidecar-listen-addresses: "0.0.0.0" | ||
spec: | ||
containers: | ||
- name: demoactor | ||
# image: <your-docker-registry>/demo-actor:latest | ||
image: demo-actor:latest | ||
# if you are using docker desktop, you can use imagePullPolicy: Never to use local image | ||
imagePullPolicy: Never | ||
env: | ||
- name: APP_PORT | ||
value: "5010" | ||
- name: ASPNETCORE_URLS | ||
value: "http://+:5010" | ||
ports: | ||
- name: app-port | ||
containerPort: 5010 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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