-
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.
Event Handler Service: Subscribe to all events (and don't subscribe i…
…n Consumer API anymore) (#604) * wip * fix: change the remove migration script * feat: add new project * chore: update solution file * feat: Add Dockerfile * wip * feat: add service * refactor: improve availability of the consumer api * test: rename var * feat: add json files * refactoring: minor improvements * refactor: various improvements * fix: Update Dockerfile * fix: Change Docker base image to aspnet-alpine * feat: add package reference for GitHubActionsTestLoggger * refactor: rename to EventHandlerService * fix: remove prop from service configuration * chore: make admin api and consumer api available from WSL * fix: remove Worker property from configuration * chore: change "service" property in log config * chore: make blob storage work locally * ci: add event handler service to pipeline docker-compose file * ci: add building of ehs container image to test pipeline * ci: add publish-ehs workflow * fix: set DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 * fix: install libicu for EventHandlerService and IdentityDeletionJob * ci: make buildContainerImage script executable * fix: install icu-libs via apk add * chore: change namein pipelines and dockerimage to event handler * refactor: fix method naming * chore: add .mono to .gitignore * feat: add event handler to helm chart * chore: remove unnecessary properties * chore: add event handler to launch configuration * chore: add Rider run configuration * test: fix compiler error --------- Co-authored-by: Mika Herrmann <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Timo Notheisen <[email protected]> Co-authored-by: Timo Notheisen <[email protected]>
- Loading branch information
1 parent
cd2bf90
commit 6afcb27
Showing
25 changed files
with
867 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env node | ||
|
||
import { $ } from "zx"; | ||
import { getRequiredEnvVar } from "../lib.js"; | ||
|
||
const tag = getRequiredEnvVar("TAG"); | ||
|
||
const platforms = process.env.PLATFORMS ?? "linux/amd64,linux/arm64"; | ||
const push = process.env.PUSH === "1" ? ["--push", "--provenance=true", "--sbom=true"] : ""; | ||
|
||
await $`docker buildx build --file ./EventHandlerService/src/EventHandlerService/Dockerfile --tag ghcr.io/nmshd/backbone-event-handler:${tag} --platform ${platforms} ${push} .`; |
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,46 @@ | ||
name: Publish Event Handler Service Container Image | ||
|
||
on: | ||
push: | ||
tags: | ||
- "eh/*" | ||
|
||
jobs: | ||
publish-eh-container-image: | ||
name: Publish Event Handler Service Container Image | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install script dependencies | ||
run: npm install --prefix ./.ci | ||
- name: Docker Login | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Extract version from git tag | ||
id: extract-version-from-git-tag | ||
run: echo "VERSION=$(./.ci/extractVersionFromGitTag.js)" >> $GITHUB_OUTPUT | ||
env: | ||
GIT_TAG: ${{ github.ref_name }} | ||
- name: Log in to Docker Hub for accessing the cloud builder | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.CLOUD_BUILDER_USERNAME }} | ||
password: ${{ secrets.CLOUD_BUILDER_TOKEN }} | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
version: "lab:latest" | ||
driver: cloud | ||
endpoint: "jssoft/js-soft" | ||
- name: Build and Push Container Image | ||
run: ./.ci/eh/buildContainerImage.js | ||
env: | ||
TAG: ${{ steps.extract-version-from-git-tag.outputs.VERSION }} | ||
PUSH: 1 |
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Multi-Launch: Backbone" type="com.intellij.execution.configurations.multilaunch" factoryName="MultiLaunchConfiguration"> | ||
<rows> | ||
<ExecutableRowSnapshot> | ||
<option name="condition"> | ||
<ConditionSnapshot> | ||
<option name="type" value="immediately"/> | ||
</ConditionSnapshot> | ||
</option> | ||
<option name="disableDebugging" value="true"/> | ||
<option name="executable"> | ||
<ExecutableSnapshot> | ||
<option name="id" value="runConfig:Docker.docker-compose: Compose Deployment"/> | ||
</ExecutableSnapshot> | ||
</option> | ||
</ExecutableRowSnapshot> | ||
<ExecutableRowSnapshot> | ||
<option name="condition"> | ||
<ConditionSnapshot> | ||
<option name="type" value="immediately"/> | ||
</ConditionSnapshot> | ||
</option> | ||
<option name="executable"> | ||
<ExecutableSnapshot> | ||
<option name="id" value="runConfig:.NET Launch Settings Profile.ConsumerApi: Default"/> | ||
</ExecutableSnapshot> | ||
</option> | ||
</ExecutableRowSnapshot> | ||
<ExecutableRowSnapshot> | ||
<option name="condition"> | ||
<ConditionSnapshot> | ||
<option name="type" value="immediately"/> | ||
</ConditionSnapshot> | ||
</option> | ||
<option name="executable"> | ||
<ExecutableSnapshot> | ||
<option name="id" value="runConfig:.NET Launch Settings Profile.AdminApi: Default"/> | ||
</ExecutableSnapshot> | ||
</option> | ||
</ExecutableRowSnapshot> | ||
<ExecutableRowSnapshot> | ||
<option name="condition"> | ||
<ConditionSnapshot> | ||
<option name="type" value="immediately"/> | ||
</ConditionSnapshot> | ||
</option> | ||
<option name="executable"> | ||
<ExecutableSnapshot> | ||
<option name="id" value="runConfig:.NET Project.EventHandlerService"/> | ||
</ExecutableSnapshot> | ||
</option> | ||
</ExecutableRowSnapshot> | ||
</rows> | ||
<method v="2"/> | ||
</configuration> | ||
</component> |
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
Oops, something went wrong.