Skip to content

Commit 7e7445a

Browse files
authored
Clean up worker service (#272)
* Remove Java project from worker * Update .NET Core and remove old dotnet codebase from worker service * Remove Windows-based Compose files and info from README * Update .NET to 7.0
1 parent eaa19a7 commit 7e7445a

34 files changed

+48
-948
lines changed

README.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Download [Docker Desktop](https://www.docker.com/products/docker-desktop) for Ma
1111

1212
## Linux Containers
1313

14-
The Linux stack uses Python, Node.js, .NET Core (or optionally Java), with Redis for messaging and Postgres for storage.
14+
The Linux stack uses Python, Node.js, .NET Core, with Redis for messaging and Postgres for storage.
1515

1616
> If you're using [Docker Desktop on Windows](https://store.docker.com/editions/community/docker-ce-desktop-windows), you can run the Linux version by [switching to Linux containers](https://docs.docker.com/docker-for-windows/#switch-between-windows-and-linux-containers), or run the Windows containers version.
1717
@@ -30,26 +30,6 @@ Once you have your swarm, in this directory run:
3030
docker stack deploy --compose-file docker-stack.yml vote
3131
```
3232

33-
## Windows Containers
34-
35-
An alternative version of the app uses Windows containers based on Nano Server. This stack runs on .NET Core, using [NATS](https://nats.io) for messaging and [TiDB](https://github.com/pingcap/tidb) for storage.
36-
37-
You can build from source using:
38-
39-
```
40-
docker compose -f docker-compose-windows.yml build
41-
```
42-
43-
Then run the app using:
44-
45-
```
46-
docker compose -f docker-compose-windows.yml up -d
47-
```
48-
49-
> Or in a Windows swarm, run `docker stack deploy -c docker-stack-windows.yml vote`
50-
51-
The app will be running at [http://localhost:5000](http://localhost:5000), and the results will be at [http://localhost:5001](http://localhost:5001).
52-
5333

5434
Run the app in Kubernetes
5535
-------------------------
@@ -85,7 +65,7 @@ Architecture
8565

8666
* A front-end web app in [Python](/vote) or [ASP.NET Core](/vote/dotnet) which lets you vote between two options
8767
* A [Redis](https://hub.docker.com/_/redis/) or [NATS](https://hub.docker.com/_/nats/) queue which collects new votes
88-
* A [.NET Core](/worker/src/Worker), [Java](/worker/src/main) or [.NET Core 2.1](/worker/dotnet) worker which consumes votes and stores them in…
68+
* A [.NET Core](/worker/) worker which consumes votes and stores them in…
8969
* A [Postgres](https://hub.docker.com/_/postgres/) or [TiDB](https://hub.docker.com/r/dockersamples/tidb/tags/) database backed by a Docker volume
9070
* A [Node.js](/result) or [ASP.NET Core SignalR](/result/dotnet) webapp which shows the results of the voting in real time
9171

docker-compose-javaworker.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

docker-compose-windows-1809.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

docker-compose-windows.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

docker-stack-windows-1809.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

docker-stack-windows.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

worker/.classpath

Lines changed: 0 additions & 44 deletions
This file was deleted.

worker/.project

Lines changed: 0 additions & 23 deletions
This file was deleted.

worker/.settings/org.eclipse.jdt.apt.core.prefs

Lines changed: 0 additions & 2 deletions
This file was deleted.

worker/.settings/org.eclipse.jdt.core.prefs

Lines changed: 0 additions & 7 deletions
This file was deleted.

worker/.settings/org.eclipse.m2e.core.prefs

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)