Skip to content

Commit 7049af0

Browse files
committed
Merge remote-tracking branch 'origin/main' into 82-javalin-sample
2 parents 6098447 + 390780c commit 7049af0

File tree

99 files changed

+492
-163
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+492
-163
lines changed

.github/workflows/check-sample.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ jobs:
2626
echo "@@ MODIFIED @@"
2727
cat modified.txt
2828
29-
- name: Validate Compose Files with Defang CLI
30-
run: |
31-
. <(curl -Ls https://s.defang.io/install)
32-
cat modified.txt | xargs -n1 defang compose config -C > /dev/null
29+
# TODO: Uncomment the following lines to validate the Compose files
30+
# once we figure out how to prevent it from erroring on warnings.
31+
# - name: Validate Compose Files with Defang CLI
32+
# run: |
33+
# . <(curl -Ls https://s.defang.io/install)
34+
# cat modified.txt | xargs -n1 defang compose config -C > /dev/null
3335

3436
- name: Add checklist to PR description
3537
uses: actions/github-script@v5

samples/angular-express/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ Title: Angular & Node.js
3737

3838
Short Description: A full-stack application using Angular for the frontend and Node.js with Socket.IO for the backend, containerized with Docker.
3939

40-
Tags: angular, nodejs, Socket.IO
40+
Tags: Angular, Node.js, Socket.IO, TypeScript, JavaScript
4141

42-
Languages: typescript, javascript
42+
Languages: nodejs

samples/bullmq-bullboard-redis/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ To add a job to the queue, you can go to the `/add` route of the `api` service.
88

99
The `worker` service is the queue processor that will process the jobs added to the queue. You can see in the `compose.yaml` file that the `worker` service is set to scale to 2 instances. This means that there will be 2 workers processing jobs from the queue. You can set this to your desired number of workers, but we wanted to show how you can increase the number of workers to handle more jobs.
1010

11-
1211
## Prerequisites
1312

1413
1. Download <a href="https://github.com/defang-io/defang">Defang CLI</a>
@@ -21,7 +20,6 @@ The `worker` service is the queue processor that will process the jobs added to
2120
3. Type `defang compose up` in the CLI.
2221
4. Your app will be running within a few minutes.
2322

24-
2523
## Local Development
2624

2725
1. Run `docker compose -f compose.dev.yaml up`
@@ -32,6 +30,6 @@ Title: BullMQ & BullBoard & Redis
3230

3331
Short Description: A sample project with BullMQ, BullBoard, and Redis.
3432

35-
Tags: BullMQ, BullBoard, Redis, Express, Node.js, Message Queue
33+
Tags: BullMQ, BullBoard, Redis, Express, Node.js, Message Queue, JavaScript
3634

37-
Languages: nodejs, javascript
35+
Languages: nodejs

samples/bullmq-bullboard-redis/compose.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ services:
1414
- QUEUE
1515
depends_on:
1616
- redis
17+
#deploy:
18+
# resources:
19+
# reservations:
20+
# memory: 256M
1721

1822
api:
1923
restart: unless-stopped
@@ -29,6 +33,10 @@ services:
2933
- QUEUE
3034
depends_on:
3135
- redis
36+
#deploy:
37+
# resources:
38+
# reservations:
39+
# memory: 256M
3240

3341
worker:
3442
restart: unless-stopped
@@ -44,6 +52,10 @@ services:
4452
test: ["CMD", "wget", "-q", "--spider", "127.0.0.1:3000"]
4553
depends_on:
4654
- redis
55+
#deploy:
56+
# resources:
57+
# reservations:
58+
# memory: 256M
4759

4860
redisx:
4961
image: redis:6.2

samples/csharp-dotnet/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ Title: ASP.NET Core & JavaScript Task Manager
3636

3737
Short Description: A task manager using ASP.NET Core for the backend and JavaScript for the frontend, containerized with Docker.
3838

39-
Tags: aspnetcore, javascript, Docker
39+
Tags: ASP.NET Core, JavaScript, C#
4040

41-
Languages: csharp, javascript
41+
Languages: C#, JavaScript
120 KB
Binary file not shown.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"runtimeTarget": {
3+
"name": ".NETCoreApp,Version=v8.0",
4+
"signature": ""
5+
},
6+
"compilationOptions": {},
7+
"targets": {
8+
".NETCoreApp,Version=v8.0": {
9+
"c#-dotnet/1.0.0": {
10+
"runtime": {
11+
"c#-dotnet.dll": {}
12+
}
13+
}
14+
}
15+
},
16+
"libraries": {
17+
"c#-dotnet/1.0.0": {
18+
"type": "project",
19+
"serviceable": false,
20+
"sha512": ""
21+
}
22+
}
23+
}
4.5 KB
Binary file not shown.
10.5 KB
Binary file not shown.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"runtimeOptions": {
3+
"tfm": "net8.0",
4+
"framework": {
5+
"name": "Microsoft.NETCore.App",
6+
"version": "8.0.0"
7+
},
8+
"configProperties": {
9+
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10+
}
11+
}
12+
}

0 commit comments

Comments
 (0)