attempt to add alpine C# distribtest

pull/18697/head
Jan Tattermusch 6 years ago
parent c25e0b677f
commit 0040bb9353
  1. 2
      test/distrib/csharp/DistribTest/DistribTestDotNet.csproj
  2. 17
      test/distrib/csharp/run_distrib_test_dotnetcli.sh
  3. 24
      tools/dockerfile/distribtest/csharp_alpine_x64/Dockerfile
  4. 1
      tools/run_tests/artifacts/distribtest_targets.py

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>netcoreapp1.0;net45</TargetFrameworks>
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>

@ -28,19 +28,24 @@ cd DistribTest
dotnet restore DistribTestDotNet.csproj
dotnet build DistribTestDotNet.csproj
dotnet publish -f netcoreapp1.0 DistribTestDotNet.csproj
dotnet publish -f net45 DistribTestDotNet.csproj
dotnet publish -f netcoreapp2.1 DistribTestDotNet.csproj
#dotnet publish -f net45 DistribTestDotNet.csproj
ls -R bin
#ldd /root/.nuget/packages/grpc.core/*/lib/netstandard1.5/../../runtimes/linux/native/libgrpc_csharp_ext.x64.so
#ldd /root/.nuget/packages/grpc.tools/*/tools/linux_x64/grpc_csharp_plugin
#exit 1
# .NET 4.5 target after dotnet build
mono bin/Debug/net45/publish/DistribTestDotNet.exe
#mono bin/Debug/net45/publish/DistribTestDotNet.exe
# .NET 4.5 target after dotnet publish
mono bin/Debug/net45/publish/DistribTestDotNet.exe
#mono bin/Debug/net45/publish/DistribTestDotNet.exe
# .NET Core target after dotnet build
dotnet exec bin/Debug/netcoreapp1.0/DistribTestDotNet.dll
dotnet exec bin/Debug/netcoreapp2.1/DistribTestDotNet.dll
# .NET Core target after dotnet publish
dotnet exec bin/Debug/netcoreapp1.0/publish/DistribTestDotNet.dll
dotnet exec bin/Debug/netcoreapp2.1/publish/DistribTestDotNet.dll

@ -0,0 +1,24 @@
# Copyright 2015 gRPC 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.
FROM microsoft/dotnet:2.1-sdk-alpine
RUN apk update && apk add bash
RUN apk update && apk add unzip
# needed to satisfy the "ld-linux-x86-64.so.2" dependency
RUN apk add libc6-compat
#RUN apk add libnsl
#RUN cp /usr/lib/libnsl.so.2 /usr/lib/libnsl.so.1

@ -309,6 +309,7 @@ def targets():
CSharpDistribTest('linux', 'x64', 'ubuntu1404'),
CSharpDistribTest('linux', 'x64', 'ubuntu1604'),
CSharpDistribTest('linux', 'x64', 'ubuntu1404', use_dotnet_cli=True),
CSharpDistribTest('linux', 'x64', 'alpine', use_dotnet_cli=True),
CSharpDistribTest('macos', 'x86'),
CSharpDistribTest('windows', 'x86'),
CSharpDistribTest('windows', 'x64'),

Loading…
Cancel
Save