Giter Site home page Giter Site logo

ec-docker's Introduction

EC-Docker

EC-Docker plugin uses the Docker Engine API to deploy containers and services on a stand-alone Docker host or a Docker Swarm cluster.

Build

  1. Download or clone this repository git clone https://github.com/electric-cloud/EC-Docker.git

  2. Build the plugin jar ./dev/build.sh (in EC-Docker directory)

Usage

  1. Install the plugin jar in your local ElectricFlow server ./dev/build.sh --deploy

  2. Login to the ElectricFlow server. Navigate to Administration->Plugins and create a configuration for newly installed and promoted EC-Docker plugin.

Prerequisites:

  • Docker engine must be accessible on TCP port.

  • For deploying services, a swarm cluster must already be setup. Use the following steps to setup a cluster.

    1. Install Docker on all machines that needs to be part of the cluster. Minimum version of Docker required for swarm is v1.12.

    2. Run the following command on any of the machines. The machine on which this command is run becomes the manager node.

      docker swarm init --advertise-addr 192.168.99.100
       Swarm initialized: current node (dxn1zf6l61qsb1josjja83ngz) is now a manager.
        
       To add a worker to this swarm, run the following command:
        
           docker swarm join \
           --token SWMTKN-1-49nj1cmql0jkz5s954yi3oex3nedyz0fb0xx14ie39trti4wxv-8vxv8rssmk743ojnwacrr2e7c \
           192.168.99.100:2377
        
       To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
      
      
    3. Join worker nodes. Run the following command on the rest of nodes. The command to run itself is reported as output of 'docker swarm init' command.

      docker swarm join \
        --token SWMTKN-1-49nj1cmql0jkz5s954yi3oex3nedyz0fb0xx14ie39trti4wxv-8vxv8rssmk743ojnwacrr2e7c \
        192.168.99.100:2377
      
    4. Swarm cluster can also be setup on AWS from AWS Marketplace

Required files:

If docker engine is running behind TLS enabled endpoint, then CA root certificate, client private key and client certificate are required.

Third Party Libraries

ec-docker's People

Contributors

urvashisingh avatar vishal-biyani avatar imago-storm avatar nikhilv avatar xorno avatar dnikolayev avatar jkchew 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.