Skip to content

Commit

Permalink
Merge pull request #7 from Azure/mono
Browse files Browse the repository at this point in the history
Create mono repo from existing submodules
  • Loading branch information
marcschier authored Jul 23, 2019
2 parents 050718f + 3b13a66 commit c070296
Show file tree
Hide file tree
Showing 2,953 changed files with 628,212 additions and 878 deletions.
305 changes: 241 additions & 64 deletions .editorconfig

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
/src/Logs
/_tmpout/**
/TestResults/**
/**/TestResults/**
/**/swagger/*.json
/**/packages/**
.env
Expand Down
21 changes: 0 additions & 21 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion api
Submodule api deleted from 45fb25
10 changes: 10 additions & 0 deletions api/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.dockerignore
.env
.git
.gitignore
.vs
.vscode
docker-compose.yml
docker-compose.*.yml
*/bin
*/obj
7 changes: 7 additions & 0 deletions api/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project>
<Import Project="project.props" />
<Import Project="common.props" />
<Import Project="version.props" />
<Import Project="$([MSBuild]::GetPathOfFileAbove(root.props))" Condition="'$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), root.props))' != ''" />
<Import Project="packages.props" />
</Project>
25 changes: 25 additions & 0 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM microsoft/dotnet:2.2-runtime AS base
WORKDIR /app

FROM microsoft/dotnet:2.2-sdk AS build
WORKDIR /src
COPY src/Microsoft.Azure.IIoT.OpcUa.Api/cli/Microsoft.Azure.IIoT.OpcUa.Api.Cli.csproj src/Microsoft.Azure.IIoT.OpcUa.Api/cli/
COPY src/Microsoft.Azure.IIoT.OpcUa.Api/src/Microsoft.Azure.IIoT.OpcUa.Api.csproj src/Microsoft.Azure.IIoT.OpcUa.Api/src/
COPY src/Microsoft.Azure.IIoT.OpcUa.Api.Registry/src/Microsoft.Azure.IIoT.OpcUa.Api.Registry.csproj src/Microsoft.Azure.IIoT.OpcUa.Api.Registry/src/
COPY src/Microsoft.Azure.IIoT.OpcUa.Api.Twin/src/Microsoft.Azure.IIoT.OpcUa.Api.Twin.csproj src/Microsoft.Azure.IIoT.OpcUa.Api.Twin/src/
COPY src/Microsoft.Azure.IIoT.OpcUa.Api.History/src/Microsoft.Azure.IIoT.OpcUa.Api.History.csproj src/Microsoft.Azure.IIoT.OpcUa.Api.History/src/
COPY NuGet.Config NuGet.Config
COPY *.props /
RUN dotnet restore --configfile NuGet.Config src/Microsoft.Azure.IIoT.OpcUa.Api/cli/Microsoft.Azure.IIoT.OpcUa.Api.Cli.csproj
COPY . .
WORKDIR /src/src/Microsoft.Azure.IIoT.OpcUa.Api/cli
RUN dotnet build Microsoft.Azure.IIoT.OpcUa.Api.Cli.csproj -c Release -o /app

FROM build AS publish
RUN dotnet publish Microsoft.Azure.IIoT.OpcUa.Api.Cli.csproj -c Release -o /app

FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENV _HOST=host.docker.internal
ENTRYPOINT ["dotnet", "Microsoft.Azure.IIoT.OpcUa.Api.Cli.dll"]
7 changes: 7 additions & 0 deletions api/NuGet.Config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nugetv3" value="https://api.nuget.org/v3/index.json" />
<add key="myget" value="https://www.myget.org/F/azureiiot/api/v3/index.json" />
</packageSources>
</configuration>
17 changes: 17 additions & 0 deletions api/common.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Project>
<PropertyGroup>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<NoWarn>NU5125</NoWarn>
<Authors>Microsoft</Authors>
<Company>Microsoft</Company>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<PackageIconUrl>http://go.microsoft.com/fwlink/?LinkID=288890</PackageIconUrl>
<PackageReleaseNotes>$(RepositoryUrl)/releases</PackageReleaseNotes>
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<HighEntropyVA>true</HighEntropyVA>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NeutralLanguage>en-US</NeutralLanguage>
<LangVersion>7.3</LangVersion>
</PropertyGroup>
</Project>
Loading

0 comments on commit c070296

Please sign in to comment.