All Projects → Chabane → generator-mitosis

Chabane / generator-mitosis

Licence: Apache-2.0 license
A micro-service infrastructure generator based on Yeoman/Chatbot, Kubernetes/Docker Swarm, Traefik, Ansible, Jenkins, Spark, Hadoop, Kafka, etc.

Programming Languages

javascript
184084 projects - #8 most used programming language
ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to generator-mitosis

elastic-stack-testing
Elastic Stack Testing Framework (ESTF) 🤖
Stars: ✭ 47 (-39.74%)
Mutual labels:  vagrant, kibana, logstash
S1EM
This project is a SIEM with SIRP and Threat Intel, all in one.
Stars: ✭ 270 (+246.15%)
Mutual labels:  kibana, logstash, traefik
tsharkVM
tshark + ELK analytics virtual machine
Stars: ✭ 51 (-34.62%)
Mutual labels:  vagrant, kibana, logstash
drupalci-sonar-jenkins
DEPRECATED - Drupal CI environment with SonarQube and Jenkins for Drupal Core code analysis.
Stars: ✭ 40 (-48.72%)
Mutual labels:  jenkins, vagrant, sonarqube
Vagrant Elastic Stack
Giving the Elastic Stack a try in Vagrant
Stars: ✭ 131 (+67.95%)
Mutual labels:  vagrant, kibana, logstash
Zebrunner
Zebrunner is a Test Automation Management Tool
Stars: ✭ 131 (+67.95%)
Mutual labels:  jenkins, sonarqube
Springcloudfeign
基于Gitlab + Jenkins + Harbor + Sonarqube + Docker + Kubernetes 完成可持续集成与可持续交付解决方案
Stars: ✭ 149 (+91.03%)
Mutual labels:  jenkins, sonarqube
Jenkinsfiles
Examples for jenkins pipelines, comparing scripted and declarative syntax
Stars: ✭ 187 (+139.74%)
Mutual labels:  jenkins, sonarqube
Medusa
🐈Medusa是一个红队武器库平台,目前包括扫描功能(200+个漏洞)、XSS平台、协同平台、CVE监控等功能,持续开发中 http://medusa.ascotbe.com
Stars: ✭ 796 (+920.51%)
Mutual labels:  jenkins, kibana
tutorials
Tutorials
Stars: ✭ 80 (+2.56%)
Mutual labels:  kibana, logstash
django-angular2-fullstack-devops
All-in-one django/angular2 seed with cli interface for multi-environment devops on aws using ansible/packer/terraform
Stars: ✭ 54 (-30.77%)
Mutual labels:  jenkins, vagrant
Docker For All
Docker applied in development, devops, testing, product management etc.
Stars: ✭ 88 (+12.82%)
Mutual labels:  jenkins, sonarqube
Dashboard
📺 Create your own team dashboard with custom widgets. Built with Next.js, React, styled-components and polished.
Stars: ✭ 1,007 (+1191.03%)
Mutual labels:  jenkins, sonarqube
Sonar Scanner Jenkins
SonarQube Scanner for Jenkins
Stars: ✭ 155 (+98.72%)
Mutual labels:  jenkins, sonarqube
Jenkins Vagrant
Vagrant Environment for a Jenkins Continuous Integration server
Stars: ✭ 34 (-56.41%)
Mutual labels:  jenkins, vagrant
docker grafana statsd elk
Docker repo for a general purpose graphing and logging container - includes graphite+carbon, grafana, statsd, elasticsearch, kibana, nginx, logstash indexer (currently using redis as an intermediary)
Stars: ✭ 19 (-75.64%)
Mutual labels:  kibana, logstash
osint-combiner
Combining OSINT sources in Elastic Stack
Stars: ✭ 77 (-1.28%)
Mutual labels:  kibana, logstash
vagrant-jenkins
Vagrant box running Ubuntu with an installed Jenkins instance
Stars: ✭ 39 (-50%)
Mutual labels:  jenkins, vagrant
ncedc-earthquakes
The complete set of earthquake data with the Elastic Stack demo.
Stars: ✭ 22 (-71.79%)
Mutual labels:  kibana, logstash
Jenkins Bootstrap Shared
Jenkins as immutable infrastructure made easy. A repository of shared scripts meant to be used as a git submodule. Packing Jenkins, plugins, and scripts into immutable packages and images.
Stars: ✭ 270 (+246.15%)
Mutual labels:  jenkins, vagrant

Mitosis - Microservices infrastructure generator

This repo is severely outdated!

npm version build coverage dependency

A microservices infrastructure yeoman generator. Mitosis is inspired from solutions like AWS Cloudformation and Google Cloud Deployment Manager.

It allows developers to load, organize, execute, evolve, administrate and stop microservices using few mitosis commands lines.

And It takes advantage of the following solutions/technologies (alpha):

  • Vagrant development mode
  • Ansible provisionning
  • Kubernetes/docker swarm orchestrate and replicate docker containers
  • ELK Stack log analytics
  • Traefik HTTP reverse proxy
  • Jenkins 2 CI/CD of microservices using Job DSL and Pipeline Job
  • Aritfactory artefacts deployment
  • Sonarqube quality

To prove it efficiency, mitosis generates 2 default microservices, connected to an event's bus using kafka

1 consumer NodeJS & 1 consumer Apache Spark & 1 producer Java

Prerequisites

You need the following installed to use this generator.

  • NodeJS, Node 6 or higher, together with NPM 3 or higher.
  • VirtualBox (optional), tested with Version 5.1.14 r112924.
  • Vagrant (optional), version 1.9.1 or better. Earlier versions of vagrant may not work. with the Vagrant Ubuntu 16.04 box and network configuration.
  • Ansible (optional), tested with Version 2.2.0.
  • Docker registry (optional), at least a docker hub account.
  • Internet access, this generator pulls Vagrant boxes from the Internet as well as installs Ubuntu application packages from the Internet.

Getting started

npm install -g yo
npm install -g generator-mitosis
yo mitosis

The code generated contains a Vagrantfile and associated Ansible playbook scripts to provisioning a nodes Kubernetes/Docker Swarm cluster using VirtualBox and Ubuntu 16.04 (CentOS7 & CoreOS soon).

Vagrant will start two machines. Each machine will have a NAT-ed network interface, through which it can access the Internet, and a private-network interface in the subnet 192.168.77.0/24. The private network is used for intra-cluster communication.

The machines created are:

NAME IP ADDRESS ROLE
appname-manager1 192.168.77.21 Cluster Manager
appname-worker1 192.168.77.31 Node Worker
appname-workern 192.168.77.3n Node Worker

After the vagrant up is complete, the following command and output should be visible on the cluster manager (appname-manager1).

For Docker-swarm

vagrant ssh appname-manager1
docker service ls 
ID            NAME            REPLICAS  IMAGE                COMMAND
654jtwzg8n8k  jenkins        replicated  2/2       mitosis/jenkins:1.0.0-alpha.0
7xrhx2d74b3l  sonarqube      replicated  2/2       mitosis/sonarqube:1.0.0-alpha.0
9y8ycnri8e3s  kibana         replicated  1/1       kibana:5.2.0
m4n86is529p0  viz            replicated  1/1       manomarks/visualizer:latest
n49nex6feeh8  artifactory    replicated  2/2       mitosis/artifactory:1.0.0-alpha.0
ncccc0wi7j2l  registry       global      2/2       registry:2
p7znkv9p41sx  portainer      replicated  1/1       portainer/portainer:1.11.3
r8dznb7p4dpj  logstash       replicated  1/1       logstash:5.2.0
vxlnldtnrdlh  traefik        replicated  1/1       traefik:v1.1.2
wmgihhys4z9j  elasticsearch  replicated  1/1       elasticsearch:5.2.0
docker service inspect --pretty artifactory 
ID:		3ou58zc7xlrwwegyh40xxcuq0
Name:		artifactory
Mode:		Replicated
 Replicas:	2
Placement:
UpdateConfig:
 Parallelism:	1
 On failure:	pause
ContainerSpec:
 Image:		mitosis/artifactory:1.0.0-alpha.0
Resources:
Networks: atqmyyz6jctr34t64o69tyolu
Ports:
 Protocol = tcp
 TargetPort = 8080
 PublishedPort = 9999

For Kubernetes

vagrant ssh appname-manager1
kubectl -n appname get service 
NAME             CLUSTER-IP       EXTERNAL-IP   PORT(S)          AGE
artifactory      10.108.148.112   <nodes>       9999:30003/TCP   35m
jenkins          10.105.77.103    <nodes>       8082:30001/TCP   35m
sonarqube        10.102.141.79    <nodes>       9000:30002/TCP   35m
traefik          10.107.95.12     <nodes>       8080:30004/TCP   35m
kubectl describe svc artifactory -n appname 
Name:                   artifactory
Namespace:              appname
Labels:                 name=artifactory
Selector:               name=artifactory
Type:                   NodePort
IP:                     10.108.148.112
Port:                   <unset> 8080/TCP
NodePort:               <unset> 9999/TCP
Endpoints:              <none>
Session Affinity:       None

Switch to another orchestrator

vagrant destroy -f && vagrant --caas-mode=swarm up // or vagrant --caas-mode=k8s up

Availables soon

Expected for the beta version :

  • Provisioning of a single server (Docker-compose/MiniKube)
  • Deployment on AWS, GCE, OpenStack, CloudStack, etc.
  • Registering/unregistering of micro services mi create/delete my_microservice.yml
  • Add security (SSL/TLS, SELinux, etc.)
  • UI Responsiveness Monitoring
  • Serverless infrastructure (sub project : serverless-playground).
  • Big Data infrastructure (sub project : bigdata-playground).
  • Add new default microservices : Rocket (Rust), Iris (Go), Django (Python), iOT (Akka Actors)
  • Add new solutions like : Rancher, Chef, Puppet, Terraform, HAProxy, etc.

Follow the development

You can follow the development of Mitosis via the public Mitosis board on Trello

Contributing

Pull requests are welcome;

License

Mitosis generator is released under version 2.0 of the Apache License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].