Scripts changes to accomodate centos builds.

Does not contain changes to actually build CLI on centos.
This commit is contained in:
Sridhar Periyasamy 2015-12-15 18:15:31 -08:00
parent d17dff0647
commit 67ad2a8fab
6 changed files with 32 additions and 16 deletions

View file

@ -4,21 +4,26 @@
#
# Dockerfile that creates a container suitable to build dotnet-cli
FROM debian:jessie
FROM ubuntu:14.04
# This could become a "microsoft/coreclr" image, since it just installs the dependencies for CoreCLR (and stdlib)
# Install CoreCLR dependencies
# Install CoreCLR and CoreFx dependencies
RUN apt-get update && \
apt-get -qqy install unzip curl libicu-dev libunwind8 gettext libssl-dev libcurl3-gnutls zlib1g
apt-get -qqy install unzip curl libicu-dev libunwind8 gettext libssl-dev libcurl3-gnutls zlib1g liblttng-ust-dev lldb-3.6-dev lldb-3.6
# Install Dotnet CLI dependencies.
# clang is required for dotnet-compile-native
RUN apt-get -qqy install clang-3.5
# Install Build Prereqs
RUN echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.6 main" | tee /etc/apt/sources.list.d/llvm.list && \
curl http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add - && \
apt-get update && \
apt-get install -y debhelper build-essential devscripts git liblttng-ust-dev lldb-3.6-dev lldb-3.6 clang cmake
apt-get install -y debhelper build-essential devscripts git cmake
# Use clang as c++ compiler
RUN update-alternatives --set c++ /usr/bin/clang++
RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-3.5 100
RUN update-alternatives --set c++ /usr/bin/clang++-3.5
# Install azure cli. We need this to publish artifacts.
RUN apt-get -y install nodejs-legacy && \