Giter Club home page Giter Club logo

jenkins-maven-terraform's Introduction

Jenkins-Maven-Terraform

Instructions to use the project

Pre-Requisites:

  1. Docker
  2. Terraform
  3. You're ready to go!

Steps:

  1. Run docker build -t customjenkins:latest .
  2. Run docker run -d --restart-always -p 50000:50000 -p 8080:8080 --name jenkins customjenkins:latest
  3. Open localhost:8080 in your browser and paste the output of docker exec -it jenkins cat /var/lib/jenkins/home/secrets/initialAdminPassword in the initial jenkins setup.
  4. Install the default plugins and once done go to manage plugins and add the "AWS Global Configuration" plugin and install it.
  5. Make a new global credential with the type AWS and paste in your AWS Account Access Key and Secret.
  6. Make a new Jenkins Pipeline and use the Jenkinsfile.jenkinsfile provided in the repo as pipeline code.
  7. Run terraform init on your machine and then terraform apply.
  8. Run the pipeline, which will checkout a simple hello-world maven project and deploy the image on AWS ECS (Fargate)
  9. Go to your AWS Console and update the ECS service and access your Maven WebApp from the task's public IP.

jenkins-maven-terraform's People

Contributors

vedant15188 avatar

Stargazers

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