1ffe3c632Sopenharmony_ciFROM debian:stretch
2ffe3c632Sopenharmony_ci
3ffe3c632Sopenharmony_ci# Install dependencies.  We start with the basic ones require to build protoc
4ffe3c632Sopenharmony_ci# and the C++ build
5ffe3c632Sopenharmony_ciRUN apt-get update && apt-get install -y \
6ffe3c632Sopenharmony_ci  autoconf \
7ffe3c632Sopenharmony_ci  autotools-dev \
8ffe3c632Sopenharmony_ci  build-essential \
9ffe3c632Sopenharmony_ci  bzip2 \
10ffe3c632Sopenharmony_ci  ccache \
11ffe3c632Sopenharmony_ci  curl \
12ffe3c632Sopenharmony_ci  gcc \
13ffe3c632Sopenharmony_ci  git \
14ffe3c632Sopenharmony_ci  libc6 \
15ffe3c632Sopenharmony_ci  libc6-dbg \
16ffe3c632Sopenharmony_ci  libc6-dev \
17ffe3c632Sopenharmony_ci  libgtest-dev \
18ffe3c632Sopenharmony_ci  libtool \
19ffe3c632Sopenharmony_ci  make \
20ffe3c632Sopenharmony_ci  parallel \
21ffe3c632Sopenharmony_ci  time \
22ffe3c632Sopenharmony_ci  wget \
23ffe3c632Sopenharmony_ci  && apt-get clean
24ffe3c632Sopenharmony_ci
25ffe3c632Sopenharmony_ci# dotnet SDK prerequisites
26ffe3c632Sopenharmony_ciRUN apt-get update && apt-get install -y libunwind8 libicu57 && apt-get clean
27ffe3c632Sopenharmony_ci
28ffe3c632Sopenharmony_ci# Install dotnet SDK via install script
29ffe3c632Sopenharmony_ciRUN wget -q https://dot.net/v1/dotnet-install.sh && \
30ffe3c632Sopenharmony_ci    chmod u+x dotnet-install.sh && \
31ffe3c632Sopenharmony_ci    ./dotnet-install.sh --version 2.1.802 && \
32ffe3c632Sopenharmony_ci    ./dotnet-install.sh --version 3.1.301 && \
33ffe3c632Sopenharmony_ci    ln -s /root/.dotnet/dotnet /usr/local/bin
34ffe3c632Sopenharmony_ci
35ffe3c632Sopenharmony_ciRUN wget -q www.nuget.org/NuGet.exe -O /usr/local/bin/nuget.exe
36ffe3c632Sopenharmony_ci
37ffe3c632Sopenharmony_ciENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE true
38