Giter Site home page Giter Site logo

dpline's Introduction

Release

drawing

Detailed prerequisites and instructions for spinning DEV/STAGE/PROD environments

DEV environment

Prerequisites
  • Install Docker (version 19.03.xx or higher)
  • Install Docker Compose (version 1.25.5 or higher)
  • AWS account
  • AWS Profile
  • Create an envfile '.env.dev' from the example '.env.dev.example'
  • Chrome - Allows requests to localhost over HTTPS even when an invalid certificate is presented. `chrome://flags/#allow-insecure-localhost`
Spin DEV environment Execute the following commands:
  1. make up
  2. Browse: https://localhost:8443
Teardown DEV environment Execute the following commands:
  1. ./build/build.sh dev
  2. source .env.dev
  3. docker run --rm -v /var/run/docker.sock:/var/run/docker.sock ${NAMESPACE}/spinner:latest ./spin-docker.py --action destroy
  4. docker image prune -af
  5. docker volume prune -f

STAGE environment

Prerequisites
  • Dockerhub account
  • AWS account
  • AWS Profile
  • Terraform
  • Docker
  • Docker Compose
  • AWS ~/.aws or %UserProfile%\.aws folder
  • subnet ID
  • Security Group with inbound ports for SSH (22), HTTP (80), HTTPS (443), and 8200
  • AWS S3 Bucket
  • Create an envfile '.env.stage' from the example '.env.stage.example'
Spin STAGE environment

Execute the following:

  1. ./build/build.sh stage
  2. source .env.stage
  3. terraform -chdir=deploy init
  4. terraform -chdir=deploy apply --var-file=aws-stage.tfvars
  5. docker run --rm -v $HOME/.aws:/root/.aws -v /var/run/docker.sock:/var/run/docker.sock ${NAMESPACE}/spinner:latest ./spin-docker.py --environment $ENVIRONMENT
  6. Locate the EC2 instance Public DNS: AWS Consule->EC2->Insance->Public DNS (IPv4)
  7. Browse
Teardown STAGE environment

Execute the following:

  1. ./build/build.sh stage
  2. docker run --rm -v ~/.aws:/root/.aws -v /var/run/docker.sock:/var/run/docker.sock ${NAMESPACE}/spinner:latest ./spin-docker.py --environment $ENVIRONMENT --action destroy
  3. docker image prune -af

PROD environment

Prerequisites
  • Dockerhub account
  • AWS account
  • AWS Profile
  • AWS ~/.aws or %UserProfile%\.aws folder
  • keypair
  • subnet ID
  • Security Group with inbound ports for SSH (22), HTTP (80), HTTPS (443), and 8200
  • AWS S3 Bucket
  • Elastic IP Address (EIP)
  • Create an envfile '.env.prod' from the example '.env.prod.example'
Teardown PROD environment

Execute the following:

  1. ./build/build.sh prod
  2. source .env.prod
  3. docker run --rm -v ~/.aws:/root/.aws -v /var/run/docker.sock:/var/run/docker.sock ${NAMESPACE}/spinner:latest ./spin-docker.py --environment $ENVIRONMENT --action destroy
  4. docker image prune -af
Spin PROD environment

Execute the following:

  1. ./build/build.sh prod
  2. terraform -chdir=deploy init
  3. terraform apply -chdir=deploy --var-file=aws-prod.tfvars
  4. docker run --rm -v $HOME/.aws:/root/.aws -v /var/run/docker.sock:/var/run/docker.sock ${NAMESPACE}/spinner:latest ./spin-docker.py --environment $ENVIRONMENT
  5. Browse www.devopsloft.org

dpline's People

Contributors

bregman-arie avatar dependabot-preview[bot] avatar dependabot[bot] avatar lmilbaum avatar

Watchers

 avatar

Forkers

lmilbaum

dpline's Issues

deploy_dpline.sh breaks on OSX

host OS - OSX

./deploy_dpline.sh

[WARNING]: No inventory was parsed, only implicit localhost is available

[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [Setup Host] **************************************************************************************************************************************************

TASK [Gathering Facts] *********************************************************************************************************************************************
ok: [localhost]

TASK [install_docker : Install Docker community version] ***********************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "sudo: a password is required\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
to retry, use: --limit @/Users/liora/git/dpline/dpline/setup/prepare_host.retry

PLAY RECAP *********************************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1

[epic-Incident Management][story-Choose a tool]

Go over the existing tools in the market with the following requirements:

  • open source

  • already used in Red Hat

  • large echo system

I understand that Jira/Bugzilla/Trello were not meant to be used as incident management services. We can consider using one of them for MVP as a starter to on-board the first customer as soon as possible.

[Task][Dpline] Allow to customize delivery pipeline

Let the user pick system and don't choose for him.
User will be able to define the following yaml file:


ci: jenkins
messaging: rabbitmq
monitoring: promethus

and based on his choice, we will deploy a delivery pipeline

[task-Jenkins/RabbitMQ integration]

install Jenkins plugin
Configure jenkins to know rabbitmq
Deploy a job which send notifications to rabbitmq
Run the job
Verify rabbitmq received the messages

everything automated

[epic-Incident Management]

Delivery Pipeline is a multi sub-services service. Each sub-service may through alerts when hitting a failure or close to hitting one.

The alerts should be pushed to a one and only one queue. This is the first sub-service.

The queue should be able to:

  • Consume the alerts and transform them to incidents

  • Analyze the alerts - removing false/positives and aggregation of similar alerts

  • Tracking incidents are resolved according to SLA

  • Remediation by automation

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.