Giter Club home page Giter Club logo

jenkins_project's Introduction

HOW TO INSTALL JENKINS

jenkins logo on linux

◼️ Jenkins is a free and open source automation server.

◼️ It helps automate the parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery.

 

PREREQUISITES:

  • 1 VPC
  • 6 Subnets
    • 3 Private Subents
    • 3 Public Subnets
  • Public subnets should have IGW attached to it
  • Private subnets should have NG attached to it
  • Configure route tables

 

- To check if everything is configured properly, create ec2 instance, manually, on public subnet and ping www.google.com

Screen Shot 2020-05-10 at 11 19 26 PM

  • If everything is successful, you should have proper response ↑ 👍

 

TO INSTALL JENKINS ON EC2 INSTANCE, FOLLOW THE STEPS BELOW ⬇️ OR

Please refer to null_resource.tf for more details

provisioner "remote-exec" {
    connection {
      type        = "ssh"
      user        = "ec2-user"
      private_key = "${file("~/.ssh/id_rsa")}"
      host        = "${aws_instance.jenkins_server.public_ip}"
    }

    inline = [
    ]

 

1. Jenkins is a Java application, so the first step is to install Java.

"sudo yum install java${var.java_version} -y",

2. The next step is to enable the Jenkins repository.

"curl --silent --location http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | sudo tee /etc/yum.repos.d/jenkins.repo",

3. Add the repository to your system.

"sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key",

4. Once the repository is enabled, install the latest stable version of Jenkins.

"sudo yum install ${var.jenksins_version} -y",

5. After the installation process is completed, start the Jenkins service.

"sudo systemctl start jenkins",

6. Enable the Jenkins service to start on system boot.

"sudo systemctl enable jenkins",

7. This inline command string prints the output for Jenkins Initial Administrator Password.

"echo -e $(tput setaf 1 )'Jenkins initialAdminPassword: '$(tput sgr0) $(tput setaf 2)`
sudo cat /var/lib/jenkins/secrets/initialAdminPassword`$(tput sgr0)",

 

terraform apply -var-file configurations/jenkins.tfvars

Screen Shot 2020-05-10 at 11 01 27 PM

 

Copy http://your_ip_or_domain:8080 from the above output

Screen Shot 2020-05-10 at 11 11 42 PM

 

To Set Up Jenkins, please follow the prompts

Screen Shot 2020-05-10 at 11 12 20 PM

Screen Shot 2020-05-10 at 11 13 07 PM

Screen Shot 2020-05-10 at 11 14 01 PM

Screen Shot 2020-05-10 at 11 14 12 PM

 

Jenkins Dashboard

Screen Shot 2020-05-10 at 11 14 22 PM

 

Screen Shot 2020-05-05 at 3 17 16 PM

jenkins_project's People

Contributors

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