Commit graph

62 commits

Author SHA1 Message Date
Tanner Gooding
a8856ddccc Merge remote-tracking branch 'dotnet/release/2.1.2xx' into merges/release/2.1.2xx-to-release/2.1.3xx 2018-05-03 15:24:39 -07:00
Livar Cunha
9b68d55059 Moving the opensuse 43.2 docker file to the right folder. 2018-03-30 13:24:07 -07:00
Livar Cunha
6600612b9e Adding new docker files for opensuse.42.3, ubuntu.18.04 and fedora.27 and removing the project.json CLI from the build. It was not being used anymore. 2018-03-27 10:24:10 -07:00
kasper3
a30c6a45fb
Remove ncurses dependency 2018-01-02 23:13:54 +02:00
Jan Vorlicek
1a22c5cb58 Cleanup the Dockerfile
Setting a user with admin rights is not needed for Alpine
2017-12-13 12:10:44 +01:00
Jan Vorlicek
1abd2d9209 Enable Alpine 3.6 CLI build
This change enables CLI build for Alpine 3.6 and also adds CI job for
it. It is mostly based on changes that were necessary to
enable building of rhel.6 CLI
2017-12-13 12:10:44 +01:00
William Lee
bf6b5b3773
Use rhel docker image with sudo built in (#8151)
So we do not need to download sudo from the internet everytime we build
2017-12-03 10:15:44 -08:00
Jan Vorlicek
41571303c0 Update CentOS 6 base docker image
This update fixes problem with git not supporting https protocol (which
wasn't affecting cli, but the other repos). The image now has a build of
CURL that supports file:// protocol and so I am removing the workaround
from the Dockerfile.
2017-10-11 19:05:17 +02:00
Jan Vorlicek
ee566157cb Fix RHEL 6 Dockerfile
The new base docker image sets the LD_LIBRARY_PATH to /usr/local/lib
and the yum is not compatible with the special CURL version we build.
This change fixes that by clearing the LD_LIBRARY_PATH for the yum
command invocation.
2017-10-10 11:38:55 +02:00
Jan Vorlicek
68fed641a1 Update CentOS 6 Dockerfile
Replace the base image with an updated one that now contains
clang 3.9 with PGO support and also the new git. So we don't
need to build it here anymore.
2017-10-06 01:37:33 +02:00
Jan Vorlicek
277789bf16 Add Dockerfile for RHEL 6 builds
This change enables building CLI for RHEL 6 in docker container.
2017-09-26 11:50:50 -07:00
William Li
6164c26938 Remove comment
This is fine
2017-08-10 09:46:02 -07:00
Livar Cunha
cf51d1d30a Merge remote-tracking branch 'dotnet/rel/1.1.0' into merges/rel/1.1.0-to-release/2.0.0-20170718-070022
* dotnet/rel/1.1.0:
  Use docker image for opensuse 13.2 from runtime
  MSBuild 15.3.407
  Updated NuGet to 4.3.0-preview4-4273
2017-07-18 15:54:04 -07:00
William Li
79ff758a43 Use docker image for opensuse 13.2 from runtime 2017-07-18 14:25:45 -07:00
Livar Cunha
8c45238a1f Merge remote-tracking branch 'dotnet/rel/1.1.0' into merges/rel/1.1.0-to-release/2.0.0-20170710-070025
* dotnet/rel/1.1.0:
  Enable VB dotnet new  test cases
  Fix fedora.23 dockerfile
  Updating the ReadMe: "rel-1.0.1" to "rel-1.1.0"
  Update Roslyn to 2.3.0-beta4-61830-03
  update nuget to 4.3.0-preview4-4258
2017-07-10 09:52:28 -07:00
William Li
e8cb581990 Fix fedora.23 dockerfile
Use existing docker image to reduce error from extra dependency.

Append CLI specific packages
2017-07-07 17:11:24 -07:00
William Li
3419a87d6f Produce RPM packages
Reference from https://github.com/dotnet/core-setup/tree/master/src/pkg/packaging/rpm

The goal is to have parity with Debian,
but does not publish to the feed

When run the script with rhel, it will
produce rpm file in the package step
and publish rpm to the blob storage
2017-06-13 15:00:35 -07:00
Eric Erhardt
916a19c493 Add support for Fedora 24, OpenSUSE 42.1 and Ubuntu 16.10 2017-02-22 15:13:02 -06:00
Nate Amundson
c3e6994728 Fix yum package conflict in Docker image
When running the CLI builds on the new build agents, the CentOS
build failed with the following error:

2017-01-26T20:39:30.0800810Z Step 4 : RUN yum -q -y install unzip libunwind gettext libcurl-devel openssl-devel zlib libicu-devel
2017-01-26T20:39:30.3020500Z  ---> Running in 97affb106685
2017-01-26T20:39:40.3872390Z Error: libselinux conflicts with fakesystemd-1-17.el7.centos.noarch

Swapping the the "fakesystemd" package with the real "systemd" package
fixed the issue, which was recommended in http://stackoverflow.com/a/36632668.

This issue hasn't been seen on the official builds because the build
agents in that pool have the Docker image cached, and they are using an
older version of the centos:7.1.1503 image which appears not to have
this issue.
2017-01-26 12:47:08 -08:00
Davis Goodin
366ac11702 Update Fedora's NSS to avoid NuGet restore timeout 2016-10-28 15:47:10 -05:00
Jérémie Galarneau
adde6255a9 Removed workaround for https://github.com/docker/docker/issues/20818
This workaround is not needed since the release of Docker 1.11.0 which addresses the underlying issue.
2016-10-18 19:51:43 -04:00
Bryan Thornbury
482a3377ca add deb deps to ubuntu 16 dockerfile 2016-06-14 10:56:08 -07:00
Bryan Thornbury
f75ee876d8 Enable ubuntu16 deb creation and publishing 2016-06-14 02:32:39 -07:00
Eric Erhardt
d4d9653e05 Port @ellismg's debian docker file fix to CLI. 2016-06-03 13:58:33 -05:00
Livar Cunha
bb034b325e Also updating the ubuntu16.04 dockerfile to remove the llvm dependencies 2016-06-02 14:47:35 -07:00
Livar Cunha
cc6c22c01f Fix an error in the fedora23 dockerfile where we added findutils after the && when invoking dnf. That caused findutils to be invoked instead of installed. 2016-06-02 14:39:33 -07:00
Bryan Thornbury
06047ee413 Update only the ubuntu.14.04 dockerfile from https://github.com/dotnet/core-setup/pull/58 2016-06-01 18:06:37 -07:00
Livar Cunha
7652335195 Addressing code review comments and adding opensuse 13.2 2016-05-31 15:15:57 -07:00
Livar Cunha
7963018d3d Small changes that I noticed when diffing the files 2016-05-31 15:15:08 -07:00
Livar Cunha
e634fedae8 Adding Fedora 23 2016-05-31 15:15:08 -07:00
Livar Cunha
84d1b60ffe Adding docker files, modifying scripts and code to handle ubuntu 16.04 2016-05-31 15:15:08 -07:00
MichaelSimons
e10e8c9cac Initial changes to support building on Debian 2016-04-12 18:44:54 -05:00
Sridhar Periyasamy
c85cf24677 Fix docker build breaks in centos. 2016-03-09 17:28:22 -08:00
Sridhar Periyasamy
56b1b829cf Fix centos build break when building using Docker
`glibc-devel` to enable corehost compliation.
2016-03-09 15:51:57 -08:00
Sridhar Periyasamy
53dd5f4a23 Address more PR feedback
- Add libssl-dev dependency to DockerFile, because the package upgrade test still depend on this. It can be removed once a newer package without libssl-dev dependency is uploaded.
- Check pre-reqs in the package script.
2016-03-09 20:15:06 +00:00
Sridhar Periyasamy
b99e40bfab Address PR feedback and remove Azure CLI from dockerfiles
We no longer need Azure CLI since publish is now via C#.
2016-03-08 18:46:54 -08:00
Bryan
ade5479196 Update CoreCLR & Corefx dependencies based on ldd method.
Use a hardcoded list for ubuntu and slight refactoring for cleaner targets
code.
2016-02-24 16:59:26 -08:00
Bryan Thornbury
6d8b622451 Add Conditional Target capabilities to the build scripts
Make Attribute properties immutable

PR Feedback, bugfixes

PR Feedback
2016-02-24 16:55:11 -08:00
Andrew Stanton-Nurse
d524732bbb working on build scripts 2016-02-12 15:26:35 -08:00
Bryan
7011f9e604 update everything to DOTNET_CLI_VERSION
Some package_tool fixes
2016-01-13 02:22:53 -08:00
Sridhar Periyasamy
5155aa61d7 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.
2016-01-07 18:50:00 -08:00
Piotr Puszkiewicz
e91db7dce1 Eliminate dead code and most relative paths 2015-12-29 02:34:10 -08:00
Piotr Puszkiewicz
4b217db9c0 Clean up build scripts
Decompose into self-contained granular components
Provide reasonable defaults for cross cutting concerns, allowing for independent execution of steps
Start unifying Windows/Bash architecture

fix Bash CI scripts

dockerbuild.sh _common.sh path

Add missing restore-packages.sh

Copy/paste issues

Quote $SOURCE
fix .gitignore

PR Feedback

Merge in @SridarMS's work to avoid redownloading DNX

enabling build of dotnet-build

merge in @SridharMS's CentOS changes

Enable building FSC

enable restoring specific subdirectories

Fix dnx version check

Add missed dependency

Fix pathing to tests

Match Linux build version to Windows, fixing linux tests as a side effect.

workaround for coreclr#2215

fix pathing issue

disable building in docker

BUILD_IN_DOCKER was set, somehow...

fix headers
2015-12-29 01:59:02 -08:00
Sridhar Periyasamy
67ad2a8fab Scripts changes to accomodate centos builds.
Does not contain changes to actually build CLI on centos.
2015-12-15 18:15:31 -08:00
Bryan Thornbury
c2d04d51b1 Changes to propagate errors in package build. 2015-12-02 22:11:31 +00:00
Sridhar Periyasamy
4c29fcbb03 Update Dockerfile
Create home folder for the user. Required by azure CLI.
2015-12-01 11:23:13 -08:00
Bryan Thornbury
b122190cd8 Set Docker Internal UID to Host UID, Remove Postbuild step
These changes will use docker's new Dockerfile Arguments to
pass the Host User ID to the docker container at build time.
This allows the docker container to set it's internal user
to match that of the host. When using shared volumes between
the host and container, this prevents files created in the
container from being owned by root.

This will solve our problem of needing a cleanup step after
every ubuntu CI run.
2015-11-25 00:33:53 +00:00
PiotrP
e839b4debb Update Copyright headers in all source files. 2015-11-16 19:47:43 -08:00
Bryan
ee7b242d29 Remove set -e, this can easily cause the machine to get into an inconsistent state 2015-11-16 15:54:22 -08:00
Bryan
d2cb2ce76a Remove docker container cleanup. This should be handled in dockerbuild now. 2015-11-16 15:53:05 -08:00