Commit graph

45 commits

Author SHA1 Message Date
Sipke Schoorstra 078f34fd79 Remove obsolete tag settings and correct tag schemas
Eliminated redundant `correlationId` tag setting. Adjusted `workflowInstance` and `activityInstance` tag schemas for better clarity. Simplified the processors list in `otel-collector-config.yaml`.
2024-10-05 14:12:00 +02:00
Sipke Schoorstra a62de77900 Update OpenTelemetry configurations and remove unused modules
Revised otel-collector and docker-compose configurations to streamline tracing and metrics collection, replacing Datadog connectors with OpenTelemetry. Removed unused scraping modules and unnecessary dependencies to improve setup efficiency and resource utilization.
2024-09-25 14:12:00 +02:00
Sipke Schoorstra 758b60767b Add OpenTelemetry auto-instrumentation support
Introduce OpenTelemetry configuration and dependencies for observability. Replace DataDog tracer with OpenTelemetry auto-instrumentation in the Dockerfile. Adjust project dependencies and log levels to incorporate OpenTelemetry without disrupting existing functionality.
2024-09-25 00:49:21 +02:00
Sipke Schoorstra df827b0fda Update Datadog config, add incident error serialization
Enhanced the Datadog tracing configuration to include priority sampling, rate limits, and sampling rules in the docker-compose-datadog.yml. Updated the agent image version and improved error message serialization in OpenTelemetry middleware to use custom JSON serializer options. Adjusted Dockerfile path to correct bundle location.
2024-09-24 00:27:51 +02:00
Sipke Schoorstra adf36927dc Update Docker and k8s configs, enhance OTEL tracing
Updated `docker-compose-datadog.yml` with new environment variables and updated image versions, enhancing trace sampling and service autodiscovery. Added Kubernetes deployment, service, and role files for `elsa-server`, `elsa-studio`, `plant-uml`, `postgres`, and `trace-lens`, improving the project's infrastructure. Enhanced OpenTelemetry middleware for better error handling and detailed tracing of activity and workflow executions.
2024-09-23 23:35:30 +02:00
Sipke Schoorstra 9b9454403b
Minor improvements and bug fixes following the 3.1 release (#5168)
* Move DynamicActivity.cs to Activities directory

The DynamicActivity.cs file has been moved from the Models directory to the Activities directory. This reorganization aims to ensure that the file's location correctly reflects its namespace.

* Add GetOutput method in ActivityExtensions

A new GetOutput method has been added to the ActivityExtensions.cs file. This method allows the retrieval of output with a specific name from an activity. Useful for handling complex types in workflow activities.

* Add feature check and refactor dependencies in Elsa

The commit introduces a new feature check in the `Module` class and refactors the dependencies in MassTransit features. Specifically, it enables querying for a specific feature before configuring the dispatcher endpoints, increasing flexibility and control. In addition, the responsibility for creating `IEndpointChannelFormatter` has been shifted from `MassTransitWorkflowDispatcherFeature` to `MassTransitFeature`, aligning with responsibility distribution.

Fixes #5165

* Add HasFeature method to IModule interface

The IModule interface has been updated to include two methods, HasFeature<T>() and HasFeature(Type featureType). These methods are designed to check if a specific type of feature has been configured, enhancing the functionality provided by the interface.

* Add WorkflowRuntimeFeature dependency

Removed unused namespaces from WorkflowsApiFeature class and added a new dependency on WorkflowRuntimeFeature. This change enhances the code cleanliness and ensures all required dependencies are correctly linked.

* Add activity completion functionality to multiple contexts

This commit introduces multiple methods to handle activity completion across various contexts, including ActivityExecutionContext and ActivityCompletedContext. It also includes updates to bookmark serialization and the WorkflowRuntime. The resulting changes should improve handling of activity outcomes and status updates in the application flow.

* Handle null options in DefaultWorkflowRuntime

Added null-conditional operators to prevent potential NullReferenceExceptions in DefaultWorkflowRuntime. This change ensures that even if the 'options' object is null, the code will not throw an exception and will instead use default values where applicable.

* Add ElsaDbContextOptions to DbContextOptionsBuilder

A line of code is added to enable applying ElsaDbContextOptions as default in DbContextOptionsBuilder within PersistenceFeatureBase. This change specifies the use of ElsaDbContextOptions when configuring the context options, enhancing the database context setup in the EntityFrameworkCore.Common module.

* Remove whitespace in Elsa.Server.Web.csproj

This commit removes unnecessary whitespaces at the end of the ProjectReference and PackageReference elements, in the Elsa.Server.Web.csproj file. This improves the readability and alignment of the code and follows the best practice for XML file format.

* Add MongoDB to docker-compose.yml

A MongoDB service has been added to the docker-compose file. The configuration includes port mapping and volume mapping for MongoDB data storage. This allows more flexibility in our environment setup with MongoDB now being spun up automatically.

* Add collection check in MongoDbStore before bulk save

Adjusted code structure, and divided longer lines of code into smaller, multi-line chunks for better readability. This refactoring makes the underlying operations and structuring of the code more apparent, aiding in future code maintenance and understanding.

* Change target branch in packages.yml workflow

This commit modifies the Github actions workflow for packaging. The branch from which to fetch changes is now specified explicitly as 'origin/patch/3.1.1' instead of the default 'origin/main'. This adjustment is specific for package creation under certain conditions.
2024-04-02 07:41:46 +02:00
Sipke Schoorstra 83dd776233 Add new docker-compose files, new activities and services
Create new docker-compose files for non-data dog and data dog services. New services include Postgres, cockroachdb, rabbitmq, redis, and elsa-server. Along with the services, a new bash script for migration and various new activities and endpoints are also added for the Elsa server. This set of changes broadens the operational environment of Elsa.
2024-03-24 20:28:19 +01:00
Sipke Schoorstra b553ffe0d9 Add Docker build script for Elsa Studio
This commit introduces a Dockerfile for the Elsa Studio application and a corresponding GitHub workflow for building and deploying the Docker image. These make it possible to automatically build and deploy Elsa Studio as a Docker image.
2023-12-27 22:15:57 +01:00
Sipke Schoorstra e0b9356c47 Update Dockerfiles for Python 3.11 installation
Added lines in Dockerfiles to install Python 3.11 and set the PYTHONNET_PYDLL environment variable. This enhancement helps to ensure compatibility with recent Python updates and improves general performance.
2023-12-27 21:45:01 +01:00
Sipke Schoorstra 062158b4d2 Update Dockerfiles and add Python 3.11
Working directories in both ElsaServer.Dockerfile and ElsaServerAndStudio.Dockerfile have been updated for better consistency. Additionally, Python 3.11 has been installed in the ElsaServer.Dockerfile, accompanied by relevant environment variables and symbolic links to improve interoperability.
2023-12-27 20:44:28 +01:00
Sipke Schoorstra f17966c592 Refactor project structure and Docker configurations
The changes included in this commit are made to refactor the project structure and Docker configurations. Previously, the application was structured around the AllInOneWeb solution, but it has been split into Server.Web and ServerAndStudio.Web solutions for better separation of concerns. Additionally, the Docker configurations have been updated to reflect the new structure, which should streamline the build and deployment process.
2023-12-27 20:30:33 +01:00
Sipke Schoorstra 0146a8aeb0 Update AllInOne dockerfile 2023-12-04 14:25:34 +01:00
Sipke Schoorstra f5962501bc Update targets 2023-11-27 20:20:22 +01:00
Sipke Schoorstra 86ffcfab5d Update Dockerfile 2023-11-27 20:03:50 +01:00
Sipke Schoorstra bec8cbc322
Target .NET 8 (#4660) 2023-11-27 11:26:16 +01:00
Sipke Schoorstra cb08cad32b
Replace Stencil dashboard with Blazor in AllInOne.Web project (#4554) 2023-10-19 01:03:55 +02:00
Sipke Schoorstra ab53ba4d8b Update All In One dockerfile to build client assets 2023-04-01 10:50:52 +02:00
Sipke Schoorstra f31a950d68 Try --platform=$BUILDPLATFORM 2022-12-30 19:42:52 +01:00
Sipke Schoorstra 3017804980 Try Node 19.0.0 2022-12-30 19:36:56 +01:00
Sipke Schoorstra 01c70e5563 Update docker things 2022-12-30 19:29:34 +01:00
Sipke Schoorstra 42ce946d64 Reset 2022-01-04 09:38:11 +01:00
Mohamed Ali aad15cbb7d revent docker to amd64 2021-12-29 22:22:37 +03:00
Yopi Cahya 4933a2e81e
Upgrade all projects to .NET6.0 (#2616)
* Upgrade all projects to .NET6.0

* Add compatibility NET5.0

* Add compatibility NET Core 3.1

* Update appveyor.yml

* Update packages

* Update src/activities/Elsa.Activities.Http/Elsa.Activities.Http.csproj

Remove common Authorization package

* Update src/activities/Elsa.Activities.Http/Elsa.Activities.Http.csproj

reimplement fix for #1568

* reimplement fix for #1611

* add missing .netcoreapp3.1 references to persistence packages

* fix Jint reference

* change samples and tests to target .NET 6

* cleanup multi-targeting conditions in samples/tests

* revert Elsa and Elsa.Temporal.Common to .netstandard2.1 only

* Update docker files to use net6.0 SDK

* Fix docker poor performance on arm64

* Update Elsa.sln

* Update Elsa.Activities.RabbitMq.csproj

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
Co-authored-by: Mohamed Ali <antivirus.cs@gmail.com>
2021-12-26 22:31:35 +01:00
Sipke Schoorstra 0dd7575a75 Update docker files 2021-12-23 11:12:08 +01:00
Sipke Schoorstra 0b98dca4bf Update docker-compose.yaml
Fixes #2623
2021-12-23 10:38:15 +01:00
Sipke Schoorstra 9307df687c Fix monolith dockerfile 2021-11-22 22:38:34 +01:00
Sipke Schoorstra 3e7bd44d01 Fix Dockerfiles 2021-11-22 22:16:54 +01:00
Sipke Schoorstra 0df2269df5 Fix Dockerfiles to apply custom Nuget.Config 2021-11-22 22:03:44 +01:00
Sipke Schoorstra d1b0465b0d Fix docker readme + compose file 2021-08-24 11:52:45 +02:00
Jens Willmer 3e298413a0
Speed up docker build for dashboard (#1287)
* speed up docker build for dashboard

* Revert stencil.config

* Update docker files

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
2021-07-20 13:44:35 +02:00
Sipke Schoorstra fbd0d45f53 Update docker files to target specific framework 2021-06-14 15:41:43 +02:00
Sipke Schoorstra 1b9e8078e3 Update Dockerfile-elsa-dashboard 2021-06-03 16:12:08 +02:00
Sipke Schoorstra 7ae29a4c24 Update docker files 2021-05-15 11:59:57 +02:00
Sipke Schoorstra f02ec47109 Add elsa server docker GH workflow 2021-05-14 13:59:28 +02:00
Sipke Schoorstra 32043acb59 Add Elsa Dashboard project + dockerfile
Fixes #981
2021-05-14 12:34:51 +02:00
Sipke Schoorstra 1fd1501a6d Update Dockerfile-with-npm 2021-04-27 13:54:48 +02:00
Jens Willmer 91bf6b43bc
Docker changes to speed up github build 2021-04-16 16:23:26 +02:00
Jens Willmer a084fa4bf4 NPM install 2021-04-15 18:45:04 +02:00
Jens Willmer 7eb908459d Revert back to .NET Core 5 and include docker build in dashboard
Debugging support of docker container is not working on .NET 6 (preview)
2021-04-15 18:45:04 +02:00
Jens Willmer 184c96043f
.NET 6.0 update for docker build 2021-04-14 14:29:24 +02:00
Jens Willmer 3e386d0529
Switch docker build to AspNetCore.Monolith 2021-04-14 11:29:22 +02:00
Jens Willmer 762c220889
Update docker-compose.yaml 2021-04-06 13:48:05 +02:00
Jens Willmer a2916d86c4
Update Dockerfile 2021-04-05 18:17:59 +02:00
Jens Willmer 78b210cda9 Refactored docker build scripts 2021-03-31 21:47:57 +02:00
Sipke Schoorstra cb05f36919 Add docker files for ElsaDashboard.Samples.Monolith app 2021-03-17 22:13:05 +01:00