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 commit and push is crucial as well as time taking process
and also whenever we pull or whenever we clone ...my repository also will be very slow..
always we prefer to store our build artifact into Nexus Repository or JFrog 

why we are storing the source code into GitHub repository ?
===========================================
it is a central repository ...
whenever we store our source code into this repository 
this source code will be available for my entire team ...
any team member can able to take the source code and modify the code from any place 
this is very flexible method to store the source into GitHub...

git responsibility :
----------------------
to the source code modifications
who,when,at what time, what ...
to provide version  or commit id
this is also called version control system

GitHub responsibility:
--------------------------
this is a cloud storage repo
which is used to store our source code permanently 
means we are maintaining the 2nd copy of our source code 
if there is any problem with our local machine ...we will take this 2nd copy 
and my developer do their work easily 
and also any team member can able to take the source code and modify the code from any place 
this is very flexible method to store the source into GitHub...

Build Tool responsibility:
-----------------------------
1.create project structure 
2.download all the required deps related to our code 
3.compile,test,pack the code 
4.generate build file or build artifact


1.did you involve to generation of project structure ?
2.have you ever involved to generation of project structure ?
===========================================
1.yes, involved 
2.yes, I have involved 
my dev team provide project structure number
based on the project structure number I generate project structure 










 







Comments

Popular posts from this blog

Top 10 Git Commands

Kubernetes cluster setup NOTES step by step using minikube

SonarQube Installation & Configuration Step by step