Giter Club home page Giter Club logo

dotnetcore-cookbook's Introduction

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

Key Type Description Default
['dotnetcore']['package']['name'] String The apt-get package name for Debian/Ubuntu. See default.rb
['dotnetcore']['package']['version'] String The apt-get package version for Debian/Ubuntu. See default.rb
['dotnetcore']['package']['source_url'] String An absolute URL for the .NET Core Windows MSI installer See default.rb
['dotnetcore']['package']['tar'] String An absolute URL for the RHEL family tar file See default.rb
['dotnetcore']['apt_package_source'] String The apt-get package source repository server See default.rb

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.

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.

dotnet 'test' do
  action :restore
  nuget_config_file "#{app_dir}/NuGet.Config"
  user 'root'
  cwd app_dir
end

Development

This cookbook uses test-kitchen and Serverspec/RSpec with the Vagrant driver. For local Windows testing, please follow this blog post to create and add a local Vagrant Windows (Server 2012 R2) box.

License and Authors

Author:: Andrew Cornies ([email protected])

dotnetcore-cookbook's People

Contributors

acornies avatar kierranm avatar kamaradclimber avatar frank-m avatar komuta avatar mattray avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.