Skip to content

Commit 5cdd871

Browse files
committed
merged with main
Signed-off-by: Jean-Baptiste Bianchi <[email protected]>
2 parents 3219c8a + a127e94 commit 5cdd871

File tree

195 files changed

+5495
-821
lines changed

Some content is hidden

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

195 files changed

+5495
-821
lines changed

.dockerignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@
2121
**/obj
2222
**/secrets.dev.yaml
2323
**/values.dev.yaml
24-
LICENSE
25-
README.md
24+
LICENSE

.github/workflows/publish.yml

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ jobs:
2222
run: dotnet restore "./Synapse.sln"
2323
- name: Build
2424
run: dotnet build "./Synapse.sln" --configuration Release --no-restore
25-
- name: Push1
25+
- name: Push
2626
run: dotnet nuget push "./src/*/*/bin/Release/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
27-
- name: Push2
28-
run: dotnet nuget push "./src/*/*/*/bin/Release/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
2927

3028
publish-server-image:
3129
runs-on: ubuntu-latest
@@ -111,6 +109,34 @@ jobs:
111109
tags: ${{ steps.meta.outputs.tags }}
112110
labels: ${{ steps.meta.outputs.labels }}
113111

112+
publish-runner-image:
113+
runs-on: ubuntu-latest
114+
steps:
115+
- name: Checkout repository
116+
uses: actions/checkout@v3
117+
- name: Log in to the Container registry
118+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
119+
with:
120+
registry: ${{ env.REGISTRY }}
121+
username: ${{ github.actor }}
122+
password: ${{ secrets.GITHUB_TOKEN }}
123+
- name: Extract metadata (tags, labels) for Docker
124+
id: meta
125+
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
126+
with:
127+
images: ${{ env.REGISTRY }}/${{ github.repository }}/runner
128+
tags: |
129+
type=semver,pattern={{version}}
130+
type=semver,pattern={{major}}.{{minor}}
131+
- name: Build and push Docker image
132+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
133+
with:
134+
context: .
135+
file: './src/runner/Synapse.Runner/Dockerfile'
136+
push: true
137+
tags: ${{ steps.meta.outputs.tags }}
138+
labels: ${{ steps.meta.outputs.labels }}
139+
114140
publish-server-bin:
115141
name: Release API Binaries
116142
strategy:
@@ -133,7 +159,7 @@ jobs:
133159
- name: Setup
134160
uses: actions/setup-dotnet@v2
135161
with:
136-
dotnet-version: 6.0.x
162+
dotnet-version: 8.0.x
137163
- name: Restore
138164
run: dotnet restore
139165
- name: Build
@@ -182,7 +208,7 @@ jobs:
182208
- name: Setup
183209
uses: actions/setup-dotnet@v2
184210
with:
185-
dotnet-version: 6.0.x
211+
dotnet-version: 8.0.x
186212
- name: Restore
187213
run: dotnet restore
188214
- name: Build
@@ -231,7 +257,7 @@ jobs:
231257
- name: Setup
232258
uses: actions/setup-dotnet@v2
233259
with:
234-
dotnet-version: 6.0.x
260+
dotnet-version: 8.0.x
235261
- name: Restore
236262
run: dotnet restore
237263
- name: Build
@@ -280,7 +306,7 @@ jobs:
280306
- name: Setup
281307
uses: actions/setup-dotnet@v2
282308
with:
283-
dotnet-version: 6.0.x
309+
dotnet-version: 8.0.x
284310
- name: Restore
285311
run: dotnet restore
286312
- name: Build
@@ -329,7 +355,7 @@ jobs:
329355
- name: Setup
330356
uses: actions/setup-dotnet@v2
331357
with:
332-
dotnet-version: 6.0.x
358+
dotnet-version: 8.0.x
333359
- name: Restore
334360
run: dotnet restore
335361
- name: Build
@@ -354,4 +380,4 @@ jobs:
354380
with:
355381
files: "synctl*"
356382
env:
357-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
383+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<p align="center">
2-
<img src="assets/images/transparent_logo.png" height="350px" alt="Synapse Logo"/>
1+
<p align="center">
2+
<img src="./assets/images/transparent_logo.png" height="350px" alt="Synapse Logo"/>
33
</p>
44

55
---
@@ -19,6 +19,10 @@ It enables developers and organizations to define and execute workflows effortle
1919

2020
With Synapse, you can create powerful workflows that are cloud vendor-agnostic, easily scalable, and highly customizable.
2121

22+
<p align="center">
23+
<img src="./assets/images/preview.gif" alt="Synapse Preview"/>
24+
</p>
25+
2226
### Features
2327

2428
- **Easy to Use**: The Serverless Workflow DSL is designed for universal understanding, enabling users to quickly grasp workflow concepts and create complex workflows effortlessly.
@@ -33,7 +37,7 @@ With Synapse, you can create powerful workflows that are cloud vendor-agnostic,
3337
- **Scalable**: Promotes code reusability, maintainability, and scalability across different environments.
3438
- **Cross-Platform**: Runs on various operating systems, providing flexibility and ease of integration.
3539

36-
### Microservices
40+
### Architecture
3741

3842
Synapse is composed of several specialized applications, allowing for atomic scalability, resilience, and ease of maintenance:
3943

@@ -43,6 +47,12 @@ Synapse is composed of several specialized applications, allowing for atomic sca
4347
- **Correlator**: Performs Complex Event Processing (CEP) and correlates ingested events.
4448
- **CLI**: Allows interaction with the Synapse API via the command line interface.
4549

50+
<p align="center">
51+
<img src="./assets/images/architecture-c4-l2.png" alt="Synapse Architecture C4 Diagram - Container Layer"/>
52+
</p>
53+
54+
*For more information about the Synapse architecture, please refer to the [wiki](https://github.com/serverlessworkflow/synapse/wiki/Architecture).* 📖
55+
4656
## Getting Started
4757

4858
### Prerequisites
@@ -79,6 +89,8 @@ The simplest way to get started is by using the provided Docker Compose setup.
7989

8090
This will pull the necessary Docker images and start the Synapse services as defined in the `docker-compose.yml` file. You can then access the Synapse API and dashboard as configured.
8191

92+
*For more information about installing Synapse, please refer to the [wiki](https://github.com/serverlessworkflow/synapse/wiki/Installation)*. 📖
93+
8294
### Run using `synctl` Command-line Interface
8395

8496
First, set up the Synapse API server to use with `synctl`:
@@ -120,15 +132,15 @@ The command above will provide the fully qualified name of the created workflow
120132
synctl workflow-instance get-output greeter-uk58h3dssqp620a --namespace default --output yaml
121133
```
122134

123-
For more information about `synctl`, please refer to the [documentation](#synctl).
135+
*For more information about `synctl`, please refer to the [wiki](https://github.com/serverlessworkflow/synapse/wiki/CLI-Usage).* 📖
124136

125137
## Community
126138

127139
The Synapse project has a vibrant and growing community dedicated to building a community-driven and vendor-neutral workflow runtime ecosystem. Contributions from the community are encouraged and essential to the continued growth and success of the project.
128140

129-
A list of community members who have contributed to Synapse can be found [here](./community/README.md).
141+
A list of community members who have contributed to Synapse can be found [here](./community/README.md). 👥
130142

131-
To learn how to contribute to Synapse, please refer to the [contribution guidelines](CONTRIBUTING.md).
143+
To learn how to contribute to Synapse, please refer to the [contribution guidelines](CONTRIBUTING.md). 📝
132144

133145
For any copyright-related questions when contributing to a CNCF project like Synapse, please refer to the [Ownership of Copyrights in CNCF Project Contributions](https://github.com/cncf/foundation/blob/master/copyright-notices.md) document.
134146

@@ -138,5 +150,5 @@ As contributors and maintainers of Synapse, and in the interest of fostering an
138150

139151
The project is committed to making participation in Synapse a harassment-free experience for everyone, regardless of experience level, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
140152

141-
For more detailed information, please see the full project Code of Conduct [here](code-of-conduct.md).
153+
For more detailed information, please see the full project Code of Conduct [here](code-of-conduct.md). 🛡️
142154

Synapse.sln

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "runner", "runner", "{1DA47E
1717
EndProject
1818
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Synapse.Core", "src\core\Synapse.Core\Synapse.Core.csproj", "{F2804D69-04C9-463D-B5E5-D3185163EBC0}"
1919
EndProject
20-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Synapse.Core.Infrastructure.Containers.Docker", "src\core\Synapse.Core.Infrastructure.Containers.Docker\Synapse.Core.Infrastructure.Containers.Docker.csproj", "{40EB503E-6E97-4375-A172-6EF55F9E0FF3}"
21-
EndProject
2220
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "api", "api", "{63715FC0-736D-4972-A865-41126155DF45}"
2321
EndProject
2422
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Synapse.Dashboard", "src\dashboard\Synapse.Dashboard\Synapse.Dashboard.csproj", "{A9BB7219-B24B-4E40-B10A-69E618BDA272}"
@@ -58,8 +56,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Synapse.Runtime.Abstraction
5856
EndProject
5957
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Synapse.Runtime.Native", "src\runtime\Synapse.Runtime.Native\Synapse.Runtime.Native.csproj", "{DC24E506-602F-4FD9-B8C0-CEA6B2AD8888}"
6058
EndProject
61-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Synapse.Runtime.Containerized", "src\runtime\Synapse.Runtime.Containerized\Synapse.Runtime.Containerized.csproj", "{F327B8F1-9A13-4924-AE1B-E69788AC73E7}"
62-
EndProject
6359
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Synapse.Runner", "src\runner\Synapse.Runner\Synapse.Runner.csproj", "{E5FAA9BA-07C3-49CF-AD3B-897AE1D0B018}"
6460
EndProject
6561
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Synapse.Dashboard.StateManagement", "src\dashboard\Synapse.Dashboard.StateManagement\Synapse.Dashboard.StateManagement.csproj", "{91EF9F64-4997-407C-B353-C26B1421D0FB}"
@@ -132,6 +128,16 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "templates", "templates", "{
132128
deployments\helm\templates\services.yaml = deployments\helm\templates\services.yaml
133129
EndProjectSection
134130
EndProject
131+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Synapse.Runtime.Docker", "src\runtime\Synapse.Runtime.Docker\Synapse.Runtime.Docker.csproj", "{8FF58403-9E13-4F58-864F-E6FBC877BF37}"
132+
EndProject
133+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Synapse.Runtime.Kubernetes", "src\runtime\Synapse.Runtime.Kubernetes\Synapse.Runtime.Kubernetes.csproj", "{9B37AA4A-A342-4A41-A2A1-C8466825A70A}"
134+
EndProject
135+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Synapse.Core.Infrastructure.Containers.Docker", "src\core\Synapse.Core.Infrastructure.Containers.Docker\Synapse.Core.Infrastructure.Containers.Docker.csproj", "{DD6381BD-2C8B-4CE1-99B2-EC585DD818FA}"
136+
EndProject
137+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "kubernetes", "kubernetes", "{B3F3DB1B-23E7-45FA-8934-448BFFB294E8}"
138+
EndProject
139+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Synapse.Core.Infrastructure.Containers.Kubernetes", "src\core\Synapse.Core.Infrastructure.Containers.Kubernetes\Synapse.Core.Infrastructure.Containers.Kubernetes.csproj", "{41C99069-BD99-4FD2-BF33-984CF03B53E8}"
140+
EndProject
135141
Global
136142
GlobalSection(SolutionConfigurationPlatforms) = preSolution
137143
Debug|Any CPU = Debug|Any CPU
@@ -142,10 +148,6 @@ Global
142148
{F2804D69-04C9-463D-B5E5-D3185163EBC0}.Debug|Any CPU.Build.0 = Debug|Any CPU
143149
{F2804D69-04C9-463D-B5E5-D3185163EBC0}.Release|Any CPU.ActiveCfg = Release|Any CPU
144150
{F2804D69-04C9-463D-B5E5-D3185163EBC0}.Release|Any CPU.Build.0 = Release|Any CPU
145-
{40EB503E-6E97-4375-A172-6EF55F9E0FF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
146-
{40EB503E-6E97-4375-A172-6EF55F9E0FF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
147-
{40EB503E-6E97-4375-A172-6EF55F9E0FF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
148-
{40EB503E-6E97-4375-A172-6EF55F9E0FF3}.Release|Any CPU.Build.0 = Release|Any CPU
149151
{A9BB7219-B24B-4E40-B10A-69E618BDA272}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
150152
{A9BB7219-B24B-4E40-B10A-69E618BDA272}.Debug|Any CPU.Build.0 = Debug|Any CPU
151153
{A9BB7219-B24B-4E40-B10A-69E618BDA272}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -190,10 +192,6 @@ Global
190192
{DC24E506-602F-4FD9-B8C0-CEA6B2AD8888}.Debug|Any CPU.Build.0 = Debug|Any CPU
191193
{DC24E506-602F-4FD9-B8C0-CEA6B2AD8888}.Release|Any CPU.ActiveCfg = Release|Any CPU
192194
{DC24E506-602F-4FD9-B8C0-CEA6B2AD8888}.Release|Any CPU.Build.0 = Release|Any CPU
193-
{F327B8F1-9A13-4924-AE1B-E69788AC73E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
194-
{F327B8F1-9A13-4924-AE1B-E69788AC73E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
195-
{F327B8F1-9A13-4924-AE1B-E69788AC73E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
196-
{F327B8F1-9A13-4924-AE1B-E69788AC73E7}.Release|Any CPU.Build.0 = Release|Any CPU
197195
{E5FAA9BA-07C3-49CF-AD3B-897AE1D0B018}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
198196
{E5FAA9BA-07C3-49CF-AD3B-897AE1D0B018}.Debug|Any CPU.Build.0 = Debug|Any CPU
199197
{E5FAA9BA-07C3-49CF-AD3B-897AE1D0B018}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -218,6 +216,22 @@ Global
218216
{A2D3AFB0-C7E0-4778-9D0A-DFCE0E24AF17}.Debug|Any CPU.Build.0 = Debug|Any CPU
219217
{A2D3AFB0-C7E0-4778-9D0A-DFCE0E24AF17}.Release|Any CPU.ActiveCfg = Release|Any CPU
220218
{A2D3AFB0-C7E0-4778-9D0A-DFCE0E24AF17}.Release|Any CPU.Build.0 = Release|Any CPU
219+
{8FF58403-9E13-4F58-864F-E6FBC877BF37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
220+
{8FF58403-9E13-4F58-864F-E6FBC877BF37}.Debug|Any CPU.Build.0 = Debug|Any CPU
221+
{8FF58403-9E13-4F58-864F-E6FBC877BF37}.Release|Any CPU.ActiveCfg = Release|Any CPU
222+
{8FF58403-9E13-4F58-864F-E6FBC877BF37}.Release|Any CPU.Build.0 = Release|Any CPU
223+
{9B37AA4A-A342-4A41-A2A1-C8466825A70A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
224+
{9B37AA4A-A342-4A41-A2A1-C8466825A70A}.Debug|Any CPU.Build.0 = Debug|Any CPU
225+
{9B37AA4A-A342-4A41-A2A1-C8466825A70A}.Release|Any CPU.ActiveCfg = Release|Any CPU
226+
{9B37AA4A-A342-4A41-A2A1-C8466825A70A}.Release|Any CPU.Build.0 = Release|Any CPU
227+
{DD6381BD-2C8B-4CE1-99B2-EC585DD818FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
228+
{DD6381BD-2C8B-4CE1-99B2-EC585DD818FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
229+
{DD6381BD-2C8B-4CE1-99B2-EC585DD818FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
230+
{DD6381BD-2C8B-4CE1-99B2-EC585DD818FA}.Release|Any CPU.Build.0 = Release|Any CPU
231+
{41C99069-BD99-4FD2-BF33-984CF03B53E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
232+
{41C99069-BD99-4FD2-BF33-984CF03B53E8}.Debug|Any CPU.Build.0 = Debug|Any CPU
233+
{41C99069-BD99-4FD2-BF33-984CF03B53E8}.Release|Any CPU.ActiveCfg = Release|Any CPU
234+
{41C99069-BD99-4FD2-BF33-984CF03B53E8}.Release|Any CPU.Build.0 = Release|Any CPU
221235
EndGlobalSection
222236
GlobalSection(SolutionProperties) = preSolution
223237
HideSolutionNode = FALSE
@@ -229,7 +243,6 @@ Global
229243
{32EAD165-3D99-42CD-B3AF-05136DCC7F35} = {4B9AF05C-9D6D-48C0-994D-D4A5C28FA24D}
230244
{1DA47E5F-B23A-4D3C-96AA-4BD2662AB946} = {4B9AF05C-9D6D-48C0-994D-D4A5C28FA24D}
231245
{F2804D69-04C9-463D-B5E5-D3185163EBC0} = {9E296C8A-4D78-4592-B046-11A3A953FD25}
232-
{40EB503E-6E97-4375-A172-6EF55F9E0FF3} = {9E296C8A-4D78-4592-B046-11A3A953FD25}
233246
{63715FC0-736D-4972-A865-41126155DF45} = {4B9AF05C-9D6D-48C0-994D-D4A5C28FA24D}
234247
{A9BB7219-B24B-4E40-B10A-69E618BDA272} = {7DF998B8-0FB1-470E-8ED0-EA1CC7B16901}
235248
{327FF68E-E729-4616-B1BE-B262A95890A2} = {63715FC0-736D-4972-A865-41126155DF45}
@@ -243,7 +256,6 @@ Global
243256
{175CE1C5-FE17-4C8B-8823-E812BAD4E527} = {4B9AF05C-9D6D-48C0-994D-D4A5C28FA24D}
244257
{A0E5E7F2-8C9C-4F36-B3FD-C09074893023} = {175CE1C5-FE17-4C8B-8823-E812BAD4E527}
245258
{DC24E506-602F-4FD9-B8C0-CEA6B2AD8888} = {175CE1C5-FE17-4C8B-8823-E812BAD4E527}
246-
{F327B8F1-9A13-4924-AE1B-E69788AC73E7} = {175CE1C5-FE17-4C8B-8823-E812BAD4E527}
247259
{E5FAA9BA-07C3-49CF-AD3B-897AE1D0B018} = {1DA47E5F-B23A-4D3C-96AA-4BD2662AB946}
248260
{91EF9F64-4997-407C-B353-C26B1421D0FB} = {7DF998B8-0FB1-470E-8ED0-EA1CC7B16901}
249261
{A9085F4A-5FDF-4F4A-B267-A03BC5E0FDB0} = {32EAD165-3D99-42CD-B3AF-05136DCC7F35}
@@ -255,6 +267,11 @@ Global
255267
{2A6EE5DF-BD7E-4CC6-BB9B-7BE5FC128302} = {750922F9-5C47-42FE-945F-576818E6DEC9}
256268
{B6A96DC3-E57A-4022-9279-1DB57744C893} = {562C91A3-6E91-4489-9D9D-064E7436D900}
257269
{3F5CCCE8-46F8-4873-8EF9-38E14EAE7E01} = {B6A96DC3-E57A-4022-9279-1DB57744C893}
270+
{8FF58403-9E13-4F58-864F-E6FBC877BF37} = {175CE1C5-FE17-4C8B-8823-E812BAD4E527}
271+
{9B37AA4A-A342-4A41-A2A1-C8466825A70A} = {175CE1C5-FE17-4C8B-8823-E812BAD4E527}
272+
{DD6381BD-2C8B-4CE1-99B2-EC585DD818FA} = {9E296C8A-4D78-4592-B046-11A3A953FD25}
273+
{B3F3DB1B-23E7-45FA-8934-448BFFB294E8} = {562C91A3-6E91-4489-9D9D-064E7436D900}
274+
{41C99069-BD99-4FD2-BF33-984CF03B53E8} = {9E296C8A-4D78-4592-B046-11A3A953FD25}
258275
EndGlobalSection
259276
GlobalSection(ExtensibilityGlobals) = postSolution
260277
SolutionGuid = {2A6C03D6-355A-4B39-9F2B-D0FDE429C0E2}

assets/images/architecture-c4-l2.png

337 KB
Loading

assets/images/preview.gif

1.68 MB
Loading
8.32 KB
Loading

deployments/docker-compose/docker-compose.build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ services:
1313
CONNECTIONSTRINGS__REDIS: ${GARNET_URI}
1414
SYNAPSE_DASHBOARD_SERVE: true
1515
SYNAPSE_API_AUTH_TOKEN_FILE: /app/tokens.yaml
16+
SYNAPSE_API_JWT_AUTHORITY: http://api:8080
17+
SYNAPSE_API_CLOUD_EVENTS_ENDPOINT: https://webhook.site/a4aff725-0711-48b2-a9d2-5d1b806d04d0
1618
volumes:
1719
- ./config/tokens.yaml:/app/tokens.yaml
1820
ports:
@@ -28,7 +30,9 @@ services:
2830
CONNECTIONSTRINGS__REDIS: ${GARNET_URI}
2931
SYNAPSE_OPERATOR_NAMESPACE: default
3032
SYNAPSE_OPERATOR_NAME: operator-1
31-
SYNAPSE_OPERATOR_RUNNER_API: http://api:8080
33+
SYNAPSE_RUNNER_API: http://api:8080
34+
SYNAPSE_RUNNER_LIFECYCLE_EVENTS: true
35+
SYNAPSE_RUNNER_CONTAINER_PLATFORM: docker
3236
DOCKER_HOST: unix:///var/run/docker.sock
3337
extra_hosts:
3438
- "host.docker.internal:host-gateway"

deployments/docker-compose/docker-compose.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ services:
1111
CONNECTIONSTRINGS__REDIS: ${GARNET_URI}
1212
SYNAPSE_DASHBOARD_SERVE: true
1313
SYNAPSE_API_AUTH_TOKEN_FILE: /app/tokens.yaml
14+
SYNAPSE_API_JWT_AUTHORITY: http://api:8080
15+
SYNAPSE_API_CLOUD_EVENTS_ENDPOINT: https://webhook.site/a4aff725-0711-48b2-a9d2-5d1b806d04d0
1416
volumes:
1517
- ./config/tokens.yaml:/app/tokens.yaml
1618
ports:
@@ -24,7 +26,10 @@ services:
2426
CONNECTIONSTRINGS__REDIS: ${GARNET_URI}
2527
SYNAPSE_OPERATOR_NAMESPACE: default
2628
SYNAPSE_OPERATOR_NAME: operator-1
27-
SYNAPSE_OPERATOR_RUNNER_API: http://api:8080
29+
SYNAPSE_RUNNER_API: http://api:8080
30+
SYNAPSE_RUNNER_LIFECYCLE_EVENTS: true
31+
SYNAPSE_RUNNER_CONTAINER_PLATFORM: docker
32+
SYNAPSE_RUNTIME_DOCKER_SECRETS_DIRECTORY: C:\Users\User\.synapse\secrets
2833
DOCKER_HOST: unix:///var/run/docker.sock
2934
extra_hosts:
3035
- "host.docker.internal:host-gateway"

deployments/helm/templates/deployment.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,13 @@ spec:
8888
- name: CONNECTIONSTRINGS__REDIS
8989
value: {{ .Values.global.redisConnectionString }}
9090
- name: SYNAPSE_OPERATOR_NAMESPACE
91-
value: {{ .Values.operator.env.SYNAPSE_OPERATOR_NAMESPACE }}
91+
valueFrom:
92+
fieldRef:
93+
fieldPath: metadata.namespace
9294
- name: SYNAPSE_OPERATOR_NAME
93-
value: {{ .Values.operator.env.SYNAPSE_OPERATOR_NAME }}
95+
valueFrom:
96+
fieldRef:
97+
fieldPath: metadata.name
9498
- name: SYNAPSE_OPERATOR_RUNNER_API
9599
value: {{ .Values.operator.env.SYNAPSE_OPERATOR_RUNNER_API }}
96100
- name: DOCKER_HOST
@@ -128,9 +132,13 @@ spec:
128132
- name: CONNECTIONSTRINGS__REDIS
129133
value: {{ .Values.global.redisConnectionString }}
130134
- name: SYNAPSE_CORRELATOR_NAMESPACE
131-
value: {{ .Values.correlator.env.SYNAPSE_CORRELATOR_NAMESPACE }}
135+
valueFrom:
136+
fieldRef:
137+
fieldPath: metadata.namespace
132138
- name: SYNAPSE_CORRELATOR_NAME
133-
value: {{ .Values.correlator.env.SYNAPSE_CORRELATOR_NAME }}
139+
valueFrom:
140+
fieldRef:
141+
fieldPath: metadata.name
134142
---
135143
apiVersion: v1
136144
kind: PersistentVolumeClaim

0 commit comments

Comments
 (0)