Coder Social home page Coder Social logo

demo-infra's Introduction

demo-infra

Requirements:

  • empty aws account
  • aws credentials and region exported in your shell

instructions

  • fork https://github.com/dano0b/demo-nodejs-mongodb-rest
    • update Jenkinsfile with a valid docker hub account
  • update main.tf aws_key_pair with your public ssh key (used for manual login, ansible and jenkins)
  • run terraform apply
  • wait a few seconds (ec2.py dynamic inventory take sometimes some seconds)
  • run ansible-playbook initial.yml
  • run ansible-playbook jenkins.yml

setup jenkins with:

  • docker exec -it jenkins sh on the jenkins server and install dependencies:
    • apt install -y docker python-pip
    • pip install ansible boto
    • curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
  • install ansible plugin
  • add github server (personal access token with hook rights)
  • add credentials
    • github
    • docker hub
  • add multibranch pipeline "build"
    • use your fork for the demo nodejs app
  • build at least once the the demoapp image

unfinished:

  • second pipeline triggered after build
  • tls certificate for elb

manual app deployment:

  • run ansible-playbook app.yml (can be run manually with exported IMAGEVERSION variable)

demo-infra's People

Contributors

dano0b 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.