forked from akkadotnet/akka.net
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ClusterSharding.Node example to use shared SQLite store (akkad…
…otnet#7494) Co-authored-by: Aaron Stannard <[email protected]>
- Loading branch information
1 parent
1f5688d
commit 8ea9d3b
Showing
4 changed files
with
24 additions
and
20 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/examples/Cluster/ClusterSharding/ClusterSharding.Node/Dockerfile
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,3 +1,3 @@ | ||
FROM mcr.microsoft.com/dotnet/core/runtime:3.1 | ||
COPY ["./bin/Release/netcoreapp3.1/publish", "."] | ||
FROM mcr.microsoft.com/dotnet/runtime:8.0 | ||
COPY ["./bin/Release/net8.0/publish", "."] | ||
ENTRYPOINT ["dotnet", "ClusterSharding.Node.dll"] |
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
32 changes: 18 additions & 14 deletions
32
src/examples/Cluster/ClusterSharding/ClusterSharding.Node/docker-compose.yaml
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,32 +1,36 @@ | ||
version: '3.7' | ||
|
||
services: | ||
node-1: | ||
image: cluster-sharding:latest | ||
network_mode: host | ||
ports: | ||
- '6055:6055' | ||
- '6055' | ||
environment: | ||
CLUSTER_IP: "localhost" | ||
CLUSTER_IP: "node-1" | ||
CLUSTER_PORT: 6055 | ||
CLUSTER_SEEDS: "akka.tcp://sharded-cluster-system@localhost:6055" | ||
CLUSTER_SEEDS: "akka.tcp://sharded-cluster-system@node-1:6055" | ||
volumes: | ||
- data:/data:rw | ||
|
||
node-2: | ||
image: cluster-sharding:latest | ||
network_mode: host | ||
ports: | ||
- '6056:6056' | ||
- '6056' | ||
environment: | ||
CLUSTER_IP: "localhost" | ||
CLUSTER_IP: "node-2" | ||
CLUSTER_PORT: 6056 | ||
CLUSTER_SEEDS: "akka.tcp://sharded-cluster-system@localhost:6055" | ||
CLUSTER_SEEDS: "akka.tcp://sharded-cluster-system@node-1:6055" | ||
volumes: | ||
- data:/data:rw | ||
|
||
node-3: | ||
image: cluster-sharding:latest | ||
network_mode: host | ||
ports: | ||
- '6057:6057' | ||
- '6057' | ||
environment: | ||
CLUSTER_IP: "localhost" | ||
CLUSTER_IP: "node-3" | ||
CLUSTER_PORT: 6057 | ||
CLUSTER_SEEDS: "akka.tcp://sharded-cluster-system@localhost:6055" | ||
CLUSTER_SEEDS: "akka.tcp://sharded-cluster-system@node-1:6055" | ||
volumes: | ||
- data:/data:rw | ||
|
||
volumes: | ||
data: ~ |
2 changes: 1 addition & 1 deletion
2
src/examples/Cluster/ClusterSharding/ClusterSharding.Node/start.cmd
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,3 +1,3 @@ | ||
dotnet publish -c Release | ||
docker build -t cluster-sharding:latest . | ||
docker-compose up | ||
docker compose up |