Code Monkey home page Code Monkey logo

docker-ansible-coding-exercise's Introduction

GSTV Docker/Ansible Coding Exercise

Overview

We are asking you to build out an architecture to support multiple instances of a load-balanced sample application

Architecture Diagram

Using a drawing tool of your choice - we use draw.io because it is sharable - create a diagram outlining your approach for creating an environment utilizing Ansible, Docker, and HAProxy. Show how you would use Ansible to provision Docker, deploy multiple Docker containers, and load balance multiple instances of a service using HAProxy.

Some questions to consider

  • How will you scale the service?
  • How will you support multiple environments (development/production)?

Technical Implementation

Implement the Ansible/Docker/HAProxy solution that you diagramed.

You should

  • Create the Ansible scripts you would want to use to provision Docker and deploy the containers.
  • Create the HAProxy configuration to handle the load balancing.
  • Create the dockerfile to build the image for the service.

Notes

  • The cheese app is a node application and runs using the 'npm start' command.
  • The cheese app defaults to port 3001 (but can take in the env variable PORT)
  • Doing a curl or http GET request to the service should return JSON
{   
    "message":"I like to eat cheese",
    "port":"3001"
}

Technology

We ask that you use the same technology that we use on a daily basis. This includes

  • Ansible
  • Docker
  • HAProxy

Submitting Your Work

Please fork our repository and use a feature branch workflow while developing your functionality. When you are ready to submit your work make a pull request against our repository.

Version Control

GitFlow and GithubFlow

We use GitFlow on a daily basis - this allows us to build quality control into our development, QA and deployment process.

We are asking that you use a modified Github Flow - sometimes referred to as a feature branch workflow - methodology instead of GitFlow. Conceptually, GitFlow and Github flow are similar.

docker-ansible-coding-exercise's People

Contributors

acolson avatar thebubbleduck avatar

Watchers

 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.