Posts

Showing posts from November, 2025

REAL TIME SCENARIO BASED INTERVIEW Q&A

are you storing the build artifact into GitHub ? did you do this task in your previous project? have you ever done this task in your previous project ? Ans: No I have never I did not  why ? tell me answer ? ================ all the binary files means build artifacts will be stored into nexus repository in my project...and not in GitHub repository what is artifact --it is a combination of files and packages                     it is binary file that is generated by build tool                     this is an executable file or deployable file                      so in my project we are using Maven because this is java project  once we build the project by using maven tool  we get the build artifact in the form of  .jar, .war or .ear any binary or build artifact file size is very large  every time commi...

Jenkins_Java_ Maven_Git software Installation Bash Script

 #!/bin/bash sudo yum update -y sudo yum install wget tree git -y sudo yum install java-21-amazon-corretto -y sudo rm -rf /opt/maven* sudo wget https://dlcdn.apache.org/maven/maven-3/3.9.11/binaries/apache-maven-3.9.11-bin.tar.gz -P /tmp sudo tar xvzf /tmp/apache-maven-3.*-bin.tar.gz -C /opt sudo ln -s /opt/apache-maven-3.* /opt/maven sudo touch  /etc/profile.d/maven.sh echo '''# Apache Maven Environmental Variables export JAVA_HOME=/usr/lib/jvm/java-21-amazon-corretto.x86_64/ export MAVEN_HOME=/opt/maven/ export PATH=${MAVEN_HOME}/bin:${PATH}:${JAVA_HOME}''' | sudo tee /etc/profile.d/maven.sh > /dev/null sudo chmod 775 /etc/profile.d/maven.sh source /etc/profile.d/maven.sh sudo yum update -y sudo wget -O /etc/yum.repos.d/jenkins.repo \     https://pkg.jenkins.io/redhat-stable/jenkins.repo sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key sudo yum install jenkins -y sudo systemctl enable jenkins sudo systemctl start jenkins sudo sys...

Jenkins Installation and configuration step by step ?

how to install & configure Jenkins ========================= requirement: 1.OS -------amazon Linux                      2.CPU & RAM--2CPU & 4GB RAM                           instance family : t3.medium   0.0448USD/hour (use this one)                                          t2.medium   0.0496USD/hour (don't use it)                     3.volume:30GB                     4.JAVA SOFTWARE ---->17 or 21 (Pls take 21 version) step1: create security group       ex: security group name : Jenkins              add 1st port:22              add 2nd port:8080...

Nexus Installation & Configuration step by step

how to install and configure nexus on Linux =============================== organization name: sonatype product name: nexus  purpose: to store build artifacts  and also docker images  server requirement: 1.os:amazon Linux                               2.CPU & RAM: 2CPU 4GB RAM                                      select instance type family: t3.medium --very less cost                                        3.HardDisk:30 GB                              4.Java software Version 11                              5.must open the port number :8081...

What is Terraform & Why Terraform : Scenario Based Interview Question & Answer

For our project, we create infra like S3 buckets and our networks and servers. Like these, there are so many requirements in my project. Previously we were working with different services based on the cloud platform. Suppose I am creating infrastructure in AWS; we just used CloudFormation, like in Azure We used Azure Resource Manager and GCP; we used Google Cloud Deployment Manager...like that we were working on our project. but right now in my latest project, we implemented a new style infra creation  using only one software tool across all the cloud platforms like AWS, Azure, and GCP. The software tool name is Terraform. terraform is a infrastructure creation software tool which we are using in my current project With the help of this Terraform, we are creating our project infrastructure, like S3 buckets, networks, services, and so on. Previously we were spending a lot of time to crate infrastructure by using respective cloud services ...instead of using all these services, we ju...