-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add the common example python csharp
- Loading branch information
1 parent
804186b
commit 1d56c26
Showing
9 changed files
with
554 additions
and
213 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. | ||
|
||
|
||
FROM mcr.microsoft.com/dotnet/runtime:6.0 AS base | ||
#ARG TNAME="ArmoniK.Samples.SubTasking.Client" TPATH="SubTasking/Client/" | ||
|
||
WORKDIR /app | ||
|
||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build | ||
WORKDIR /src | ||
COPY ["SubTasking/Client/ArmoniK.Samples.SubTasking.Client.csproj", "SubTasking/Client/"] | ||
RUN dotnet restore "SubTasking/Client/ArmoniK.Samples.SubTasking.Client.csproj" | ||
COPY ["DynamicSubmission/Client/ArmoniK.Samples.DynamicSubmission.Client.csproj", "DynamicSubmission/Client/"] | ||
RUN dotnet restore "DynamicSubmission/Client/ArmoniK.Samples.DynamicSubmission.Client.csproj" | ||
COPY . . | ||
WORKDIR "/src/SubTasking/Client/" | ||
RUN dotnet build "ArmoniK.Samples.SubTasking.Client.csproj" -c Release -o /app/build | ||
WORKDIR "/src/DynamicSubmission/Client/" | ||
RUN dotnet build "ArmoniK.Samples.DynamicSubmission.Client.csproj" -c Release -o /app/build | ||
|
||
FROM build AS publish | ||
RUN dotnet publish "ArmoniK.Samples.SubTasking.Client.csproj" -c Release -o /app/publish /p:UseAppHost=false | ||
RUN dotnet publish "ArmoniK.Samples.DynamicSubmission.Client.csproj" -c Release -o /app/publish /p:UseAppHost=false | ||
|
||
FROM base AS final | ||
WORKDIR /app | ||
COPY --from=publish /app/publish . | ||
ENTRYPOINT ["dotnet", "ArmoniK.Samples.SubTasking.Client.dll"] | ||
ENTRYPOINT ["dotnet", "ArmoniK.Samples.DynamicSubmission.Client.dll"] |
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
18 changes: 18 additions & 0 deletions
18
csharp/native/DynamicSubmission/Common/ArmoniK.Samples.DynamicSubmission.Common.csproj
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,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="ArmoniK.Api.Client" Version="3.17.1" /> | ||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" /> | ||
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" /> | ||
<PackageReference Include="System.Linq" Version="4.3.0" /> | ||
<PackageReference Include="System.Threading" Version="4.3.0" /> | ||
<PackageReference Include="System.Threading.Tasks" Version="4.3.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.