add AspNetCore interop server

pull/18070/head
Jan Tattermusch 6 years ago
parent b9df683516
commit cfc2156665
  1. 20
      templates/tools/dockerfile/interoptest/grpc_interop_aspnetcore/Dockerfile.template
  2. 31
      templates/tools/dockerfile/interoptest/grpc_interop_aspnetcore/build_interop.sh.template
  3. 18
      tools/dockerfile/interoptest/grpc_interop_aspnetcore/Dockerfile
  4. 29
      tools/dockerfile/interoptest/grpc_interop_aspnetcore/build_interop.sh
  5. 8
      tools/run_tests/dockerize/build_interop_image.sh

@ -0,0 +1,20 @@
%YAML 1.2
--- |
# Copyright 2017 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:3.0.100-preview2-sdk-stretch
# Define the default command.
CMD ["bash"]

@ -0,0 +1,31 @@
%YAML 1.2
--- |
#!/bin/bash
# Copyright 2017 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.
#
# Builds Grpc.AspNetCore.Server interop server in a base image.
set -e
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc-dotnet /var/local/git/grpc-dotnet
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc-dotnet
./build/get-grpc.sh
cd testassets/InteropTestsWebsite
dotnet build --configuration Debug

@ -0,0 +1,18 @@
# Copyright 2017 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:3.0.100-preview2-sdk-stretch
# Define the default command.
CMD ["bash"]

@ -0,0 +1,29 @@
#!/bin/bash
# Copyright 2017 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.
#
# Builds Grpc.AspNetCore.Server interop server in a base image.
set -e
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc-dotnet /var/local/git/grpc-dotnet
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc-dotnet
./build/get-grpc.sh
cd testassets/InteropTestsWebsite
dotnet build --configuration Debug

@ -64,6 +64,14 @@ else
echo "WARNING: grpc-node not found, it won't be mounted to the docker container."
fi
echo "GRPC_DOTNET_ROOT: ${GRPC_DOTNET_ROOT:=$(cd ../grpc-dotnet && pwd)}"
if [ -n "$GRPC_DOTNET_ROOT" ]
then
MOUNT_ARGS+=" -v $GRPC_DOTNET_ROOT:/var/local/jenkins/grpc-dotnet:ro"
else
echo "WARNING: grpc-dotnet not found, it won't be mounted to the docker container."
fi
# Mount service account dir if available.
# If service_directory does not contain the service account JSON file,
# some of the tests will fail.

Loading…
Cancel
Save