Code Monkey home page Code Monkey logo

puppet-docker-vnext-example's Introduction

Docker Puppet ASP.NET Example

The Puppet Docker module is a great way of installing and managing Docker on a host, but it also allows for some basic container management.

This repo contains a fairly simple example using Vagrant to launch a Linux virtual machine, then Puppet to install Docker, build an image and run a container. For added spice the container runs a ASP.NET vNext application.

The ASP.NET vNext application example is taken from this excellent blog post from MSDN about running ASP.NET apps in linux containers.

Usage

vagrant up --provider virtualbox
vagrant provision

This will take a little time as it launches a virtual machine and downloads lots of software onto it.

What happened?

Once up you should be able to access 10.20.1.11:5004 and it should show the hello world ASP.NET example.

The text is coming from a docker container on the host app1.

Under the hood

  1. The instance (app1) installs docker, builds an image using the Dockerfile and runs a container based on that image.

The interesting Puppet code is found in the application module.

puppet-docker-vnext-example's People

Contributors

garethr avatar

Stargazers

Vassil Verguilov avatar  avatar Ilya Dmitrichenko avatar Ely Alvarado avatar Simone Veronese avatar

Watchers

James Cloos avatar  avatar

Forkers

kylog patelronak

puppet-docker-vnext-example's Issues

specinfra dependency missing

I didn't sort out why, but I get this running specs:

/Users/kylo/devel/puppet-docker-vnext-example/spec/spec_helper.rb:3:in `<top (required)>': uninitialized constant SpecInfra (NameError)
    from /Users/kylo/devel/puppet-docker-vnext-example/spec/firewall_spec.rb:1:in `require'
    from /Users/kylo/devel/puppet-docker-vnext-example/spec/firewall_spec.rb:1:in `<top (required)>'
    from /Users/kylo/devel/puppet-docker-vnext-example/.bundle/gems/ruby/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `load'
    from /Users/kylo/devel/puppet-docker-vnext-example/.bundle/gems/ruby/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `block in load_spec_files'
    from /Users/kylo/devel/puppet-docker-vnext-example/.bundle/gems/ruby/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `each'
    from /Users/kylo/devel/puppet-docker-vnext-example/.bundle/gems/ruby/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `load_spec_files'
    from /Users/kylo/devel/puppet-docker-vnext-example/.bundle/gems/ruby/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:96:in `setup'
    from /Users/kylo/devel/puppet-docker-vnext-example/.bundle/gems/ruby/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:84:in `run'
    from /Users/kylo/devel/puppet-docker-vnext-example/.bundle/gems/ruby/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:69:in `run'
    from /Users/kylo/devel/puppet-docker-vnext-example/.bundle/gems/ruby/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:37:in `invoke'
    from /Users/kylo/devel/puppet-docker-vnext-example/.bundle/gems/ruby/2.1.0/gems/rspec-core-3.1.7/exe/rspec:4:in `<top (required)>'
    from /Users/kylo/devel/puppet-docker-vnext-example/.bundle/gems/ruby/2.1.0/bin/rspec:23:in `load'
    from /Users/kylo/devel/puppet-docker-vnext-example/.bundle/gems/ruby/2.1.0/bin/rspec:23:in `<main>'

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.