Code Monkey home page Code Monkey logo

dockertoolsdocs's Introduction

Important

The list of tools described below are archived and no longer under development. For the latest versions of the container tooling for Visual Studio and Visual Studio Code, please see Containers Tools in Visual Studio and the Visual Studio Code Docker extension

Docker Tools Documentation (archived)

A list of tools being developed at Microsoft for working with Docker Containers

##Docker Tools for Visual Studio## Docker Tools for Visual Studio

DockerToolsForVisualStudio

The Visual Studio 2015 Tools for Docker Preview enables developers to build and debug their applications in a locally hosted Docker container and publish their application to an Azure Docker Host.

##yo docker## yo docker

Scaffolding of Dockerfiles and scripts to build and run your Docker containers

To assist developers getting started, and those developers already using docker with the appropriate Dockerfile and associated scripts to build and run your docker containers. This yeoman generator will prompt you with a few questions, asking your development language and target container host. Two files will be added to the directory

  • Dockerfile - the Dockerfile associated with your target language
  • dockerTask.sh - a bash script that contains the common tasks associated with building and running your docker containers parameters supported for dockerTask.sh
    • build - builds the Docker image
    • run - runs the Docker image on the default port, removing any current running containers for the same port
    • buildrun - the default, which does what the name implies...

https://youtu.be/_afFgiHiHO8

A 5 minute demo showing yo docker with NodeJS apps and VSCode

###Installing yo docker on Mac###

  1. Install NodeJs

  2. Install Yo by running the following command from the Terminal:

    npm -g install yo

  3. Install Docker generator:

    npm -g install generator-docker

  4. From the directory of your project, run the Docker generator:

    yo docker

###Installing yo docker on Windows### Coming soon

While you can install the same yo docker tools above for the mac, the scripts generated are bash scripts. We are working on generating .cmd scripts as a Windows Developer would expect.

###Contributing to yo docker### We are planning to make yo docker open sourced, accepting pull requests. stay tuned

##Getting Started Samples## For those looking for some simple Hello World samples for GOLang, NodeJS and soon ASP.NET, you can download these:

These samples do NOT yet have the Docker assets added. The idea is you would use yo docker to enhance these.
###NodeJS Hello World Sample### To use the NodeJS sample

  • In the root directory execute: npm install to restore the node packages
  • to get nodemon support, execute: sudo npm install -g nodemon
  • to start the app with nodemon, execute: nodemon

dockertoolsdocs's People

Contributors

cawams avatar dbreshears avatar msftgits avatar stevelasker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dockertoolsdocs's Issues

Version 0.41 Not working with docker-machine

It gives me following error. Most probably because it has not ran the command "docker-machine env".

How can I specify it should connect to one of my docker-machines?

The add docker support menu item only adds some Dockerfile and docker-compose*.yml.

Previously it also added a Dockertasks.ps1.

Code:
MSB4018 Line

Description:
The "PrepareForCompile" task failed unexpectedly.
Microsoft.DotNet.Docker.CommandLineClientException: An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json?filters=%7B%22name%22%3A%7B%22productapi_productapi%22%3Atrue%7D%7D&limit=1: open //./pipe/docker_engine: The system cannot find the file specified.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.DotNet.Docker.BuildTasks.PrepareForCompile.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.DotNet.Docker.BuildTasks.DockerBaseTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()

File:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Publishing\ImportAfter\Microsoft.DotNet.Docker.targets 61

Unable to build : Cannot locate specified Dockerfile: app/Dockerfile.Debug

Hi,

I am on the latest insider build with an up to date version of the docker for Windows installed (Build 5456).

When I attempt to run the application within a container I get the following error:

1> Error response from daemon: Cannot locate specified Dockerfile: app/Dockerfile.Debug
1> Build : Failed to build the image
1> At D:\Source\Play\CoreWebApplicationDockerTest\src\CoreWebApplicationDockerTest\DockerTask.ps1:504 char:5
1> + Build
1> + ~~~~~
1> + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
1> + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Build
1>
1>D:\Source\Play\CoreWebApplicationDockerTest\src\CoreWebApplicationDockerTest\Properties\Docker.targets(38,5): error MSB3073: The command "powershell -NonInteractive -ExecutionPolicy RemoteSigned .\DockerTask.ps1 -Build -Environment Debug -Machine '' -ClrDebugVersion VS2015U2" exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Any ideas what could be causing this?

Cheers,

Mike

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.