Coder Social home page Coder Social logo

cassiolima / vstsdockerbuild Goto Github PK

View Code? Open in Web Editor NEW

This project forked from christiansparre/vstsdockerbuild

0.0 1.0 0.0 467 KB

Example of how to build docker images and run unit- and integrationtests using VSTS

License: MIT License

Dockerfile 6.16% C# 35.37% HTML 55.18% CSS 3.13% JavaScript 0.16%

vstsdockerbuild's Introduction

Building Docker images using Visual Studio Team Services

and running unit- and integrationtests using docker-compose

The solution

The solution consist of multiple projects

  • A WebApp project
  • A Shared library project
  • A "Service" project
  • A project with a few empty unit tests
  • And a project with a few integration test

The repository contains

I wanted to explore how to setup a complete build pipeline in VSTS for building multi image solutions. The examples I have been able to find were all very simple, as "getting" started guides tend to be. This is ok, but I wanted to take it just a little bit further.

So here I have set up a more complete sample solution that

  1. Builds multiple projects into docker images.
  2. Runs a number of empty unit tests
  3. Runs a few integration tests

These blog posts talks about the different parts of the sample

Post 1: https://medium.com/@christiansparre/building-a-multi-docker-image-solution-using-visual-studio-team-services-and-docker-compose-42fa196b6cd2

Post 2: https://medium.com/@christiansparre/running-your-unit-tests-with-visual-studio-team-services-and-docker-compose-3f82c9b95bf

I think the most interesting thing and one of the huge value propositions for docker, besides the general awesomeness, is how easy it actually is to setup integration tests of a complete solution. It does not involve deployment, it can easily run as part of your build pipeline and it can include everything from your own application to database servers etc.

Take a look

vstsdockerbuild's People

Contributors

christiansparre avatar tomkerkhove avatar

Watchers

James Cloos 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.