From 0efc48a11aeaea633dbd7c977e7a037318e2a40c Mon Sep 17 00:00:00 2001 From: Raymond Yang Date: Mon, 14 Jan 2019 17:51:45 -0800 Subject: [PATCH] Install dotnet sdk on linux ci (#320) * Try install dotnet sdk on linux ci * Fix install script * Add configurable os version in docker build script * Avoid use ARG in docker --- .../github/linux/docker/scripts/install_ubuntu.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/ci_build/github/linux/docker/scripts/install_ubuntu.sh b/tools/ci_build/github/linux/docker/scripts/install_ubuntu.sh index 3705834ee2..9eb918284b 100755 --- a/tools/ci_build/github/linux/docker/scripts/install_ubuntu.sh +++ b/tools/ci_build/github/linux/docker/scripts/install_ubuntu.sh @@ -8,6 +8,7 @@ esac done DEBIAN_FRONTEND=noninteractive + apt-get update && apt-get install -y software-properties-common add-apt-repository ppa:deadsnakes/ppa apt-get update && apt-get install -y --no-install-recommends \ @@ -42,6 +43,14 @@ apt-get update && apt-get install -y --no-install-recommends \ locale-gen en_US.UTF-8 update-locale LANG=en_US.UTF-8 +OS_VER=`lsb_release -r -s` +mkdir -p /tmp/dotnet +aria2c -q -d /tmp/dotnet https://packages.microsoft.com/config/ubuntu/${OS_VER}/packages-microsoft-prod.deb +dpkg -i /tmp/dotnet/packages-microsoft-prod.deb +apt-get update && apt-get install -y apt-transport-https \ + dotnet-sdk-2.2 +rm -rf /tmp/dotnet || true + if [ $PYTHON_VER != "3.5" ]; then apt-get install -y --no-install-recommends \ python${PYTHON_VER} \