-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial commit * advanced example * inline docs * js examples * rename * external images * wip * dotnet reaction sdk * wip * examples * wip * wip * packaging * error handling * wip * license headers * wip * readme * wip * wip * Update default-reaction-providers.yaml * nit * enum validation
- Loading branch information
1 parent
44a2329
commit cd2f793
Showing
20 changed files
with
976 additions
and
319 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
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 |
---|---|---|
@@ -1,37 +1,11 @@ | ||
# Copyright 2024 The Drasi Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. | ||
|
||
FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/aspnet@sha256:22414f335b79654fb42257326e7f17f18edf8f912578fc33a55c5dd609bd022e AS base | ||
# mcr.microsoft.com/dotnet/aspnet:6.0 | ||
WORKDIR /app | ||
EXPOSE 80 | ||
|
||
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk@sha256:6df1177e48b55272316d08f19cb383483af82aca5cdc67a76c414bc200847624 AS build | ||
# mcr.microsoft.com/dotnet/sdk:6.0 | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0 AS build | ||
ARG BUILD_CONFIGURATION=Release | ||
WORKDIR /src | ||
COPY ["storagequeue-reaction.csproj", "."] | ||
RUN dotnet restore "./storagequeue-reaction.csproj" | ||
COPY . . | ||
WORKDIR "/src/." | ||
RUN dotnet build "storagequeue-reaction.csproj" -c Release -o /app/build | ||
|
||
FROM build AS publish | ||
RUN dotnet publish "storagequeue-reaction.csproj" -c Release -o /app/publish /p:UseAppHost=false | ||
RUN dotnet restore | ||
RUN dotnet build -c $BUILD_CONFIGURATION -o /app/build | ||
|
||
FROM base AS final | ||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-cbl-mariner2.0 AS final | ||
WORKDIR /app | ||
COPY --from=publish /app/publish . | ||
ENTRYPOINT ["dotnet", "storagequeue-reaction.dll"] | ||
COPY --from=build /app/build . | ||
ENTRYPOINT ["/app/storagequeue-reaction"] |
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
53 changes: 0 additions & 53 deletions
53
reactions/azure/storagequeue-reaction/Models/ChangeNotification.cs
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
using System.Text.Json; | ||
|
||
namespace Drasi.Reactions.StorageQueue.Models.Unpacked; | ||
|
||
public static class ModelOptions | ||
{ | ||
public static JsonSerializerOptions JsonOptions => Converter.Settings; | ||
} |
Oops, something went wrong.