Giter Club home page Giter Club logo

generator-docker's Introduction

Generator-docker

Package version CI Status Downloads

This generator creates a Dockerfile and scripts (dockerTask.sh and dockerTask.ps1) that helps you build and run your project inside of a Docker container. The following project types are currently supported:

  • ASP.NET 5.0
  • Go
  • Node.js

Quick demo

nodejs-demo

Longer walkthrough video

See the generator in action]

Installing

Prerequisites:

Install the Docker generator:

npm install -g generator-docker

Run the generator in the same folder that your project is in:

yo docker

Contributing

See Contributing for guidelines.

Multi-Environment and Multi-Container Compose Support - Prototype

We are working on adding docker-compose support that will support multiple containers and multiple environments. dockerTask compose dev will issue a docker-compose up with the merged docker-compose files dockerTask compose staging will remove the volume mapping and other debug settings

To see and provide feedback, please take a look at: yo docker compose prototype

Q&A

  • Q: Are you building an abstraction layer over docker apis?
    • A: No. These are your scripts. We're simply providing a starting point that docker developers would write themselves. These scripts are based on customers we've been working with
  • Q: Are you taking feedback?

Collecting usage data

Generator-docker collects anonymized data on the options you selected in the tool to understand and improve the experience. You are given a choice to opt-in or opt-out first time you run the tool. If you opt-in and decide to opt-out later, simply delete the ~/.config/configstore/generator-docker.json file from your machine.

Changelog

v0.0.31
=======
+ Added support for ASP.Net Core 5 RC2
+ BigFix: Optimized the creation of the node image to take advantage of caching

v0.0.29
=======
+ Fix for issue #34 (Update ASP.NET dockerfile and add support for RC)

v0.0.27
=======
+ Replaced .CMD file with PowerShell script.
+ Adding .debug and .release compose files.
+ Replaced ADD command with COPY command in dockerfile.

v0.0.26
=======
+ BugFix: fixing issues with the path on Windows when using volume sharing in Node.js projects.

v0.0.25
=======
+ BugFix: making sure config is defined before reading a property.
+ BugFix: tracking if users opted-in or out for data collection.

v0.0.24
=======
+ Docker-compose.yml files are being created now for all project types.

License

See LICENSE for full license text.

generator-docker's People

Contributors

ncarlsonmsft avatar peterblazejewicz avatar stevelasker avatar msftgits avatar

Watchers

Bryce Walter avatar James Cloos avatar  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.