Merge pull request #3278 from livarcocc/ubuntu1604
Adding Ubuntu 16.04 and Fedora 23
This commit is contained in:
commit
80d3476fd1
66 changed files with 528 additions and 79 deletions
|
@ -54,8 +54,16 @@ Publish\ the\ application\ for\ a\ given\ framework\ identifier\ (FID).\ If\ not
|
||||||
Publish\ the\ application\ for\ a\ given\ runtime.\ If\ the\ option\ is\ not\ specified,\ the\ command\ will\ default\ to\ the\ runtime\ for\ the\ current\ operationg\ system.\ Supported\ values\ for\ the\ option\ at\ this\ time\ are:
|
Publish\ the\ application\ for\ a\ given\ runtime.\ If\ the\ option\ is\ not\ specified,\ the\ command\ will\ default\ to\ the\ runtime\ for\ the\ current\ operationg\ system.\ Supported\ values\ for\ the\ option\ at\ this\ time\ are:
|
||||||
|
|
||||||
\ \ \ \ *\ ubuntu.14.04\-x64
|
\ \ \ \ *\ ubuntu.14.04\-x64
|
||||||
|
\ \ \ \ *\ ubuntu.16.04\-x64
|
||||||
\ \ \ \ *\ win7\-x64
|
\ \ \ \ *\ win7\-x64
|
||||||
|
\ \ \ \ *\ win7\-x86
|
||||||
\ \ \ \ *\ osx.10.10\-x64
|
\ \ \ \ *\ osx.10.10\-x64
|
||||||
|
\ \ \ \ *\ osx.10.11\-x64
|
||||||
|
\ \ \ \ *\ centos.7\-x64
|
||||||
|
\ \ \ \ *\ rhel.7.2\-x64
|
||||||
|
\ \ \ \ *\ debian.8\-x64
|
||||||
|
\ \ \ \ *\ fedora.23\-x64
|
||||||
|
\ \ \ \ *\ opensuse.13.2\-x64
|
||||||
\f[]
|
\f[]
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
|
|
|
@ -50,12 +50,19 @@ Ubuntu Installers
|
||||||
|
|
||||||
*Our Debian packages are put together slightly differently than the other OS specific installers. Instead of combining everything, we have three separate component packages that depend on each other. If you're installing these directly from the .deb files (via dpkg or similar), then you'll need to install them in the order presented below.*
|
*Our Debian packages are put together slightly differently than the other OS specific installers. Instead of combining everything, we have three separate component packages that depend on each other. If you're installing these directly from the .deb files (via dpkg or similar), then you'll need to install them in the order presented below.*
|
||||||
|
|
||||||
|
**For Ubuntu 14.04
|
||||||
|
|
||||||
| |Version |Installers|
|
| |Version |Installers|
|
||||||
|---------|:------:|:------:|:------:|
|
|---------|:------:|:------:|:------:|
|
||||||
|**Shared Host**|[](https://dotnetcli.blob.core.windows.net/dotnet/preview/dnvm/latest.ubuntu.x64.version)|[Download](https://dotnetcli.blob.core.windows.net/dotnet/preview/Installers/Latest/dotnet-host-ubuntu-x64.latest.deb)|[Download](https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/Latest/dotnet-dev-ubuntu-x64.latest.tar.gz)|
|
|**Shared Host**|[](https://dotnetcli.blob.core.windows.net/dotnet/preview/dnvm/latest.ubuntu.x64.version)|[Download](https://dotnetcli.blob.core.windows.net/dotnet/preview/Installers/Latest/dotnet-host-ubuntu-x64.latest.deb)|[Download](https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/Latest/dotnet-dev-ubuntu-x64.latest.tar.gz)|
|
||||||
|**Shared Framework**|[](https://dotnetcli.blob.core.windows.net/dotnet/preview/dnvm/latest.ubuntu.x64.version)|[Download](https://dotnetcli.blob.core.windows.net/dotnet/preview/Installers/Latest/dotnet-sharedframework-ubuntu-x64.latest.deb)|[Download](https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/Latest/dotnet-ubuntu-x64.latest.tar.gz)|
|
|**Shared Framework**|[](https://dotnetcli.blob.core.windows.net/dotnet/preview/dnvm/latest.ubuntu.x64.version)|[Download](https://dotnetcli.blob.core.windows.net/dotnet/preview/Installers/Latest/dotnet-sharedframework-ubuntu-x64.latest.deb)|[Download](https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/Latest/dotnet-ubuntu-x64.latest.tar.gz)|
|
||||||
|**Sdk**|[](https://dotnetcli.blob.core.windows.net/dotnet/preview/dnvm/latest.ubuntu.x64.version)|[Download](https://dotnetcli.blob.core.windows.net/dotnet/preview/Installers/Latest/dotnet-sdk-ubuntu-x64.latest.deb)|[Download](https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/Latest/dotnet-dev-ubuntu-x64.latest.tar.gz)|
|
|**Sdk**|[](https://dotnetcli.blob.core.windows.net/dotnet/preview/dnvm/latest.ubuntu.x64.version)|[Download](https://dotnetcli.blob.core.windows.net/dotnet/preview/Installers/Latest/dotnet-sdk-ubuntu-x64.latest.deb)|[Download](https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/Latest/dotnet-dev-ubuntu-x64.latest.tar.gz)|
|
||||||
|
|
||||||
|
Interested in .NET Core + ASP.NET Core 1.0 RC1 bits?
|
||||||
|
----------------------------------------------------
|
||||||
|
|
||||||
|
This toolchain is independent from the DNX-based .NET Core + ASP.NET Core 1.0 RC1 bits. If you are looking for .NET Core + ASP.NET Core 1.0 RC1 bits, you can find instructions on the http://get.asp.net/.
|
||||||
|
>>>>>>> Undoing documentation changes to include ubuntu16.04. Will add it back once we have VSO builds running happily and producing binaries for it.
|
||||||
|
|
||||||
Docker
|
Docker
|
||||||
------
|
------
|
||||||
|
|
|
@ -15,8 +15,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,8 +15,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,9 +15,12 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
},
|
},
|
||||||
"tools": {
|
"tools": {
|
||||||
"dotnet-portable": {
|
"dotnet-portable": {
|
||||||
|
|
|
@ -19,9 +19,12 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
},
|
},
|
||||||
"tools": {
|
"tools": {
|
||||||
"dotnet-portable": {
|
"dotnet-portable": {
|
||||||
|
|
|
@ -19,8 +19,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,8 +15,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,8 +15,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,8 +19,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,8 +22,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,8 +34,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,8 +37,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,8 +38,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,8 +34,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,8 +30,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,8 +15,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,8 +26,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,8 +30,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,8 +30,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,9 +15,12 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
},
|
},
|
||||||
"runtimeOptions": {
|
"runtimeOptions": {
|
||||||
"somethingString": "anything",
|
"somethingString": "anything",
|
||||||
|
|
|
@ -17,8 +17,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,8 +15,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,8 +15,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,8 +22,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,8 +20,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,8 +26,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,9 +15,12 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublish": [
|
"prepublish": [
|
||||||
|
|
|
@ -20,9 +20,12 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublish": [
|
"prepublish": [
|
||||||
|
|
|
@ -19,8 +19,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,8 +15,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,8 +20,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,8 +20,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,8 +25,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,8 +19,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,8 +17,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,8 +15,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,8 +15,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,8 +16,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,8 +19,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,8 +19,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,6 +57,24 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool IsFedora
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
var osname = RuntimeEnvironment.OperatingSystem;
|
||||||
|
return string.Equals(osname, "fedora", StringComparison.OrdinalIgnoreCase);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool IsOpenSuse
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
var osname = RuntimeEnvironment.OperatingSystem;
|
||||||
|
return string.Equals(osname, "opensuse", StringComparison.OrdinalIgnoreCase);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static bool IsUnix
|
public static bool IsUnix
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -78,10 +96,15 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return IsUbuntu || IsCentOS || IsRHEL || IsDebian;
|
return IsUbuntu || IsCentOS || IsRHEL || IsDebian || IsFedora || IsOpenSuse;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool IsPlatform(BuildPlatform platform, string version = null)
|
||||||
|
{
|
||||||
|
return IsPlatform(platform) && (version == null || IsVersion(version));
|
||||||
|
}
|
||||||
|
|
||||||
public static bool IsPlatform(BuildPlatform platform)
|
public static bool IsPlatform(BuildPlatform platform)
|
||||||
{
|
{
|
||||||
switch (platform)
|
switch (platform)
|
||||||
|
@ -98,6 +121,10 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
return IsRHEL;
|
return IsRHEL;
|
||||||
case BuildPlatform.Debian:
|
case BuildPlatform.Debian:
|
||||||
return IsDebian;
|
return IsDebian;
|
||||||
|
case BuildPlatform.Fedora:
|
||||||
|
return IsFedora;
|
||||||
|
case BuildPlatform.OpenSuse:
|
||||||
|
return IsOpenSuse;
|
||||||
case BuildPlatform.Unix:
|
case BuildPlatform.Unix:
|
||||||
return IsUnix;
|
return IsUnix;
|
||||||
case BuildPlatform.Linux:
|
case BuildPlatform.Linux:
|
||||||
|
@ -107,6 +134,11 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool IsVersion(string version)
|
||||||
|
{
|
||||||
|
return RuntimeEnvironment.OperatingSystemVersion.Equals(version, StringComparison.OrdinalIgnoreCase);
|
||||||
|
}
|
||||||
|
|
||||||
private static BuildPlatform DetermineCurrentPlatform()
|
private static BuildPlatform DetermineCurrentPlatform()
|
||||||
{
|
{
|
||||||
if (IsWindows)
|
if (IsWindows)
|
||||||
|
@ -133,6 +165,14 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
{
|
{
|
||||||
return BuildPlatform.Debian;
|
return BuildPlatform.Debian;
|
||||||
}
|
}
|
||||||
|
else if (IsFedora)
|
||||||
|
{
|
||||||
|
return BuildPlatform.Fedora;
|
||||||
|
}
|
||||||
|
else if (IsOpenSuse)
|
||||||
|
{
|
||||||
|
return BuildPlatform.OpenSuse;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return default(BuildPlatform);
|
return default(BuildPlatform);
|
||||||
|
|
|
@ -9,6 +9,8 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
Ubuntu = 5,
|
Ubuntu = 5,
|
||||||
CentOS = 6,
|
CentOS = 6,
|
||||||
RHEL = 7,
|
RHEL = 7,
|
||||||
Debian = 8
|
Debian = 8,
|
||||||
|
Fedora = 9,
|
||||||
|
OpenSuse = 10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
public class BuildPlatformsAttribute : TargetConditionAttribute
|
public class BuildPlatformsAttribute : TargetConditionAttribute
|
||||||
{
|
{
|
||||||
private IEnumerable<BuildPlatform> _buildPlatforms;
|
private IEnumerable<BuildPlatform> _buildPlatforms;
|
||||||
|
private string _version;
|
||||||
|
|
||||||
public BuildPlatformsAttribute(params BuildPlatform[] platforms)
|
public BuildPlatformsAttribute(params BuildPlatform[] platforms)
|
||||||
{
|
{
|
||||||
|
@ -18,11 +19,17 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
_buildPlatforms = platforms;
|
_buildPlatforms = platforms;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public BuildPlatformsAttribute(BuildPlatform platform, string version)
|
||||||
|
{
|
||||||
|
_buildPlatforms = new BuildPlatform[] { platform };
|
||||||
|
_version = version;
|
||||||
|
}
|
||||||
|
|
||||||
public override bool EvaluateCondition()
|
public override bool EvaluateCondition()
|
||||||
{
|
{
|
||||||
foreach (var platform in _buildPlatforms)
|
foreach (var platform in _buildPlatforms)
|
||||||
{
|
{
|
||||||
if (CurrentPlatform.IsPlatform(platform))
|
if (CurrentPlatform.IsPlatform(platform, _version))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,10 +45,13 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
{ "osx.10.10-x64", "osx.10.10-x64" },
|
{ "osx.10.10-x64", "osx.10.10-x64" },
|
||||||
{ "osx.10.11-x64", "osx.10.10-x64" },
|
{ "osx.10.11-x64", "osx.10.10-x64" },
|
||||||
{ "ubuntu.14.04-x64", "ubuntu.14.04-x64" },
|
{ "ubuntu.14.04-x64", "ubuntu.14.04-x64" },
|
||||||
|
{ "ubuntu.16.04-x64", "ubuntu.16.04-x64" },
|
||||||
{ "centos.7-x64", "rhel.7-x64" },
|
{ "centos.7-x64", "rhel.7-x64" },
|
||||||
{ "rhel.7-x64", "rhel.7-x64" },
|
{ "rhel.7-x64", "rhel.7-x64" },
|
||||||
{ "rhel.7.2-x64", "rhel.7-x64" },
|
{ "rhel.7.2-x64", "rhel.7-x64" },
|
||||||
{ "debian.8-x64", "debian.8-x64" }
|
{ "debian.8-x64", "debian.8-x64" },
|
||||||
|
{ "fedora.23-x64", "fedora.23-x64" },
|
||||||
|
{ "opensuse.13.2-x64", "opensuse.13.2-x64" }
|
||||||
};
|
};
|
||||||
|
|
||||||
public const string SharedFrameworkName = "Microsoft.NETCore.App";
|
public const string SharedFrameworkName = "Microsoft.NETCore.App";
|
||||||
|
|
|
@ -13,14 +13,14 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
public class DebTargets
|
public class DebTargets
|
||||||
{
|
{
|
||||||
[Target(nameof(GenerateSdkDeb))]
|
[Target(nameof(GenerateSdkDeb))]
|
||||||
[BuildPlatforms(BuildPlatform.Ubuntu)]
|
[BuildPlatforms(BuildPlatform.Ubuntu, "14.04")]
|
||||||
public static BuildTargetResult GenerateDebs(BuildTargetContext c)
|
public static BuildTargetResult GenerateDebs(BuildTargetContext c)
|
||||||
{
|
{
|
||||||
return c.Success();
|
return c.Success();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Target(nameof(InstallSharedFramework))]
|
[Target(nameof(InstallSharedFramework))]
|
||||||
[BuildPlatforms(BuildPlatform.Ubuntu)]
|
[BuildPlatforms(BuildPlatform.Ubuntu, "14.04")]
|
||||||
public static BuildTargetResult GenerateSdkDeb(BuildTargetContext c)
|
public static BuildTargetResult GenerateSdkDeb(BuildTargetContext c)
|
||||||
{
|
{
|
||||||
var channel = c.BuildContext.Get<string>("Channel").ToLower();
|
var channel = c.BuildContext.Get<string>("Channel").ToLower();
|
||||||
|
@ -61,7 +61,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
[Target(nameof(InstallSDK),
|
[Target(nameof(InstallSDK),
|
||||||
nameof(RunE2ETest),
|
nameof(RunE2ETest),
|
||||||
nameof(RemovePackages))]
|
nameof(RemovePackages))]
|
||||||
[BuildPlatforms(BuildPlatform.Ubuntu)]
|
[BuildPlatforms(BuildPlatform.Ubuntu, "14.04")]
|
||||||
public static BuildTargetResult TestDebInstaller(BuildTargetContext c)
|
public static BuildTargetResult TestDebInstaller(BuildTargetContext c)
|
||||||
{
|
{
|
||||||
return c.Success();
|
return c.Success();
|
||||||
|
@ -92,7 +92,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
}
|
}
|
||||||
|
|
||||||
[Target]
|
[Target]
|
||||||
[BuildPlatforms(BuildPlatform.Ubuntu)]
|
[BuildPlatforms(BuildPlatform.Ubuntu, "14.04")]
|
||||||
public static BuildTargetResult RunE2ETest(BuildTargetContext c)
|
public static BuildTargetResult RunE2ETest(BuildTargetContext c)
|
||||||
{
|
{
|
||||||
Directory.SetCurrentDirectory(Path.Combine(Dirs.RepoRoot, "test", "EndToEnd"));
|
Directory.SetCurrentDirectory(Path.Combine(Dirs.RepoRoot, "test", "EndToEnd"));
|
||||||
|
@ -111,7 +111,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
}
|
}
|
||||||
|
|
||||||
[Target]
|
[Target]
|
||||||
[BuildPlatforms(BuildPlatform.Ubuntu)]
|
[BuildPlatforms(BuildPlatform.Ubuntu, "14.04")]
|
||||||
public static BuildTargetResult RemovePackages(BuildTargetContext c)
|
public static BuildTargetResult RemovePackages(BuildTargetContext c)
|
||||||
{
|
{
|
||||||
IEnumerable<string> orderedPackageNames = new List<string>()
|
IEnumerable<string> orderedPackageNames = new List<string>()
|
||||||
|
|
|
@ -115,7 +115,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
public static BuildTargetResult ExpectedBuildArtifacts(BuildTargetContext c)
|
public static BuildTargetResult ExpectedBuildArtifacts(BuildTargetContext c)
|
||||||
{
|
{
|
||||||
var config = Environment.GetEnvironmentVariable("CONFIGURATION");
|
var config = Environment.GetEnvironmentVariable("CONFIGURATION");
|
||||||
var versionBadgeName = $"{CurrentPlatform.Current}_{CurrentArchitecture.Current}_{config}_version_badge.svg";
|
var versionBadgeName = $"{Monikers.GetBadgeMoniker()}_{config}_version_badge.svg";
|
||||||
c.BuildContext["VersionBadge"] = Path.Combine(Dirs.Output, versionBadgeName);
|
c.BuildContext["VersionBadge"] = Path.Combine(Dirs.Output, versionBadgeName);
|
||||||
|
|
||||||
var cliVersion = c.BuildContext.Get<BuildVersion>("BuildVersion").NuGetVersion;
|
var cliVersion = c.BuildContext.Get<BuildVersion>("BuildVersion").NuGetVersion;
|
||||||
|
@ -317,7 +317,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
}
|
}
|
||||||
|
|
||||||
[Target]
|
[Target]
|
||||||
[BuildPlatforms(BuildPlatform.Ubuntu)]
|
[BuildPlatforms(BuildPlatform.Ubuntu, "14.04")]
|
||||||
public static BuildTargetResult CheckUbuntuDebianPackageBuildDependencies(BuildTargetContext c)
|
public static BuildTargetResult CheckUbuntuDebianPackageBuildDependencies(BuildTargetContext c)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -347,7 +347,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
}
|
}
|
||||||
|
|
||||||
[Target]
|
[Target]
|
||||||
[BuildPlatforms(BuildPlatform.Ubuntu)]
|
[BuildPlatforms(BuildPlatform.Ubuntu, "14.04")]
|
||||||
public static BuildTargetResult CheckUbuntuCoreclrAndCoreFxDependencies(BuildTargetContext c)
|
public static BuildTargetResult CheckUbuntuCoreclrAndCoreFxDependencies(BuildTargetContext c)
|
||||||
{
|
{
|
||||||
var errorMessageBuilder = new StringBuilder();
|
var errorMessageBuilder = new StringBuilder();
|
||||||
|
|
|
@ -94,8 +94,21 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
// Copy the latest installer files
|
// Copy the latest installer files
|
||||||
CopyBlobs($"{Channel}/Installers/{CliNuGetVersion}/", $"{Channel}/Installers/Latest/");
|
CopyBlobs($"{Channel}/Installers/{CliNuGetVersion}/", $"{Channel}/Installers/Latest/");
|
||||||
|
|
||||||
// Generate the SDK Version text files
|
// Generate the CLI and SDK Version text files
|
||||||
List<string> versionFiles = new List<string>() { "win.x86.version", "win.x64.version", "ubuntu.x64.version", "rhel.x64.version", "osx.x64.version", "debian.x64.version", "centos.x64.version" };
|
List<string> versionFiles = new List<string>()
|
||||||
|
{
|
||||||
|
"win.x86.version",
|
||||||
|
"win.x64.version",
|
||||||
|
"ubuntu.x64.version",
|
||||||
|
"ubuntu.16.04.x64.version",
|
||||||
|
"rhel.x64.version",
|
||||||
|
"osx.x64.version",
|
||||||
|
"debian.x64.version",
|
||||||
|
"centos.x64.version",
|
||||||
|
"fedora.23.x64.version",
|
||||||
|
"opensuse.13.2.x64.version"
|
||||||
|
};
|
||||||
|
|
||||||
string cliVersion = Utils.GetCliVersionFileContent(c);
|
string cliVersion = Utils.GetCliVersionFileContent(c);
|
||||||
foreach (string version in versionFiles)
|
foreach (string version in versionFiles)
|
||||||
{
|
{
|
||||||
|
@ -131,15 +144,18 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
{ "Windows_x86", false },
|
{ "Windows_x86", false },
|
||||||
{ "Windows_x64", false },
|
{ "Windows_x64", false },
|
||||||
{ "Ubuntu_x64", false },
|
{ "Ubuntu_x64", false },
|
||||||
|
{ "Ubuntu_16_04_x64", false },
|
||||||
{ "RHEL_x64", false },
|
{ "RHEL_x64", false },
|
||||||
{ "OSX_x64", false },
|
{ "OSX_x64", false },
|
||||||
{ "Debian_x64", false },
|
{ "Debian_x64", false },
|
||||||
{ "CentOS_x64", false }
|
{ "CentOS_x64", false },
|
||||||
|
{ "Fedora_23_x64", false },
|
||||||
|
{ "openSUSE_13_2_x64", false }
|
||||||
};
|
};
|
||||||
|
|
||||||
List<string> blobs = new List<string>(AzurePublisherTool.ListBlobs($"{Channel}/Binaries/{CliNuGetVersion}/"));
|
List<string> blobs = new List<string>(AzurePublisherTool.ListBlobs($"{Channel}/Binaries/{CliNuGetVersion}/"));
|
||||||
|
|
||||||
var versionBadgeName = $"{CurrentPlatform.Current}_{CurrentArchitecture.Current}";
|
var versionBadgeName = $"{Monikers.GetBadgeMoniker()}";
|
||||||
if (badges.ContainsKey(versionBadgeName) == false)
|
if (badges.ContainsKey(versionBadgeName) == false)
|
||||||
{
|
{
|
||||||
throw new ArgumentException("A new OS build was added without adding the moniker to the {nameof(badges)} lookup");
|
throw new ArgumentException("A new OS build was added without adding the moniker to the {nameof(badges)} lookup");
|
||||||
|
@ -188,7 +204,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
|
|
||||||
[Target(
|
[Target(
|
||||||
nameof(PublishSdkDebToDebianRepo))]
|
nameof(PublishSdkDebToDebianRepo))]
|
||||||
[BuildPlatforms(BuildPlatform.Ubuntu)]
|
[BuildPlatforms(BuildPlatform.Ubuntu, "14.04")]
|
||||||
public static BuildTargetResult PublishDebFilesToDebianRepo(BuildTargetContext c)
|
public static BuildTargetResult PublishDebFilesToDebianRepo(BuildTargetContext c)
|
||||||
{
|
{
|
||||||
return c.Success();
|
return c.Success();
|
||||||
|
@ -204,7 +220,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
}
|
}
|
||||||
|
|
||||||
[Target]
|
[Target]
|
||||||
[BuildPlatforms(BuildPlatform.Ubuntu)]
|
[BuildPlatforms(BuildPlatform.Ubuntu, "14.04")]
|
||||||
public static BuildTargetResult PublishSdkInstallerFileToAzure(BuildTargetContext c)
|
public static BuildTargetResult PublishSdkInstallerFileToAzure(BuildTargetContext c)
|
||||||
{
|
{
|
||||||
var version = CliNuGetVersion;
|
var version = CliNuGetVersion;
|
||||||
|
@ -262,7 +278,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
}
|
}
|
||||||
|
|
||||||
[Target]
|
[Target]
|
||||||
[BuildPlatforms(BuildPlatform.Ubuntu)]
|
[BuildPlatforms(BuildPlatform.Ubuntu, "14.04")]
|
||||||
public static BuildTargetResult PublishSdkDebToDebianRepo(BuildTargetContext c)
|
public static BuildTargetResult PublishSdkDebToDebianRepo(BuildTargetContext c)
|
||||||
{
|
{
|
||||||
var version = CliNuGetVersion;
|
var version = CliNuGetVersion;
|
||||||
|
|
|
@ -34,8 +34,11 @@
|
||||||
"win7-x86": {},
|
"win7-x86": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
}
|
}
|
||||||
else if (CurrentPlatform.IsUbuntu)
|
else if (CurrentPlatform.IsUbuntu)
|
||||||
{
|
{
|
||||||
rid = "ubuntu.14.04-x64";
|
rid = $"ubuntu.{RuntimeEnvironment.OperatingSystemVersion}-x64";
|
||||||
}
|
}
|
||||||
else if (CurrentPlatform.IsCentOS || CurrentPlatform.IsRHEL)
|
else if (CurrentPlatform.IsCentOS || CurrentPlatform.IsRHEL)
|
||||||
{
|
{
|
||||||
|
@ -106,6 +106,14 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
{
|
{
|
||||||
rid = "debian.8-x64";
|
rid = "debian.8-x64";
|
||||||
}
|
}
|
||||||
|
else if (CurrentPlatform.IsFedora)
|
||||||
|
{
|
||||||
|
rid = $"fedora.{RuntimeEnvironment.OperatingSystemVersion}-x64";
|
||||||
|
}
|
||||||
|
else if (CurrentPlatform.IsOpenSuse)
|
||||||
|
{
|
||||||
|
rid = $"opensuse.{RuntimeEnvironment.OperatingSystemVersion}-x64";
|
||||||
|
}
|
||||||
|
|
||||||
return rid;
|
return rid;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using Microsoft.DotNet.Cli.Build.Framework;
|
using Microsoft.DotNet.Cli.Build.Framework;
|
||||||
|
using Microsoft.DotNet.InternalAbstractions;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
@ -15,9 +16,33 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
|
|
||||||
public static string GetProductMoniker(BuildTargetContext c, string artifactPrefix, string version)
|
public static string GetProductMoniker(BuildTargetContext c, string artifactPrefix, string version)
|
||||||
{
|
{
|
||||||
string osname = GetOSShortName();
|
string rid = RuntimeEnvironment.GetRuntimeIdentifier();
|
||||||
var arch = CurrentArchitecture.Current.ToString();
|
|
||||||
return $"{artifactPrefix}-{osname}-{arch}.{version}";
|
if (rid == "ubuntu.16.04-x64" || rid == "fedora.23-x64" || rid == "opensuse.13.2-x64")
|
||||||
|
{
|
||||||
|
return $"{artifactPrefix}-{rid}.{version}";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
string osname = GetOSShortName();
|
||||||
|
var arch = CurrentArchitecture.Current.ToString();
|
||||||
|
return $"{artifactPrefix}-{osname}-{arch}.{version}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string GetBadgeMoniker()
|
||||||
|
{
|
||||||
|
switch (RuntimeEnvironment.GetRuntimeIdentifier())
|
||||||
|
{
|
||||||
|
case "ubuntu.16.04-x64":
|
||||||
|
return "Ubuntu_16_04_x64";
|
||||||
|
case "fedora.23-x64":
|
||||||
|
return "Fedora_23_x64";
|
||||||
|
case "opensuse.13.2-x64":
|
||||||
|
return "openSUSE_13_2_x64";
|
||||||
|
}
|
||||||
|
|
||||||
|
return $"{CurrentPlatform.Current}_{CurrentArchitecture.Current}";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetDebianPackageName(BuildTargetContext c)
|
public static string GetDebianPackageName(BuildTargetContext c)
|
||||||
|
|
|
@ -31,8 +31,11 @@
|
||||||
"osx.10.10-x64": {},
|
"osx.10.10-x64": {},
|
||||||
"osx.10.11-x64": {},
|
"osx.10.11-x64": {},
|
||||||
"ubuntu.14.04-x64": {},
|
"ubuntu.14.04-x64": {},
|
||||||
|
"ubuntu.16.04-x64": {},
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {}
|
"debian.8-x64": {},
|
||||||
|
"fedora.23-x64": {},
|
||||||
|
"opensuse.13.2-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ def project = GithubProject
|
||||||
def branch = GithubBranchName
|
def branch = GithubBranchName
|
||||||
def isPR = true
|
def isPR = true
|
||||||
|
|
||||||
def platformList = ['Debian8.2:x64:Debug', 'Ubuntu:x64:Release', 'OSX:x64:Release', 'Windows_NT:x64:Release', 'Windows_NT:x86:Debug', 'RHEL7.2:x64:Release', 'CentOS7.1:x64:Debug']
|
def platformList = ['Debian8.2:x64:Debug', 'Ubuntu:x64:Release', 'Ubuntu16.04:x64:Debug', 'OSX:x64:Release', 'Windows_NT:x64:Release', 'Windows_NT:x86:Debug', 'RHEL7.2:x64:Release', 'CentOS7.1:x64:Debug', 'Fedora23:x64:Debug', 'openSUSE13.2:x64:Debug']
|
||||||
|
|
||||||
def static getBuildJobName(def configuration, def os, def architecture) {
|
def static getBuildJobName(def configuration, def os, def architecture) {
|
||||||
return configuration.toLowerCase() + '_' + os.toLowerCase() + '_' + architecture.toLowerCase()
|
return configuration.toLowerCase() + '_' + os.toLowerCase() + '_' + architecture.toLowerCase()
|
||||||
|
|
52
scripts/docker/fedora.23/Dockerfile
Normal file
52
scripts/docker/fedora.23/Dockerfile
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
#
|
||||||
|
# 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 fedora:23
|
||||||
|
|
||||||
|
# Install the base toolchain we need to build anything (clang, cmake, make and the like)
|
||||||
|
# this does not include libraries that we need to compile different projects, we'd like
|
||||||
|
# them in a different layer.
|
||||||
|
RUN dnf install -y cmake \
|
||||||
|
clang \
|
||||||
|
lldb-devel \
|
||||||
|
make \
|
||||||
|
which && \
|
||||||
|
dnf clean all
|
||||||
|
|
||||||
|
# Install tools used by the VSO build automation.
|
||||||
|
RUN dnf install -y git \
|
||||||
|
zip \
|
||||||
|
tar \
|
||||||
|
nodejs \
|
||||||
|
npm && \
|
||||||
|
findutils && \
|
||||||
|
dnf clean all && \
|
||||||
|
npm install -g azure-cli && \
|
||||||
|
npm cache clean
|
||||||
|
|
||||||
|
# Dependencies of CoreCLR and CoreFX.
|
||||||
|
RUN dnf install -y libicu-devel \
|
||||||
|
libuuid-devel \
|
||||||
|
libcurl-devel \
|
||||||
|
openssl-devel \
|
||||||
|
libunwind-devel \
|
||||||
|
lttng-ust-devel && \
|
||||||
|
dnf clean all
|
||||||
|
|
||||||
|
# Setup User to match Host User, and give superuser permissions
|
||||||
|
ARG USER_ID=0
|
||||||
|
RUN useradd -m code_executor -u ${USER_ID} -g wheel
|
||||||
|
RUN echo 'code_executor ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||||
|
|
||||||
|
# With the User Change, we need to change permissions on these directories
|
||||||
|
RUN chmod -R a+rwx /usr/local
|
||||||
|
RUN chmod -R a+rwx /home
|
||||||
|
|
||||||
|
# Set user to the one we just created
|
||||||
|
USER ${USER_ID}
|
||||||
|
|
||||||
|
# Set working directory
|
||||||
|
WORKDIR /opt/code
|
51
scripts/docker/opensuse.13.2/Dockerfile
Normal file
51
scripts/docker/opensuse.13.2/Dockerfile
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM opensuse:13.2
|
||||||
|
|
||||||
|
# Install the base toolchain we need to build anything (clang, cmake, make and the like)
|
||||||
|
# this does not include libraries that we need to compile different projects, we'd like
|
||||||
|
# them in a different layer.
|
||||||
|
RUN zypper -n install binutils \
|
||||||
|
cmake \
|
||||||
|
which \
|
||||||
|
gcc \
|
||||||
|
llvm-clang \
|
||||||
|
tar \
|
||||||
|
ncurses-utils \
|
||||||
|
curl \
|
||||||
|
git \
|
||||||
|
sudo && \
|
||||||
|
ln -s /usr/bin/clang++ /usr/bin/clang++-3.5 && \
|
||||||
|
zypper clean -a
|
||||||
|
|
||||||
|
# Dependencies of CoreCLR and CoreFX. We need to add an additional repository to get lttng.
|
||||||
|
RUN zypper addrepo -G http://download.opensuse.org/repositories/devel:/tools:/lttng/openSUSE_13.2/devel:tools:lttng.repo && \
|
||||||
|
zypper refresh && \
|
||||||
|
zypper -n remove krb5-mini && \
|
||||||
|
zypper -n install libunwind \
|
||||||
|
libicu \
|
||||||
|
lttng-ust \
|
||||||
|
libuuid1 \
|
||||||
|
libopenssl1_0_0 \
|
||||||
|
libcurl4 \
|
||||||
|
krb5 && \
|
||||||
|
zypper clean -a
|
||||||
|
|
||||||
|
# Setup User to match Host User, and give superuser permissions
|
||||||
|
ARG USER_ID=0
|
||||||
|
RUN useradd -m code_executor -u ${USER_ID} -g wheel
|
||||||
|
RUN echo 'code_executor ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||||
|
|
||||||
|
# With the User Change, we need to change permissions on these directories
|
||||||
|
RUN chmod -R a+rwx /usr/local
|
||||||
|
RUN chmod -R a+rwx /home
|
||||||
|
RUN chmod -R 755 /usr/lib/sudo
|
||||||
|
|
||||||
|
# Set user to the one we just created
|
||||||
|
USER ${USER_ID}
|
||||||
|
|
||||||
|
# Set working directory
|
||||||
|
WORKDIR /opt/code
|
63
scripts/docker/ubuntu.16.04/Dockerfile
Normal file
63
scripts/docker/ubuntu.16.04/Dockerfile
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM ubuntu:16.04
|
||||||
|
|
||||||
|
# Install the base toolchain we need to build anything (clang, cmake, make and the like)
|
||||||
|
# this does not include libraries that we need to compile different projects, we'd like
|
||||||
|
# them in a different layer.
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y wget && \
|
||||||
|
echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.6 main" | tee /etc/apt/sources.list.d/llvm.list && \
|
||||||
|
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add - && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y cmake \
|
||||||
|
make \
|
||||||
|
llvm-3.5 \
|
||||||
|
clang-3.5 \
|
||||||
|
lldb-3.6 \
|
||||||
|
lldb-3.6-dev && \
|
||||||
|
apt-get clean
|
||||||
|
|
||||||
|
# Install tools used by the VSO build automation. nodejs-legacy is a Debian specific
|
||||||
|
# package that provides `node' on the path (which azure cli needs).
|
||||||
|
RUN apt-get install -y git \
|
||||||
|
zip \
|
||||||
|
curl \
|
||||||
|
tar \
|
||||||
|
nodejs \
|
||||||
|
nodejs-legacy \
|
||||||
|
npm && \
|
||||||
|
apt-get clean && \
|
||||||
|
npm install -g azure-cli && \
|
||||||
|
npm cache clean
|
||||||
|
|
||||||
|
# Dependencies for CoreCLR and CoreFX
|
||||||
|
RUN apt-get install -y gettext \
|
||||||
|
libunwind8-dev \
|
||||||
|
libkrb5-dev \
|
||||||
|
libunwind8 \
|
||||||
|
libicu-dev \
|
||||||
|
liblttng-ust-dev \
|
||||||
|
libcurl4-openssl-dev \
|
||||||
|
libssl-dev \
|
||||||
|
uuid-dev && \
|
||||||
|
apt-get clean
|
||||||
|
|
||||||
|
# Setup User to match Host User, and give superuser permissions
|
||||||
|
ARG USER_ID=0
|
||||||
|
RUN useradd -m code_executor -u ${USER_ID} -g sudo
|
||||||
|
RUN echo 'code_executor ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||||
|
|
||||||
|
# With the User Change, we need to change permissions on these directories
|
||||||
|
RUN chmod -R a+rwx /usr/local
|
||||||
|
RUN chmod -R a+rwx /home
|
||||||
|
RUN chmod -R 755 /usr/lib/sudo
|
||||||
|
|
||||||
|
# Set user to the one we just created
|
||||||
|
USER ${USER_ID}
|
||||||
|
|
||||||
|
# Set working directory
|
||||||
|
WORKDIR /opt/code
|
|
@ -56,14 +56,32 @@ if [ -z "$DOCKERFILE" ]; then
|
||||||
echo "Defaulting to 'ubuntu' image for Darwin"
|
echo "Defaulting to 'ubuntu' image for Darwin"
|
||||||
export DOCKERFILE=scripts/docker/ubuntu
|
export DOCKERFILE=scripts/docker/ubuntu
|
||||||
elif [ "$(cat /etc/*-release | grep -cim1 ubuntu)" -eq 1 ]; then
|
elif [ "$(cat /etc/*-release | grep -cim1 ubuntu)" -eq 1 ]; then
|
||||||
echo "Detected current OS as Ubuntu, using 'ubuntu' image"
|
echo "Detected current OS as Ubuntu, determining ubuntu version to use..."
|
||||||
export DOCKERFILE=scripts/docker/ubuntu
|
if [ "$(cat /etc/*-release | grep -cim1 16.04)" -eq 1 ]; then
|
||||||
|
echo "using 'ubuntu.16.04' image"
|
||||||
|
export DOCKERFILE=scripts/docker/ubuntu.16.04
|
||||||
|
else
|
||||||
|
echo "using 'ubuntu' image"
|
||||||
|
export DOCKERFILE=scripts/docker/ubuntu
|
||||||
|
fi
|
||||||
elif [ "$(cat /etc/*-release | grep -cim1 centos)" -eq 1 ]; then
|
elif [ "$(cat /etc/*-release | grep -cim1 centos)" -eq 1 ]; then
|
||||||
echo "Detected current OS as CentOS, using 'centos' image"
|
echo "Detected current OS as CentOS, using 'centos' image"
|
||||||
export DOCKERFILE=scripts/docker/centos
|
export DOCKERFILE=scripts/docker/centos
|
||||||
elif [ "$(cat /etc/*-release | grep -cim1 debian)" -eq 1 ]; then
|
elif [ "$(cat /etc/*-release | grep -cim1 debian)" -eq 1 ]; then
|
||||||
echo "Detected current OS as Debian, using 'debian' image"
|
echo "Detected current OS as Debian, using 'debian' image"
|
||||||
export DOCKERFILE=scripts/docker/debian
|
export DOCKERFILE=scripts/docker/debian
|
||||||
|
elif [ "$(cat /etc/*-release | grep -cim1 fedora)" -eq 1 ]; then
|
||||||
|
echo "Detected current OS as Fedora, determining fedora version to use..."
|
||||||
|
if [ "$(cat /etc/*-release | grep -cim1 23)" -eq 1 ]; then
|
||||||
|
echo "using 'fedora.23' image"
|
||||||
|
export DOCKERFILE=scripts/docker/fedora.23
|
||||||
|
fi
|
||||||
|
elif [ "$(cat /etc/*-release | grep -cim1 opensuse)" -eq 1 ]; then
|
||||||
|
echo "Detected current OS as openSUSE, determining openSUSE version to use..."
|
||||||
|
if [ "$(cat /etc/*-release | grep -cim1 13.2)" -eq 1 ]; then
|
||||||
|
echo "using 'openSUSE.13.2' image"
|
||||||
|
export DOCKERFILE=scripts/docker/opensuse.13.2
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "Unknown Linux Distro. Using 'ubuntu' image"
|
echo "Unknown Linux Distro. Using 'ubuntu' image"
|
||||||
export DOCKERFILE=scripts/docker/ubuntu
|
export DOCKERFILE=scripts/docker/ubuntu
|
||||||
|
|
15
scripts/obtain/dotnet-install.sh
vendored
15
scripts/obtain/dotnet-install.sh
vendored
|
@ -66,6 +66,11 @@ get_current_os_name() {
|
||||||
else
|
else
|
||||||
# Detect Distro
|
# Detect Distro
|
||||||
if [ "$(cat /etc/*-release | grep -cim1 ubuntu)" -eq 1 ]; then
|
if [ "$(cat /etc/*-release | grep -cim1 ubuntu)" -eq 1 ]; then
|
||||||
|
if [ "$(cat /etc/*-release | grep -cim1 16.04)" -eq 1 ]; then
|
||||||
|
echo "ubuntu.16.04"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
echo "ubuntu"
|
echo "ubuntu"
|
||||||
return 0
|
return 0
|
||||||
elif [ "$(cat /etc/*-release | grep -cim1 centos)" -eq 1 ]; then
|
elif [ "$(cat /etc/*-release | grep -cim1 centos)" -eq 1 ]; then
|
||||||
|
@ -77,6 +82,16 @@ get_current_os_name() {
|
||||||
elif [ "$(cat /etc/*-release | grep -cim1 debian)" -eq 1 ]; then
|
elif [ "$(cat /etc/*-release | grep -cim1 debian)" -eq 1 ]; then
|
||||||
echo "debian"
|
echo "debian"
|
||||||
return 0
|
return 0
|
||||||
|
elif [ "$(cat /etc/*-release | grep -cim1 fedora)" -eq 1 ]; then
|
||||||
|
if [ "$(cat /etc/*-release | grep -cim1 23)" -eq 1 ]; then
|
||||||
|
echo "fedora.23"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
elif [ "$(cat /etc/*-release | grep -cim1 opensuse)" -eq 1 ]; then
|
||||||
|
if [ "$(cat /etc/*-release | grep -cim1 13.2)" -eq 1 ]; then
|
||||||
|
echo "opensuse.13.2"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -28,9 +28,6 @@ namespace Microsoft.DotNet.Cli.Utils
|
||||||
public static readonly string LibCoreClrFileName = (CurrentPlatform == Platform.Windows ? "coreclr" : "libcoreclr");
|
public static readonly string LibCoreClrFileName = (CurrentPlatform == Platform.Windows ? "coreclr" : "libcoreclr");
|
||||||
public static readonly string LibCoreClrName = LibCoreClrFileName + DynamicLibSuffix;
|
public static readonly string LibCoreClrName = LibCoreClrFileName + DynamicLibSuffix;
|
||||||
|
|
||||||
public static readonly string RuntimeIdentifier = CurrentPlatform == Platform.Windows ? "win7-x64" :
|
|
||||||
CurrentPlatform == Platform.Darwin ? "osx.10.10-x64" : "ubuntu.14.04-x64";
|
|
||||||
|
|
||||||
public static readonly string StaticLibSuffix = CurrentPlatform == Platform.Windows ? ".lib" : ".a";
|
public static readonly string StaticLibSuffix = CurrentPlatform == Platform.Windows ? ".lib" : ".a";
|
||||||
|
|
||||||
public static readonly string ResponseFileSuffix = ".rsp";
|
public static readonly string ResponseFileSuffix = ".rsp";
|
||||||
|
|
|
@ -231,7 +231,9 @@ namespace Microsoft.DotNet.Tests.EndToEnd
|
||||||
{
|
{
|
||||||
case "centos":
|
case "centos":
|
||||||
case "rhel":
|
case "rhel":
|
||||||
Console.WriteLine("Skipping native compilation tests on CentOS/RHEL - https://github.com/dotnet/cli/issues/453");
|
case "fedora":
|
||||||
|
case "opensuse":
|
||||||
|
Console.WriteLine("Skipping native compilation tests on OpenSUSE/Fedora/CentOS/RHEL - https://github.com/dotnet/cli/issues/453");
|
||||||
isSupported = false;
|
isSupported = false;
|
||||||
break;
|
break;
|
||||||
case "debian":
|
case "debian":
|
||||||
|
|
|
@ -127,7 +127,10 @@ namespace Microsoft.Extensions.DependencyModel.Tests
|
||||||
new RuntimeFallbacks("win8-x64", "win8", "win7-x64", "win7", "win-x64", "win", "any", "base"),
|
new RuntimeFallbacks("win8-x64", "win8", "win7-x64", "win7", "win-x64", "win", "any", "base"),
|
||||||
new RuntimeFallbacks("win7-x64", "win7", "win-x64", "win", "any", "base"),
|
new RuntimeFallbacks("win7-x64", "win7", "win-x64", "win", "any", "base"),
|
||||||
new RuntimeFallbacks("ubuntu-x64", "ubuntu", "linux-x64", "linux", "unix", "any", "base"),
|
new RuntimeFallbacks("ubuntu-x64", "ubuntu", "linux-x64", "linux", "unix", "any", "base"),
|
||||||
|
new RuntimeFallbacks("ubuntu.16.04-x64", "ubuntu", "linux-x64", "linux", "unix", "any", "base"),
|
||||||
new RuntimeFallbacks("rhel-x64", "rhel", "linux-x64", "linux", "unix", "any", "base"),
|
new RuntimeFallbacks("rhel-x64", "rhel", "linux-x64", "linux", "unix", "any", "base"),
|
||||||
|
new RuntimeFallbacks("fedora.23-x64", "fedora", "linux-x64", "linux", "unix", "any", "base"),
|
||||||
|
new RuntimeFallbacks("opensuse.13.2-x64", "opensuse", "linux-x64", "linux", "unix", "any", "base"),
|
||||||
new RuntimeFallbacks("osx-x64", "osx", "unix", "any", "base"),
|
new RuntimeFallbacks("osx-x64", "osx", "unix", "any", "base"),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ namespace Microsoft.DotNet.Tools.Publish.Tests
|
||||||
Rid="osx.10.11-x64",
|
Rid="osx.10.11-x64",
|
||||||
HostExtension="",
|
HostExtension="",
|
||||||
ExpectedArtifacts=new string[] { "libhostfxr.dylib", "libcoreclr.dylib", "libhostpolicy.dylib" }
|
ExpectedArtifacts=new string[] { "libhostfxr.dylib", "libcoreclr.dylib", "libhostpolicy.dylib" }
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
public static IEnumerable<object[]> PublishOptions
|
public static IEnumerable<object[]> PublishOptions
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue