forked from dotnet/installer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable docker support for centos builds
- Added an option '--buildindocker <osname>' to build.sh - Fixed bug which caused packaging to be skipped by default. - Fixed bug which caused tarballs to be generated twice. - Fixed bug to propagate build params(like debug, nopackage) to docker build.
- Loading branch information
1 parent
fee3785
commit 5155aa6
Showing
10 changed files
with
93 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# | ||
# Copyright (c) .NET Foundation and contributors. All rights reserved. | ||
# Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
# | ||
|
||
# Dockerfile that creates a container suitable to build dotnet-cli | ||
FROM centos:7.1.1503 | ||
|
||
RUN yum -q -y install deltarpm | ||
RUN yum -q -y install epel-release | ||
# RUN yum -y update | ||
|
||
# This could become a "microsoft/coreclr" image, since it just installs the dependencies for CoreCLR (and stdlib) | ||
# Install CoreCLR and CoreFx dependencies | ||
RUN yum -q -y install unzip libunwind gettext libcurl-devel openssl-devel zlib libicu-devel | ||
|
||
# RUN apt-get update && \ | ||
# 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 Build Prereqs | ||
RUN yum -q -y install tar git cmake clang make | ||
|
||
# Use clang as c++ compiler | ||
RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100 | ||
RUN update-alternatives --set c++ /usr/bin/clang++ | ||
|
||
# Install azure cli. We need this to publish artifacts. | ||
RUN yum -y install nodejs && \ | ||
yum -y install npm && \ | ||
npm install -g azure-cli | ||
|
||
|
||
RUN yum -q -y install sudo | ||
|
||
# Setup User to match Host User, and give superuser permissions | ||
ARG USER_ID=0 | ||
RUN useradd -m code_executor -u ${USER_ID} -g root | ||
RUN echo 'code_executor ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
# With the User Change, we need to change permssions on these directories | ||
RUN chmod -R a+rwx /usr/local | ||
RUN chmod -R a+rwx /home | ||
RUN chmod -R 755 /usr/bin/sudo | ||
|
||
# Set user to the one we just created | ||
USER ${USER_ID} | ||
|
||
# Set working directory | ||
WORKDIR /opt/code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters