cookbook 'dotnetcore', '~> 1.1.3'
dotnetcore (5) Versions 1.1.3 Follow5
Installs/Configures dotnetcore
cookbook 'dotnetcore', '~> 1.1.3', :supermarket
knife supermarket install dotnetcore
knife supermarket download dotnetcore
<a href="https://codeclimate.com/github/acornies/dotnetcore-cookbook"><img src="https://codeclimate.com/github/acornies/dotnetcore-cookbook/badges/gpa.svg" /></a>
dotnetcore-cookbook
A Chef cookbook for managing .NET Core (http://dotnet.github.io/) installation and applications on all supported platforms. Simply include recipe[dotnetcore]
in your runlist to utilize the dotnet
resource provider. This cookbook is in it's early stages and will try to keep up with the pace of .NET Core development.
Supported Platforms
- Ubuntu 16.04
- Ubuntu 14.04
- Centos 7.1
- Oracle 7.1
- Redhat 7.1
- Amazon
- Windows Server 2012 R2
Attributes
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['dotnetcore']['package']['name']</tt></td>
<td>String</td>
<td>The apt-get package name for Debian/Ubuntu.</td>
<td><tt>See <a href="attributes/default.rb" target="_blank">default.rb</a></tt></td>
</tr>
<tr>
<td><tt>['dotnetcore']['package']['version']</tt></td>
<td>String</td>
<td>The apt-get package version for Debian/Ubuntu.</td>
<td><tt>See <a href="attributes/default.rb" target="_blank">default.rb</a></tt></td>
</tr>
<tr>
<td><tt>['dotnetcore']['package']['source_url']</tt></td>
<td>String</td>
<td>An absolute URL for the .NET Core Windows MSI installer</td>
<td><tt>See <a href="attributes/default.rb" target="_blank">default.rb</a></tt></td>
</tr>
<tr>
<td><tt>['dotnetcore']['package']['tar']</tt></td>
<td>String</td>
<td>An absolute URL for the RHEL family tar file</td>
<td><tt>See <a href="attributes/default.rb" target="_blank">default.rb</a></tt></td>
</tr>
<tr>
<td><tt>['dotnetcore']['apt_package_source']</tt></td>
<td>String</td>
<td>The apt-get package source repository server</td>
<td><tt>See <a href="attributes/default.rb" target="_blank">default.rb</a></tt></td>
</tr>
</table>
Usage
dotnetcore::default
Include dotnetcore
in your node's run_list
:
{ "run_list": [ "recipe[dotnetcore::default]" ] }
Resource/Provider
dotnet
Used for restoring package dependencies, compilation, and running your application.
ruby
dotnet 'test' do
action :run
nuget_config_file "#{app_dir}/NuGet.Config"
path app_dir
user 'root'
cwd app_dir
end
By default, the dotnet resource will restore nuget packages from the nuget_config_file
parameter. If no parameter is given, the current directory is used from cwd
. This can be overidden by adding restore false
as an additional parameter.
Additionaly, dotnet restore
can be run on it's own by using action :restore
as a parameter with the dotnet resource.
ruby
dotnet 'test' do
action :restore
nuget_config_file "#{app_dir}/NuGet.Config"
user 'root'
cwd app_dir
end
Development
This cookbook uses <a href="https://github.com/opscode/test-kitchen" target="_blank">test-kitchen</a> and <a href="http://serverspec.org/" target="_blank">Serverspec/RSpec</a> with the Vagrant driver. For local Windows testing, please follow <a href="http://kitchen.ci/blog/test-kitchen-windows-test-flight-with-vagrant/" target="_blank">this blog post</a> to create and add a local Vagrant Windows (Server 2012 R2) box.
License and Authors
Author:: Andrew Cornies (acornies@gmail.com)
Dependent cookbooks
apt >= 0.0.0 |
tar >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
1.1.3
Bug fix for Windows installer
1.1.2
Add support for Red Hat 7.1 and later
1.1.1
Added more platforms Ubuntu 16.04, CentOS 7.1, Oracle 7.1, Amazon
1.1.0
Minor update to dotnetcore package attributes, tested with ASP.NET Core RC2 (preview).
1.0.0
Initial release of dotnetcore-cookbook
Collaborator Number Metric
1.1.3 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.1.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.1.3 failed this metric
FC066: Ensure chef_version is set in metadata: dotnetcore/metadata.rb:1
FC069: Ensure standardized license defined in metadata: dotnetcore/metadata.rb:1
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:5
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:6
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:7
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:8
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:9
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:10
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:12
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:16
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:17
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:18
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:19
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.1.3 passed this metric
Testing File Metric
1.1.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.1.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.1.3 failed this metric
1.1.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.1.3 failed this metric
FC066: Ensure chef_version is set in metadata: dotnetcore/metadata.rb:1
FC069: Ensure standardized license defined in metadata: dotnetcore/metadata.rb:1
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:5
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:6
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:7
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:8
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:9
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:10
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:12
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:16
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:17
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:18
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:19
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.1.3 passed this metric
Testing File Metric
1.1.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.1.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.1.3 failed this metric
FC069: Ensure standardized license defined in metadata: dotnetcore/metadata.rb:1
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:5
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:6
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:7
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:8
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:9
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:10
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:12
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:16
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:17
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:18
FC117: Do not use kind_of in custom resource properties: dotnetcore/resources/dotnet.rb:19
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.1.3 passed this metric
Testing File Metric
1.1.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.1.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.1.3 failed this metric
1.1.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number