├── Devops_Best_Practises.md ├── Devops_mock_interview_1.md ├── Devops_mock_interview_2.md ├── Devops_mock_interview_3.md ├── Devops_mock_interview_4.md ├── Devops_mock_interview_5.md ├── Devops_mock_interview_6.md ├── Devops_mock_interview_7.md ├── Devops_mock_interview_8.md └── Devops_mock_interview_8 └── shell_script ├── color.sh ├── color2.sh ├── dependency_managment ├── README.md ├── addition │ ├── pom.xml │ ├── src │ │ ├── main │ │ │ └── java │ │ │ │ └── App.java │ │ └── test │ │ │ └── AppTest.java │ └── target │ │ ├── addition-1.0.jar │ │ ├── classes │ │ └── com │ │ │ └── apple │ │ │ └── com │ │ │ └── App.class │ │ ├── maven-archiver │ │ └── pom.properties │ │ └── maven-status │ │ └── maven-compiler-plugin │ │ └── compile │ │ └── default-compile │ │ ├── createdFiles.lst │ │ └── inputFiles.lst ├── pom.xml ├── project.status └── substraction │ ├── pom.xml │ ├── src │ ├── main │ │ └── java │ │ │ └── App.java │ └── test │ │ └── AppTest.java │ └── target │ ├── classes │ └── com │ │ └── apple │ │ └── com │ │ └── App.class │ ├── maven-archiver │ └── pom.properties │ ├── maven-status │ └── maven-compiler-plugin │ │ └── compile │ │ └── default-compile │ │ ├── createdFiles.lst │ │ └── inputFiles.lst │ └── substraction-1.0.jar ├── function.sh ├── maven.sh ├── project.list ├── sample_java ├── pom.xml ├── pom_eff.xml ├── src │ ├── main │ │ └── java │ │ │ └── App.java │ └── test │ │ └── AppTest.java └── target │ └── site │ ├── css │ ├── maven-base.css │ ├── maven-theme.css │ ├── print.css │ └── site.css │ ├── dependencies.html │ ├── dependency-info.html │ ├── images │ ├── close.gif │ ├── collapsed.gif │ ├── expanded.gif │ ├── external.png │ ├── icon_error_sml.gif │ ├── icon_info_sml.gif │ ├── icon_success_sml.gif │ ├── icon_warning_sml.gif │ ├── logos │ │ ├── build-by-maven-black.png │ │ ├── build-by-maven-white.png │ │ └── maven-feather.png │ └── newwindow.png │ ├── index.html │ ├── plugin-management.html │ ├── plugins.html │ ├── project-info.html │ └── summary.html └── shift.sh /Devops_Best_Practises.md: -------------------------------------------------------------------------------- 1 | ## Shell scripting 2 | 1. **Use Indentation** 3 | ``` 4 | Indentation is an important part of making your code more readable and understandable. 5 | It can help you see the structure of your code at a glance and make it easier to follow. 6 | ``` 7 | 2. **Use Meaningful Variable Names** 8 | ``` 9 | Using meaningful variable names can help make your code more readable and understandable. 10 | It also makes it easier for others to maintain your code if they need to modify it in the future. 11 | ``` 12 | 3. **Dont hard code the same values multiple times in the script, Instead use Variables to store the value and refer it where ever its required** 13 | ``` 14 | When creating shell scripts for automation, avoid hardcoding values such as IP addresses, file paths, or other system-specific details. 15 | Instead, use variables or configuration files to store and reference this information. 16 | This will make the script more portable and easier to maintain in the future. 17 | ``` 18 | 4. **Use Functions** 19 | ``` 20 | Functions are blocks of code that can be called multiple times from within a script. 21 | They help to keep the code organized and make it easier to maintain. 22 | ``` 23 | 5. **Use Error Checking** 24 | ``` 25 | error checking is an important part of shell scripting, especially for DevOps automation. 26 | It helps you catch errors early on and prevent them from causing problems down the line. 27 | ``` 28 | 6. **Dont have many prompts, Instead use parameters** 29 | ``` 30 | Users will be annoyed if you have too many prompts, instaed of that ask user to send it as parameters. 31 | By using $1,$2,$3..$n you can easily access them in any part of the script 32 | ``` 33 | 7. **Use $() instead of backticks, to evaluate command and store o/p in variable** 34 | ``` 35 | if you have backticks in the script, it will very hard to read. 36 | $() increases the readability and has many other advantages too 37 | ``` 38 | ---------------- 39 | 40 | ## Docker 41 | 42 | 1. **Understand Build context and dockerignore** 43 | ``` 44 | The “.” parameter in docker build instruction is the build context. 45 | So never run Dockerfile in a folder where so many files exists it will try to copy everything , Instead create empty folder to build or build Dockerfile where only required files exists 46 | Also, create a .dockerignore file to explicitly exclude files and directories. 47 | ``` 48 | 49 | 2. **Rootless containers** 50 | ``` 51 | Never run ENTRYPOINT/CMD instructions with root user, by default it run's with root user. 52 | However, it is a Dockerfile best practice to avoid doing that. 53 | There are very few use cases where the container needs to execute as root, so don’t forget to include the USER instruction to change the default effective UID to a non-root user. 54 | ``` 55 | 3. **Multistage Dockerfiles** 56 | ``` 57 | In a multistage build, you create an intermediate container – or stage – with all the required tools to compile or produce your final artifacts (i.e., the final executable). 58 | Then, you copy only the resulting artifacts to the final image, without additional development dependencies, temporary build files, etc. 59 | 60 | A well crafted multistage build includes only the minimal required binaries and dependencies in the final image, and not build tools or intermediate files. 61 | This images size drastically, reduces the attack surface & decreasing vulnerabilities. 62 | ``` 63 | 4. **Use trusted base images** 64 | ``` 65 | Carefully choose the base for your images (the FROM instruction). 66 | 67 | Building on top of untrusted or unmaintained images will inherit all of the problems and vulnerabilities from that image into your containers. 68 | ``` 69 | 5. **Use smaller base images like alpine version, buster versions if possible** 70 | ``` 71 | By which we can create smaller images and small images are faster to pull over the network and faster to load into memory when starting containers or services. 72 | ``` 73 | 74 | ## Kubernetes 75 | 1. **Use Namespaces** 76 | ``` 77 | Namespaces are very important in organizing your Kubernetes cluster and keeping it secured from other teams working on the same cluster. 78 | If your Kubernetes cluster is large (hundreds of nodes) and multiple teams are working on it, you need to have separate namespaces for each team. 79 | ``` 80 | 2. **Use Proper labels** 81 | ``` 82 | A Kubernetes cluster includes multiple elements like services, pods, containers, networks, etc. 83 | Maintaining all of these resources and keeping track of how they interact with each other in a cluster is cumbersome. 84 | This is where labels come in. Kubernetes labels are key-value pairs that organize your cluster resources. 85 | ``` 86 | 3. **Readiness and Liveness Probes** 87 | ``` 88 | Readiness and liveness probes are strongly recommended; it is almost always better to use them than to forego them. These probes are essentially health checks. 89 | 90 | - Readiness probe 91 | Ensures a given pod is up-and-running before allowing the load to get directed to that pod. 92 | If the pod is not ready, the requests are taken away from your service until the probe verifies the pod is up. 93 | 94 | - Liveness probe 95 | Verifies if the application is still running or not. 96 | This probe tries to ping the pod for a response from it and then check its health. 97 | If there is no response, then the application is not running on the pod. 98 | The liveness probe launches a new pod and starts the application on it if the check fails. 99 | ``` 100 | 4. **Set Resource Requests & Limits** 101 | ``` 102 | Occasionally deploying an application to a production cluster can fail due limited resources available on that cluster. 103 | This is a common challenge when working with a Kubernetes cluster and it’s caused when resource requests and limits are not set. 104 | Without resource requests and limits, pods in a cluster can start utilizing more resources than required. 105 | If the pod starts consuming more CPU or memory on the node, then the scheduler may not be able to place new pods, and even the node itself may crash. 106 | 107 | Resource requests specify the minimum amount of resources a container can use 108 | Resource limits specify the maximum amount of resources a container can use. 109 | ``` 110 | 111 | 5. **Don’t Run as Root** 112 | ``` 113 | The UID (the Kubernetes systems-generated string that uniquely identifies objects) of the user running a container maps directly to the host. If the container runs as UID 0 (root), it will also appear as root on the node it’s running on. 114 | 115 | Kubernetes has built-in protections to prevent escalation of privileges with this mechanism, However, there’s always a chance that security issues could allow for escalating privileges. Avoid the situation by not running run your containers as root. Instead, modify the Dockerfile for your built containers to create and use a user with a known UID. 116 | ``` 117 | 118 | ## Jenkins 119 | 1. **Cleaning up old Jenkins builds** 120 | ``` 121 | As a Jenkins administrator, removing old or unwanted builds keeps the Jenkins controller running efficiently. When you do not remove older builds, there are less resources for more current and relevant builds. This video reviews using the buildDiscarder directive in individual Pipeline jobs. The video also reviews the process to keep specific historical builds. 122 | ``` 123 | 2. **Never hardcode secrets or credentials in pipeline** 124 | ``` 125 | if you hard code in pipeline as its CICD tool many people will have access to pipeline code or build logs, so there might be a chance to mis-usage of the secrets. 126 | Use credntials by which you can secure secret values 127 | ``` 128 | 3. **Install only required plugins** 129 | ``` 130 | dont install plugins unnecessarily it might createissues with the security, storage or restart of jenkins. 131 | ``` 132 | 4. **Executor count in node configuration** 133 | ``` 134 | Use as less executors as possible, if the value is high then node will used for executing multiple builds. Pipeline execution time will be increased because it should share resources. 135 | If value is high sometimes nodes will become unresponsive. 136 | ``` 137 | 5. **Use parallel execution of stages when stages are not dependent on each other** 138 | ``` 139 | This makes pipeline to execute faster and nodes can serve other pipeline runs 140 | ``` 141 | 142 | ## Ansible 143 | 144 | 1. **Use roles to keep playbooks well-organized** 145 | ``` 146 | Roles keep ansible playbook organized,easier maintanance & increases reusabilty. 147 | ``` 148 | 149 | 2. **make use ansible vault in case if you have any secrets** 150 | ``` 151 | The more you use Ansible, more tasks become automated. You will reach a point, that things such as SSL configuration, database passwords needs to be automated. 152 | This is where Ansible provides the vault module so you could safely save these data and automate it without any risks. 153 | ``` 154 | 155 | 3. **Turn on Gather Facts only when required** 156 | ``` 157 | When a playbook is executed, Ansible starts collecting facts (data that is stored into variables) about the remote host prior execution. These details include variables from the remote host such as network configuration variables, hostnames so you could use it in your playbook. 158 | 159 | This is a time-consuming process, in order to speed up the execution of the playbook we turn gathering facts off. 160 | ``` 161 | 162 | 163 | -------------------------------------------------------------------------------- /Devops_mock_interview_1.md: -------------------------------------------------------------------------------- 1 | - Mock interview video - https://youtu.be/i7YJesoeWFI 2 | - Mock interview Answers - https://youtu.be/5w8qVukxXXY 3 | 4 | GIT 5 | --------------------------------------------------------------------------------------------------------------------------------- 6 | 1. Why we need git? What makes git unique from other tools like SVN? 7 | 2. Let's say i have maven repo cloned on to my local, did some changes and i have build the code now target folder will be generated. So now when i do git operations like git add, git commit or any other git operations target folder should not be considered, how would you achieve the same? 8 | 3. difference between git pull and git fetch? 9 | 4. How to clone specific branch in git? 10 | 11 | Maven 12 | -------------------------------------------------------------------------------------------------------------------------- 13 | 5. when i issue mvn install what all things happen in background? 14 | 6. what are the settings you need to do before running mvn deploy? 15 | 7. why maven takes much time for 1st execution and from 2nd execution it will take less time? 16 | 17 | Unix and Shell Scripting 18 | -------------------------------------------------------------------------------------------------------- 19 | 8. How to get present working folder? 20 | 9. How to copy files from local windows machine to cloud based Linux machine? 21 | 10. A shell script named test.sh can accept 4 parameters i.e, a,b,c,d. the parameters wont be supplied in order always and number of parameters might also vary( only 2 parameters user might supply sometimes), how to identify position of letter c? 22 | 23 | Ansible 24 | --------------------------------------------------------------------------------------------------------------------- 25 | 11. Why we need ad-hoc ansible commands, scenario where you have used ansible ad-hoc command? 26 | 12. When i need detailed logs on executing ansible playbook what option i need to use? 27 | 13. what is ansible.cfg file? 28 | 14. what are the modules have you worked on? which module will you use for getting the file from node to master? 29 | 15. Lets say i have a playbook which has 5 tasks in playbook, first 2 tasks should run on local machine and other 3 tasks should run on node? 30 | 31 | Jenkins 32 | ----------------------------------------------------------------------------------------------------------------------- 33 | 16. How to save only last 5 builds of jenkins job? 34 | 17. Have you worked on Jenknsfile? can we use docker container as a node in Jenkinsfile? Who will handle docker container creation and deletion? If i am building a maven project always docker container is fresh instance it will try to download dependency from repository, what measures you will take to reduce build time? 35 | 18. Why we need multi branch pipeline? 36 | 19. If you forget Jenkins password, how would you login back? 37 | 38 | Docker 39 | ------------------------------------------------------------------------------------------------------------------------------ 40 | 20. Any 3 best practices of docker? 41 | 21. Difference between docker stop and docker kill? 42 | 22. Command to list conatiners which state is exited? 43 | 23. command to clean-up docker host ( deleting stopped conatiners, dangling images and unused networks)? 44 | 24. What version of docker you have used? Specific reason to use that particular version? 45 | 25. Can we have multiple CMD in Dockerfile? 46 | 26. Have you worked on docker swarm and docker compose? 47 | 48 | Kubernetes 49 | -------------------------------------------------------------------------------------------------------------------------------------- 50 | 27. Can we have multiple conatiners in a pod? Can we have similar conatiners in a pod? Lets say i have 4 conatiners, one of them has failed how would you check which container has failed? 51 | 28. What is liveness and readiness probe? Why we need them? 52 | 29. Have you worked on kubernetes monitoring? Which tools you have used? 53 | 30. Can we deploy a pod on particular node? 54 | -------------------------------------------------------------------------------- /Devops_mock_interview_2.md: -------------------------------------------------------------------------------- 1 | - Mock interview video - https://youtu.be/lXGAJElFxaA 2 | - Mock interview Answers - https://youtu.be/7WJ31VFk1_Y 3 | 4 | 5 | GIT 6 | --------------------------------------------------------------------------------------------------------------------------------- 7 | 1. Lets say your organization has github and bitbucket to store code, you have cloned a repo onto your local and changed directory name. after some days one of your team members asks you to share clone link, how would you provide the same? 8 | 2. I have shell script to delete particular dependency ( repo is maven project ). before running the script i need to clone repo to my local, here point to note i should only clone master branch and only last commit ( last commit has all the code ) how would you do this? 9 | 3. what is submodule and why we need submodule? 10 | 4. Lets say you have changed 5 files a,b,c,d and e in a repo and you did git add ., now all the files are in staging area, now i decided not to commit file d. how would delete it from staging area? 11 | 12 | Maven 13 | -------------------------------------------------------------------------------------------------------------------------- 14 | 5. what is multi module project in maven and what are the setting you want to do in multi module parent and child project? what is dependency management? 15 | 6. what is transitive dependency? 16 | 17 | Jenkins 18 | -------------------------------------------------------------------------------------------------------- 19 | 7. Have you worked on commit based job in jenkins? what settings you need to do in jenkins and github to setup commit based job? 20 | 8. you want to create 50 freestyle jobs with same configurations, but only change is job name. how would you achieve the same? 21 | 9. How can you copy job from your local jenkins instance to other local jenkins instance? 22 | 23 | Unix and Shell scripting 24 | --------------------------------------------------------------------------------------------------------------------- 25 | 10. write a script which accepts file or folder, if its folder delete it else print "this is a file"? 26 | 11. How to check whether particular port is already in use or not? 27 | 12. Logic for checking whether supplied string for a script is palindrome or not? what are all the commands you will use? 28 | 13. command to get number of lines in a file? 29 | 30 | Ansible 31 | ----------------------------------------------------------------------------------------------------------------------- 32 | 14. Lets say i have 4 machines consider 1 as ansible master other 3 as nodes, what are the basic setup you need to do for ansible cluster? 33 | 15. what are ansible roles? why we need ansible roles? have you worked on ansible galaxy? 34 | 16. What are ansible facts? 35 | 17. Can we have windows machine as ansible master? as node?have you worked on any windows modules? can you list few?any extra configuration do we need to do? 36 | 37 | Docker 38 | ------------------------------------------------------------------------------------------------------------------------------ 39 | 18. Have you worked on multi-stage dockerfile and why we need that? 40 | 19. Lets say i have container which is attached with a volume, if container crashes what happens to volume? 41 | 20. can you copy a file form local to run container? 42 | 43 | 44 | Kubernetes 45 | -------------------------------------------------------------------------------------------------------------------------------------- 46 | 21. what is init container and side-car container?can you give simple scenario where we use these conatiners? 47 | 22. which one is default deployment strategy? how it works? 48 | 23. command to check the container logs in pod? 49 | 24. what are the types of services present in kubernetes? 50 | 25. What is the link between pod and service? 51 | -------------------------------------------------------------------------------- /Devops_mock_interview_3.md: -------------------------------------------------------------------------------- 1 | - Mock interview video - https://youtu.be/IrIF9IjOwgs 2 | - Mock interview Answers - 3 | 4 | 5 | GIT 6 | --------------------------------------------------------------------------------------------------------------------------------- 7 | 1. What is git-cherry-pick? why we use it? 8 | 2. Let’s say you’re working on new feature in some branch, now your manager says stop working on that and change few other things on old code. Here after changing the old code, I need to work on new code, so I need to place my new changes some place How would handle this scenario? 9 | 3. What is a conflict in git? 10 | 4. command to list all branches in a repo? 11 | 12 | 13 | Maven 14 | -------------------------------------------------------------------------------------------------------------------------- 15 | 5. .m2 is local repository for maven, now I don’t want to use .m2 folder as my local repository I want to use some other folder as my local, is it possible in maven? If yes, how would you do that? 16 | 17 | ``` 18 | mvn install -Dmaven.repo.local=/alternate/repo/location 19 | ``` 20 | 6. maven follows convention over configuration that means it assumes code should be there under src/main/java, test cases under src/tests and many more.Here my requirement is I don’t want to follow that conventions I need to use different folder structure is that possible in maven? 21 | ``` 22 | mvn help:effective-pom -Doutput=pom_eff.xml 23 | ``` 24 | 7. What are dependency and plugin in maven? Give one example for each? 25 | 8. What are 3 build life cycles in maven? 26 | 9. In Which tag we will mention output artifact type( like jar, war or any other)? 27 | 28 | Unix and Shell scripting 29 | --------------------------------------------------------------------------------------------------------------------- 30 | 10. In a file I have ip addresses , I want list unique ip addresses with number of times its present in file? 31 | ``` 32 | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" logfile | sort | uniq -c | sort -nr 33 | ``` 34 | 11. What is exit status in UNIX? 35 | 12. Lets say I have shell script name magic.sh when I execute. It gives “This is from magic.sh”, so now if I change file name to magic-test.sh I should get “This is from magic-test.sh” basically as name of file chages my output should also change? 36 | 13. What is shebang ? Why it is used? 37 | 38 | 39 | Jenkins 40 | -------------------------------------------------------------------------------------------------------- 41 | 14. How to Downgrade plugins in Jenkins? 42 | 15. Have you worked on Jenkinsfile? Can we use different nodes for each stage? 43 | 16. Can you list few ways by which we can trigger our build in Jenkins? What is the difference between Build Periodically and Poll SCM? 44 | 45 | AWS 46 | ------------------------------------------------------------------------------------------------------------- 47 | 17. What are roles and policies in AWS IAM? 48 | 18. Lets say I have 50 users , for all 50 users I need to provide same privileges how do it? 49 | 19. I want to give programmatic access means They can access AWS services via api’s But should not be access AWS web console 50 | 20. As AMI is region specific I want create Machine with AMI which there in other Region is that possible? 51 | 21. Why we need security groups? By default what is outbound rules? 52 | 22. What is VPC? Give a brief about VPC? 53 | 23. Have you worked on Load balancers? If Yes, tell which load balancers you have used? 54 | 24. Lets say I have created auto scaling rule when ever Load goes more than 60% create a new instance Currently I have 3 machines, 1st machine load is 62% , 2nd machine 30% and 3rd also 30%. Now will auto scale rule creates new machine ? 55 | 56 | Ansible 57 | ----------------------------------------------------------------------------------------------------------------------- 58 | 25. What is the best method to make your ansible YAML files reusable? 59 | 26. What is ansible vault and ansible tower? 60 | 27. Lets say I have playbook need to be run with Root user how would you do this? 61 | 28. Difference between copy and fetch module? 62 | 63 | Docker 64 | ------------------------------------------------------------------------------------------------------------------------------ 65 | 29. Lets say I have 1 GB file that has to be sent to docker daemon, as its 1GB it will take muchtime and network too. By which option while building dockerfile we can send the fileIn better manner? 66 | 30. What is the difference between ADD and COPY docker instructions in Dockerfile? 67 | 31. Command to remove to stopped and running Containers? 68 | 32. Inside the container I did many changes like Creating, modifying and deleting file but I Wanted to check which files has been changed And what action has been taken what is the Command we need to use ? 69 | 70 | 71 | Kubernetes 72 | -------------------------------------------------------------------------------------------------------------------------------------- 73 | 33. List objects you know in kubernetes?Give a brief about each object? 74 | 34. Command to list pods and deployments 75 | 76 | -------------------------------------------------------------------------------- /Devops_mock_interview_4.md: -------------------------------------------------------------------------------- 1 | GIT 2 | --------------- 3 | 1. What is git reset ? Types of reset ? 4 | 2. How to delete local branch and remote branch in git ? 5 | 3. Difference between git diff and git status ? 6 | 4. What are hooks in git? 7 | 8 | MAVEN 9 | -------- 10 | 5. What are things you need to set, if you want download dependency from private repository ? 11 | 6. What are the issues you faced while working on maven projects? 12 | 7. Command to skip the test cases in maven 13 | 14 | JENKINS 15 | ---------- 16 | 8. How to set Jenkins build to fail based specific word in console output ? 17 | 9. What are active and reactive parameters (Dynamic parameterization) in Jenkins ? 18 | 10. How to customize the build number display to something else in Jenkins job page? 19 | 11. What are multi branch pipeline? 20 | 12. What is shared library in Jenkins ? 21 | 22 | 23 | UNIX & SHELL SCRIPTING 24 | ----------- 25 | 13. Command to find empty files in a given directory? 26 | 14. Commands you will use it for configuring ssh connectivity between 2 machines and what files will be present in .ssh folder? 27 | 15. How to schedule a shell script in unix machines? 28 | 16. Command to get load average ? 29 | 17. Need to identify ip addresses in log file and count of ip addresses in log file? 30 | 31 | ANSIBLE 32 | ------------ 33 | 18. Why ansible ? What makes ansible powerful than other tools like chef and puppet? 34 | 19. 5 modules that you have worked on? Can we create custom module ? 35 | 20. What is dynamic inventory in ansible? 36 | 21. Lets say I have both Ubuntu and centos machines as nodes I want install application tree using same playbook, how would you approach this scenario? 37 | 22. How to handle prompts with ansible playbook? 38 | 39 | DOCKER 40 | ---------- 41 | 23. What does ONBUILD instruction do in Dockerfile? 42 | 24. What is the use of .dockerignore file? 43 | 25. I have dockerfile that accepts arguments, if I supply value as “1” then it should use maven 2.x version for base image and if I supply “2” then it should take maven latest as base image 44 | 26. What are docker compose and docker swarm? 45 | 46 | KUBERNETES 47 | --------- 48 | 27. Components in kubernetes architecture? 49 | 28. What are stateful sets in kuberentes? 50 | 29. Command to find which container has failed in pod and command to get logs of container 51 | 30. Tools to maintain kubernetes log files 52 | 53 | AWS 54 | ----- 55 | 31. Services used AWS and tasks performed in AWS 56 | -------------------------------------------------------------------------------- /Devops_mock_interview_5.md: -------------------------------------------------------------------------------- 1 | Git 2 | ------ 3 | 1. what is the importance .git directory? 4 | 2. what are the branches, diff between remote and local branches? 5 | 3. what Branching strategy that you are familier with? 6 | 4. What PR (Pull request) is? whats the importance of PR? 7 | 8 | Unix & Shell scripting 9 | ----------- 10 | 5. what is command for checking the running process? how to get PID of process? 11 | 6. Command to get whether certain port is listing or not? 12 | 7. How to indentify the number of params that has been sent to shell script? 13 | 8. command to delete empty line in a file? 14 | 15 | Helm 16 | --- 17 | 9. what is the need for helm charts? 18 | 10. what version helm your using? what difference between helm 2 & helm3? 19 | 20 | Kubernetes 21 | ----- 22 | 11. What is Pod? 23 | 12. Creation of cluster for k8s, can we have multi master and multi nodes cluster? 24 | 13. On what basis the pod will be deployed on a specific node? 25 | 14. Can we deploy pod on master node? 26 | 15. What are steps that you might take to make one node into maintance? 27 | 16. In the kubeadm setup the control plane components are created as pods, where the defination those pods will be defined? 28 | 29 | Docker 30 | ----- 31 | 17. How to configure docker private registry? 32 | 18. Types of network in docker? if you dont specify network to deploy on which network the conatiner will be created? 33 | 19. Explain a sample dockerfile that you have used in your project? 34 | 20. Can we launch linux conatiners windows and viceversa? 35 | 36 | Maven 37 | ---- 38 | 21. what is multi module project? 39 | 22. what is the importance of dependency managment? 40 | 23. what are the settings that you need to do for mvn deploy ( to push artifcats to repository )? 41 | 24. mvn version that you have used? 42 | 43 | Jenkin 44 | --- 45 | 25. what is the need of CICD tools? 46 | 26. What type of Jenkinsfile you have worked on? 47 | 27. In master slave setup if I want run job on specific node is is possible? 48 | 28. what is the importance of Jenkins secrets? 49 | 50 | Monitoring 51 | ---- 52 | 29. If given a chance to setup monitoring solution for project what are tools that you use? 53 | -------------------------------------------------------------------------------- /Devops_mock_interview_6.md: -------------------------------------------------------------------------------- 1 | General questions 2 | --- 3 | 1. What do you mean by continues integration, continues delivery and continues deployment 4 | 5 | Git 6 | --- 7 | 2. Which version of git you have used? 8 | 3. Difference between git merge and git rebase? 9 | 4. What is git squash? 10 | 5. Branching strategy used in your project? 11 | 6. Command to list all commits? 12 | 13 | Maven 14 | --- 15 | 7. Tell me 3 build lifecycle in maven? What does mvn site does? 16 | 8. Is there way by which we can set local repository as some other custom directory, other than .m2? 17 | 9. Settings that you make for mvn deploy? 18 | 10. What is the default value of packaging tag? What other values for other artifact types? 19 | 11. What are GAV's? 20 | 21 | Jenkins 22 | --- 23 | 12. What are types jobs you have worked on?? 24 | 13. Can we have job for pr and once merge is done the source branch should be deleted? 25 | 14. How do you take Jenkins backup? 26 | 15. Can you tell me importance of post block?? 27 | 28 | Docker 29 | --- 30 | 16. Why we need docker compose and docker swarm 31 | 17. What's the difference between docker volume and docker mounting 32 | 18. What is the importance of .dockerigonre file, can name docker file with any other name? 33 | 19. I need to delete all stopped containers and unused images command for that? 34 | 20. How do you monitor docker in production 35 | 21. Is it good to use docker compose in production 36 | 37 | Aws 38 | --- 39 | 22. Services that you have worked on? 40 | 23. Roles in IAM? 41 | 24. I have 3 tier application, configure it with private and public subnet? 42 | 25. How to replicate or create same machine with same configuration? 43 | 26. Explain auto scalling in aws? 44 | 45 | Kubernetes 46 | --- 47 | 27. Why pods are not scheduled on master 48 | 28. Why config maps are used 49 | 29. What is the default deployment strategy 50 | 30. Have you faced any issues while working k8s 51 | 31. What is service account, role, role binding and namespace 52 | 32. Why we need helm 53 | 54 | Scripting 55 | ---- 56 | 33. You need to identify unused fields In values.yaml how would you approach this? 57 | 34. What is exit status? 58 | 35. Given machine, how will you identify which machine it is? 59 | 60 | Ansible 61 | ---- 62 | 36. What is ansible galaxy 63 | 37. What are handlers and notify in ansible playbook 64 | 38. What are adhoc commands 65 | -------------------------------------------------------------------------------- /Devops_mock_interview_7.md: -------------------------------------------------------------------------------- 1 | Git & Github 2 | --- 3 | 1. Branching strategy? 4 | 2. Need a script which identify inactive branches ( no commits since 2 months )? 5 | 3. How to set configs globally in git? 6 | 7 | Maven 8 | --- 9 | 1. what are the tags that you came across in pom.xml? 10 | 2. Explain maven life cycle? 11 | 3. 12 | -------------------------------------------------------------------------------- /Devops_mock_interview_8.md: -------------------------------------------------------------------------------- 1 | Unix & Shell 2 | --- 3 | 1. Lets say you have a script that will take more than a day to execute, in this case how do you run that script. Also as user you might not able to keep machine in interactive mode for longer period. 4 | 3. is it possible to store a commands output, either success or failure to the same file? 5 | 4. what is debug mode in shell script? 6 | 5. set of commands executed at multiples places in shell script, want to standardize that is it possible something like to define function? 7 | 6. In shell script can we supply parameters to functions? 8 | 7. what is the use of shift command? 9 | 10. difference between break and exit 0 in shell script? 10 | 11. delete files which are older than 10 days? 11 | 12. delete empty files in a given directory? 12 | 13 | 14 | 15 | Monitoring 16 | ----- 17 | 13. what is the importance of monitoring? 18 | 14. difference between metrics monitoring and log monitoring, give example for both type of monitoring? 19 | 15. how do we configure endpoint in promethus to scrape the data? 20 | 16. what is the use of node exporter and alert manager in prometheus? 21 | 17. Can we monitor jenkins using prometheus? Also can we send mailer when jenkins is down? 22 | 18. what are metric types that prometheus can accept? 23 | 24 | kubernetes 25 | ---- 26 | 19. explain any 4 different types of pod statuses and also the reasons that why pod might go into that state? 27 | 20. what are operators and give one example where we can use operator? 28 | 21. what is the importance of kubeconfig file? Also lets say when you login to kuberenets by default it will pointed to default namespace, if i want list any objects which are other namespace need concate -n option for all the kubectl commands, is there a way we can set the namaspace to aviod -n option in all the commands? 29 | 22. given a object how do we find api version and kind with respect to cluster? 30 | 23. any work around to bring one pod out of rotation, when multiple replicas has been deployed? 31 | 32 | Jenkins 33 | ---- 34 | 24. list of best practices to follow while writing Jenkins pipeline? 35 | 25. Is it possible to run each stage on different agaent? 36 | 26. Is it possible to change success or error message that we see in console ouput ? 37 | 27. Have list of command that has to executed in certain directory in the code, is it possible to do the same? 38 | 28. Can we have versioning on Jenkins freestyle job? 39 | 40 | Ansible 41 | --- 42 | 29. Is it possible to set fact using ansible playbook? 43 | 30. can we concate line to exsisting file in remote server, example exporting env variable in bashrc? ( also imporatnt when the playbook runs again if the value exsists then you should not insert) 44 | 31. Difference between copy and template module? 45 | 32. In one of the template file need to use remote machine ip, how do we read the machine ip value? 46 | 47 | Devops General Interview Questions 48 | --- 49 | - Daily activites of devops engineer 50 | - challenges that you have faced while working devops 51 | - what are the envirnments which are there in the organization 52 | - How the deployents move from one env to other env 53 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/color.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | RED='\033[0;31m' 3 | GREEN='\033[0;32m' 4 | YELLOW='\033[0;33m' 5 | NC='\033[0m' 6 | 7 | if [ $# -eq 2 ] 8 | then 9 | sum=$(( $1 + $2 )) 10 | diff=`expr $1 - $2` 11 | echo "${GREEN}sum of $1 and $2 = $sum " 12 | echo "diff of $1 and $2 = $diff ${NC}" 13 | elif [ $# -lt 2 ] 14 | then 15 | echo "${RED}args are too less" 16 | echo "the script execution is not correct" 17 | echo "ex - sh test.sh number1 number2 ${NC}" 18 | elif [ $# -gt 2 ] 19 | then 20 | echo "${YELLOW} args are too many" 21 | echo "the script execution is not correct" 22 | echo "ex - sh test.sh number1 number2 ${NC}" 23 | fi 24 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/color2.sh: -------------------------------------------------------------------------------- 1 | red=`tput setaf 1` 2 | green=`tput setaf 2` 3 | reset=`tput sgr0` 4 | echo "${red}red text ${green}green text${reset} no color" 5 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/README.md: -------------------------------------------------------------------------------- 1 | https://maven.apache.org/pom.html 2 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/addition/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | 5 | 6 | calculator 7 | calculator-main 8 | 1.0 9 | 10 | 11 | addition 12 | 1.0 13 | 14 | addition 15 | 16 | 17 | 1.6 18 | 1.6 19 | 20 | 21 | 22 | 23 | javax.servlet 24 | servlet-api 25 | 26 | 27 | junit 28 | junit 29 | test 30 | 31 | 32 | org.apache.maven.surefire 33 | surefire-junit4 34 | 35 | 36 | org.apache.maven.plugins 37 | maven-jdeprscan-plugin 38 | compile 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/addition/src/main/java/App.java: -------------------------------------------------------------------------------- 1 | package com.apple.com; 2 | 3 | /** 4 | * Hello world! 5 | * 6 | */ 7 | public class App 8 | { 9 | public static void main( String[] args ) 10 | { 11 | System.out.println( "Hello World!" ); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/addition/src/test/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.apple.com; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/addition/target/addition-1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/dependency_managment/addition/target/addition-1.0.jar -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/addition/target/classes/com/apple/com/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/dependency_managment/addition/target/classes/com/apple/com/App.class -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/addition/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven 2 | #Tue Mar 15 03:00:55 UTC 2022 3 | groupId=calculator 4 | artifactId=addition 5 | version=1.0 6 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/addition/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com/apple/com/App.class 2 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/addition/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /home/trainingdec21/Devops_interview_questions/Devops_mock_interview_8/shell_script/dependency_managment/addition/src/main/java/App.java 2 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | 5 | calculator 6 | calculator-main 7 | 1.0 8 | pom 9 | 10 | calculator_addition 11 | 12 | 13 | addition 14 | substraction 15 | 16 | 17 | 18 | 2.19.1 19 | 20 | 21 | 22 | 23 | 24 | javax.servlet 25 | servlet-api 26 | 2.5 27 | 28 | 29 | junit 30 | junit 31 | 3.8.1 32 | test 33 | 34 | 35 | org.apache.maven.surefire 36 | surefire-junit4 37 | ${junit.version} 38 | 39 | 40 | org.apache.maven.plugins 41 | maven-jdeprscan-plugin 42 | 3.0.0-alpha-1 43 | compile 44 | 45 | 46 | org.sonatype.sisu 47 | sisu-guice 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | org.apache.maven.plugins 58 | maven-compiler-plugin 59 | 60 | 1.6 61 | 1.6 62 | 63 | 64 | 65 | org.codehaus.mojo 66 | tidy-maven-plugin 67 | 1.1.0 68 | 69 | 70 | validate 71 | validate 72 | 73 | check 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/project.status: -------------------------------------------------------------------------------- 1 | dependency_managment,Success 2 | nexus-maven-samples,Success 3 | sample_java,Success 4 | --------- 5 | dependency_managment,Success 6 | nexus-maven-samples,Success 7 | sample_java,Success 8 | --------- 9 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/substraction/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | 5 | 6 | calculator 7 | calculator-main 8 | 1.0 9 | 10 | 11 | substraction 12 | 1.0 13 | 14 | substraction 15 | 16 | 17 | 1.6 18 | 1.6 19 | 20 | 21 | 22 | 23 | javax.servlet 24 | servlet-api 25 | 26 | 27 | junit 28 | junit 29 | test 30 | 31 | 32 | org.apache.maven.surefire 33 | surefire-junit4 34 | 35 | 36 | org.apache.maven.plugins 37 | maven-jdeprscan-plugin 38 | compile 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/substraction/src/main/java/App.java: -------------------------------------------------------------------------------- 1 | package com.apple.com; 2 | 3 | /** 4 | * Hello world! 5 | * 6 | */ 7 | public class App 8 | { 9 | public static void main( String[] args ) 10 | { 11 | System.out.println( "Hello World!" ); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/substraction/src/test/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.apple.com; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/substraction/target/classes/com/apple/com/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/dependency_managment/substraction/target/classes/com/apple/com/App.class -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/substraction/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven 2 | #Tue Mar 15 03:00:56 UTC 2022 3 | groupId=calculator 4 | artifactId=substraction 5 | version=1.0 6 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/substraction/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com/apple/com/App.class 2 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/substraction/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /home/trainingdec21/Devops_interview_questions/Devops_mock_interview_8/shell_script/dependency_managment/substraction/src/main/java/App.java 2 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/dependency_managment/substraction/target/substraction-1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/dependency_managment/substraction/target/substraction-1.0.jar -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/function.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | #set -x 3 | 4 | if [ $# -eq 2 ] 5 | then 6 | sum=$(( $1 + $2 )) 7 | diff=`expr $1 - $2` 8 | echo "sum of $1 and $2 = $sum " 9 | echo "diff of $1 and $2 = $diff " 10 | elif [ $# -lt 2 ] 11 | then 12 | echo "args are too less" 13 | echo "the script execution is not correct" 14 | echo "ex - sh test.sh number1 number2" 15 | elif [ $# -gt 2 ] 16 | then 17 | echo "args are too many" 18 | echo "the script execution is not correct" 19 | echo "ex - sh test.sh number1 number2" 20 | fi 21 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/maven.sh: -------------------------------------------------------------------------------- 1 | 2 | 3 | date >> project.status 4 | echo "Name, Status" >> project.status 5 | for project in $( cat project.list ) 6 | do 7 | echo "running project $project" 8 | cd $project 9 | git pull 10 | mvn clean install 11 | if [ $? -eq 0 ] 12 | then 13 | echo "$project,Success" >> ../project.status 14 | else 15 | echo "$project,Failure" >> ../project.status 16 | fi 17 | cd .. 18 | 19 | done 20 | 21 | echo "---------" >> project.status 22 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/project.list: -------------------------------------------------------------------------------- 1 | dependency_managment 2 | nexus-maven-samples 3 | sample_java 4 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | 5 | addition 6 | 1.0 7 | 8 | calculator_addition 9 | 10 | 11 | 1.6 12 | 1.6 13 | 14 | 15 | 16 | 17 | javax.servlet 18 | servlet-api 19 | 2.5 20 | 21 | 22 | junit 23 | junit 24 | 3.8.1 25 | test 26 | 27 | 28 | org.apache.maven.surefire 29 | surefire-junit4 30 | 2.19.1 31 | 32 | 33 | org.apache.maven.plugins 34 | maven-jdeprscan-plugin 35 | 3.0.0-alpha-1 36 | compile 37 | 38 | 39 | 40 | 41 | 42 | 43 | org.apache.maven.plugins 44 | maven-site-plugin 45 | 3.7.1 46 | 47 | 48 | org.apache.maven.plugins 49 | maven-project-info-reports-plugin 50 | 3.0.0 51 | 52 | 53 | org.codehaus.mojo 54 | tidy-maven-plugin 55 | 1.1.0 56 | 57 | 58 | validate 59 | validate 60 | 61 | check 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/pom_eff.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 4.0.0 15 | calculator 16 | addition 17 | 1.0 18 | calculator_addition 19 | 20 | 1.6 21 | 1.6 22 | 23 | 24 | 25 | javax.servlet 26 | servlet-api 27 | 2.5 28 | compile 29 | 30 | 31 | junit 32 | junit 33 | 3.8.1 34 | test 35 | 36 | 37 | org.apache.maven.surefire 38 | surefire-junit4 39 | 2.19.1 40 | compile 41 | 42 | 43 | org.apache.maven.plugins 44 | maven-jdeprscan-plugin 45 | 3.0.0-alpha-1 46 | compile 47 | 48 | 49 | 50 | 51 | 52 | false 53 | 54 | central 55 | Central Repository 56 | https://repo.maven.apache.org/maven2 57 | 58 | 59 | 60 | 61 | 62 | never 63 | 64 | 65 | false 66 | 67 | central 68 | Central Repository 69 | https://repo.maven.apache.org/maven2 70 | 71 | 72 | 73 | /home/deekshithsn2/Maven_Examples/sample_java/src/main/java 74 | /home/deekshithsn2/Maven_Examples/sample_java/src/main/scripts 75 | /home/deekshithsn2/Maven_Examples/sample_java/src/test/java 76 | /home/deekshithsn2/Maven_Examples/sample_java/target/classes 77 | /home/deekshithsn2/Maven_Examples/sample_java/target/test-classes 78 | 79 | 80 | /home/deekshithsn2/Maven_Examples/sample_java/src/main/resources 81 | 82 | 83 | 84 | 85 | /home/deekshithsn2/Maven_Examples/sample_java/src/test/resources 86 | 87 | 88 | /home/deekshithsn2/Maven_Examples/sample_java/target 89 | addition-1.0 90 | 91 | 92 | 93 | maven-antrun-plugin 94 | 1.3 95 | 96 | 97 | maven-assembly-plugin 98 | 2.2-beta-5 99 | 100 | 101 | maven-dependency-plugin 102 | 2.8 103 | 104 | 105 | maven-release-plugin 106 | 2.5.3 107 | 108 | 109 | 110 | 111 | 112 | maven-site-plugin 113 | 3.7.1 114 | 115 | 116 | default-site 117 | site 118 | 119 | site 120 | 121 | 122 | /home/deekshithsn2/Maven_Examples/sample_java/target/site 123 | 124 | 125 | org.apache.maven.plugins 126 | maven-project-info-reports-plugin 127 | 128 | 129 | 130 | 131 | 132 | default-deploy 133 | site-deploy 134 | 135 | deploy 136 | 137 | 138 | /home/deekshithsn2/Maven_Examples/sample_java/target/site 139 | 140 | 141 | org.apache.maven.plugins 142 | maven-project-info-reports-plugin 143 | 144 | 145 | 146 | 147 | 148 | 149 | /home/deekshithsn2/Maven_Examples/sample_java/target/site 150 | 151 | 152 | org.apache.maven.plugins 153 | maven-project-info-reports-plugin 154 | 155 | 156 | 157 | 158 | 159 | maven-project-info-reports-plugin 160 | 3.0.0 161 | 162 | 163 | org.codehaus.mojo 164 | tidy-maven-plugin 165 | 1.1.0 166 | 167 | 168 | validate 169 | validate 170 | 171 | check 172 | 173 | 174 | 175 | 176 | 177 | maven-clean-plugin 178 | 2.5 179 | 180 | 181 | default-clean 182 | clean 183 | 184 | clean 185 | 186 | 187 | 188 | 189 | 190 | maven-resources-plugin 191 | 2.6 192 | 193 | 194 | default-testResources 195 | process-test-resources 196 | 197 | testResources 198 | 199 | 200 | 201 | default-resources 202 | process-resources 203 | 204 | resources 205 | 206 | 207 | 208 | 209 | 210 | maven-jar-plugin 211 | 2.4 212 | 213 | 214 | default-jar 215 | package 216 | 217 | jar 218 | 219 | 220 | 221 | 222 | 223 | maven-compiler-plugin 224 | 3.1 225 | 226 | 227 | default-compile 228 | compile 229 | 230 | compile 231 | 232 | 233 | 234 | default-testCompile 235 | test-compile 236 | 237 | testCompile 238 | 239 | 240 | 241 | 242 | 243 | maven-surefire-plugin 244 | 2.12.4 245 | 246 | 247 | default-test 248 | test 249 | 250 | test 251 | 252 | 253 | 254 | 255 | 256 | maven-install-plugin 257 | 2.4 258 | 259 | 260 | default-install 261 | install 262 | 263 | install 264 | 265 | 266 | 267 | 268 | 269 | maven-deploy-plugin 270 | 2.7 271 | 272 | 273 | default-deploy 274 | deploy 275 | 276 | deploy 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | /home/deekshithsn2/Maven_Examples/sample_java/target/site 285 | 286 | 287 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/src/main/java/App.java: -------------------------------------------------------------------------------- 1 | package com.apple.com; 2 | 3 | /** 4 | * Hello world! 5 | * 6 | */ 7 | public class App 8 | { 9 | public static void main( String[] args ) 10 | { 11 | System.out.println( "Hello World!" ); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/src/test/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.apple.com; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/css/maven-base.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | body { 21 | margin: 0px; 22 | padding: 0px; 23 | } 24 | table { 25 | padding:0px; 26 | width: 100%; 27 | margin-left: -2px; 28 | margin-right: -2px; 29 | } 30 | acronym { 31 | cursor: help; 32 | border-bottom: 1px dotted #feb; 33 | } 34 | table.bodyTable th, table.bodyTable td { 35 | padding: 2px 4px 2px 4px; 36 | vertical-align: top; 37 | } 38 | div.clear{ 39 | clear:both; 40 | visibility: hidden; 41 | } 42 | div.clear hr{ 43 | display: none; 44 | } 45 | #bannerLeft, #bannerRight { 46 | font-size: xx-large; 47 | font-weight: bold; 48 | } 49 | #bannerLeft img, #bannerRight img { 50 | margin: 0px; 51 | } 52 | .xleft, #bannerLeft img { 53 | float:left; 54 | } 55 | .xright, #bannerRight { 56 | float:right; 57 | } 58 | #banner { 59 | padding: 0px; 60 | } 61 | #breadcrumbs { 62 | padding: 3px 10px 3px 10px; 63 | } 64 | #leftColumn { 65 | width: 170px; 66 | float:left; 67 | overflow: auto; 68 | } 69 | #bodyColumn { 70 | margin-right: 1.5em; 71 | margin-left: 197px; 72 | } 73 | #legend { 74 | padding: 8px 0 8px 0; 75 | } 76 | #navcolumn { 77 | padding: 8px 4px 0 8px; 78 | } 79 | #navcolumn h5 { 80 | margin: 0; 81 | padding: 0; 82 | font-size: small; 83 | } 84 | #navcolumn ul { 85 | margin: 0; 86 | padding: 0; 87 | font-size: small; 88 | } 89 | #navcolumn li { 90 | list-style-type: none; 91 | background-image: none; 92 | background-repeat: no-repeat; 93 | background-position: 0 0.4em; 94 | padding-left: 16px; 95 | list-style-position: outside; 96 | line-height: 1.2em; 97 | font-size: smaller; 98 | } 99 | #navcolumn li.expanded { 100 | background-image: url(../images/expanded.gif); 101 | } 102 | #navcolumn li.collapsed { 103 | background-image: url(../images/collapsed.gif); 104 | } 105 | #navcolumn li.none { 106 | text-indent: -1em; 107 | margin-left: 1em; 108 | } 109 | #poweredBy { 110 | text-align: center; 111 | } 112 | #navcolumn img { 113 | margin-top: 10px; 114 | margin-bottom: 3px; 115 | } 116 | #poweredBy img { 117 | display:block; 118 | margin: 20px 0 20px 17px; 119 | } 120 | #search img { 121 | margin: 0px; 122 | display: block; 123 | } 124 | #search #q, #search #btnG { 125 | border: 1px solid #999; 126 | margin-bottom:10px; 127 | } 128 | #search form { 129 | margin: 0px; 130 | } 131 | #lastPublished { 132 | font-size: x-small; 133 | } 134 | .navSection { 135 | margin-bottom: 2px; 136 | padding: 8px; 137 | } 138 | .navSectionHead { 139 | font-weight: bold; 140 | font-size: x-small; 141 | } 142 | .section { 143 | padding: 4px; 144 | } 145 | #footer { 146 | padding: 3px 10px 3px 10px; 147 | font-size: x-small; 148 | } 149 | #breadcrumbs { 150 | font-size: x-small; 151 | margin: 0pt; 152 | } 153 | .source { 154 | padding: 12px; 155 | margin: 1em 7px 1em 7px; 156 | } 157 | .source pre { 158 | margin: 0px; 159 | padding: 0px; 160 | } 161 | #navcolumn img.imageLink, .imageLink { 162 | padding-left: 0px; 163 | padding-bottom: 0px; 164 | padding-top: 0px; 165 | padding-right: 2px; 166 | border: 0px; 167 | margin: 0px; 168 | } 169 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/css/maven-theme.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | body { 21 | padding: 0px 0px 10px 0px; 22 | } 23 | body, td, select, input, li{ 24 | font-family: Verdana, Helvetica, Arial, sans-serif; 25 | font-size: 13px; 26 | } 27 | code{ 28 | font-family: Courier, monospace; 29 | font-size: 13px; 30 | } 31 | a { 32 | text-decoration: none; 33 | } 34 | a:link { 35 | color:#36a; 36 | } 37 | a:visited { 38 | color:#47a; 39 | } 40 | a:active, a:hover { 41 | color:#69c; 42 | } 43 | #legend li.externalLink { 44 | background: url(../images/external.png) left top no-repeat; 45 | padding-left: 18px; 46 | } 47 | a.externalLink, a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover { 48 | background: url(../images/external.png) right center no-repeat; 49 | padding-right: 18px; 50 | } 51 | #legend li.newWindow { 52 | background: url(../images/newwindow.png) left top no-repeat; 53 | padding-left: 18px; 54 | } 55 | a.newWindow, a.newWindow:link, a.newWindow:visited, a.newWindow:active, a.newWindow:hover { 56 | background: url(../images/newwindow.png) right center no-repeat; 57 | padding-right: 18px; 58 | } 59 | h2 { 60 | padding: 4px 4px 4px 6px; 61 | border: 1px solid #999; 62 | color: #900; 63 | background-color: #ddd; 64 | font-weight:900; 65 | font-size: x-large; 66 | } 67 | h3 { 68 | padding: 4px 4px 4px 6px; 69 | border: 1px solid #aaa; 70 | color: #900; 71 | background-color: #eee; 72 | font-weight: normal; 73 | font-size: large; 74 | } 75 | h4 { 76 | padding: 4px 4px 4px 6px; 77 | border: 1px solid #bbb; 78 | color: #900; 79 | background-color: #fff; 80 | font-weight: normal; 81 | font-size: large; 82 | } 83 | h5 { 84 | padding: 4px 4px 4px 6px; 85 | color: #900; 86 | font-size: medium; 87 | } 88 | p { 89 | line-height: 1.3em; 90 | font-size: small; 91 | } 92 | #breadcrumbs { 93 | border-top: 1px solid #aaa; 94 | border-bottom: 1px solid #aaa; 95 | background-color: #ccc; 96 | } 97 | #leftColumn { 98 | margin: 10px 0 0 5px; 99 | border: 1px solid #999; 100 | background-color: #eee; 101 | padding-bottom: 3px; /* IE-9 scrollbar-fix */ 102 | } 103 | #navcolumn h5 { 104 | font-size: smaller; 105 | border-bottom: 1px solid #aaaaaa; 106 | padding-top: 2px; 107 | color: #000; 108 | } 109 | 110 | table.bodyTable th { 111 | color: white; 112 | background-color: #bbb; 113 | text-align: left; 114 | font-weight: bold; 115 | } 116 | 117 | table.bodyTable th, table.bodyTable td { 118 | font-size: 1em; 119 | } 120 | 121 | table.bodyTable tr.a { 122 | background-color: #ddd; 123 | } 124 | 125 | table.bodyTable tr.b { 126 | background-color: #eee; 127 | } 128 | 129 | .source { 130 | border: 1px solid #999; 131 | } 132 | dl { 133 | padding: 4px 4px 4px 6px; 134 | border: 1px solid #aaa; 135 | background-color: #ffc; 136 | } 137 | dt { 138 | color: #900; 139 | } 140 | #organizationLogo img, #projectLogo img, #projectLogo span{ 141 | margin: 8px; 142 | } 143 | #banner { 144 | border-bottom: 1px solid #fff; 145 | } 146 | .errormark, .warningmark, .donemark, .infomark { 147 | background: url(../images/icon_error_sml.gif) no-repeat; 148 | } 149 | 150 | .warningmark { 151 | background-image: url(../images/icon_warning_sml.gif); 152 | } 153 | 154 | .donemark { 155 | background-image: url(../images/icon_success_sml.gif); 156 | } 157 | 158 | .infomark { 159 | background-image: url(../images/icon_info_sml.gif); 160 | } 161 | 162 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/css/print.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | #banner, #footer, #leftcol, #breadcrumbs, .docs #toc, .docs .courtesylinks, #leftColumn, #navColumn { 21 | display: none !important; 22 | } 23 | #bodyColumn, body.docs div.docs { 24 | margin: 0 !important; 25 | border: none !important 26 | } 27 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/css/site.css: -------------------------------------------------------------------------------- 1 | /* You can override this file with your own styles */ -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/dependencies.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | calculator_addition – Project Dependencies 7 | 12 | 13 | 14 | 15 | 16 | 17 | 25 | 35 |
36 | 53 |
54 |
55 |
56 | 57 |
58 |

Project Dependencies

59 |
60 |

compile

61 |

The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:

62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 |
GroupIdArtifactIdVersionTypeLicenses
javax.servletservlet-api2.5jar-
org.apache.maven.pluginsmaven-jdeprscan-plugin3.0.0-alpha-1jarApache License, Version 2.0
org.apache.maven.surefiresurefire-junit42.19.1jarApache License, Version 2.0
87 |
88 |

test

89 |

The following is a list of test dependencies for this project. These dependencies are only required to compile and run unit tests for the application:

90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 |
GroupIdArtifactIdVersionTypeLicenses
junitjunit3.8.1jarCommon Public License Version 1.0
103 |
104 |

Project Transitive Dependencies

105 |

The following is a list of transitive dependencies for this project. Transitive dependencies are the dependencies of the project dependencies.

106 |
107 |

compile

108 |

The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:

109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 |
GroupIdArtifactIdVersionClassifierTypeLicenses
org.apache.commonscommons-lang33.5-jarApache License, Version 2.0
org.apache.mavenmaven-artifact3.0-jarThe Apache Software License, Version 2.0
org.apache.mavenmaven-core3.0-jarThe Apache Software License, Version 2.0
org.apache.mavenmaven-model3.0-jarThe Apache Software License, Version 2.0
org.apache.mavenmaven-model-builder3.0-jarThe Apache Software License, Version 2.0
org.apache.mavenmaven-plugin-api3.0-jarThe Apache Software License, Version 2.0
org.apache.mavenmaven-repository-metadata3.0-jarThe Apache Software License, Version 2.0
org.apache.mavenmaven-settings3.0-jarThe Apache Software License, Version 2.0
org.apache.mavenmaven-settings-builder3.0-jarThe Apache Software License, Version 2.0
org.apache.maven.surefiresurefire-api2.19.1-jarApache License, Version 2.0
org.codehaus.plexusplexus-classworlds2.2.3-jarThe Apache Software License, Version 2.0
org.codehaus.plexusplexus-component-annotations1.5.5-jarThe Apache Software License, Version 2.0
org.codehaus.plexusplexus-interpolation1.14-jarThe Apache Software License, Version 2.0
org.codehaus.plexusplexus-utils3.1.0-jarApache License, Version 2.0
org.sonatype.aetheraether-api1.7-jarThe Apache Software License, Version 2.0
org.sonatype.aetheraether-impl1.7-jarThe Apache Software License, Version 2.0
org.sonatype.aetheraether-spi1.7-jarThe Apache Software License, Version 2.0
org.sonatype.aetheraether-util1.7-jarThe Apache Software License, Version 2.0
org.sonatype.plexusplexus-cipher1.4-jarApache Public License 2.0
org.sonatype.plexusplexus-sec-dispatcher1.3-jarApache Public License 2.0
org.sonatype.sisusisu-guice2.1.7noaopjarThe Apache Software License, Version 2.0
org.sonatype.sisusisu-inject-bean1.4.2-jarThe Apache Software License, Version 2.0
org.sonatype.sisusisu-inject-plexus1.4.2-jarThe Apache Software License, Version 2.0
278 |
279 |

runtime

280 |

The following is a list of runtime dependencies for this project. These dependencies are required to run the application:

281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 |
GroupIdArtifactIdVersionTypeLicenses
org.apache.mavenmaven-aether-provider3.0jarThe Apache Software License, Version 2.0
294 |
295 |

Project Dependency Graph

296 | 315 | 316 |
317 |

Dependency Tree

318 |
621 |
622 |

Licenses

623 |

Apache Public License 2.0: Plexus Cipher: encryption/decryption Component, Plexus Security Dispatcher Component

624 |

Unknown: calculator_addition, servlet-api

625 |

Apache License, Version 2.0: Apache Commons Lang, Apache Maven JDeprScan Plugin, Plexus Common Utilities, SureFire API, SureFire JUnit4 Runner

626 |

Common Public License Version 1.0: JUnit

627 |

The Apache Software License, Version 2.0: Aether :: API, Aether :: Implementation, Aether :: SPI, Aether :: Utilities, Maven Aether Provider, Maven Artifact, Maven Core, Maven Model, Maven Model Builder, Maven Plugin API, Maven Repository Metadata Model, Maven Settings, Maven Settings Builder, Plexus :: Component Annotations, Plexus Classworlds, Plexus Interpolation API, Sisu - Guice, Sisu - Inject (JSR330 bean support), Sisu - Inject (Plexus bean support)

628 |
629 |

Dependency File Details

630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | 765 | 766 | 767 | 768 | 769 | 770 | 771 | 772 | 773 | 774 | 775 | 776 | 777 | 778 | 779 | 780 | 781 | 782 | 783 | 784 | 785 | 786 | 787 | 788 | 789 | 790 | 791 | 792 | 793 | 794 | 795 | 796 | 797 | 798 | 799 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | 831 | 832 | 833 | 834 | 835 | 836 | 837 | 838 | 839 | 840 | 841 | 842 | 843 | 844 | 845 | 846 | 847 | 848 | 849 | 850 | 851 | 852 | 853 | 854 | 855 | 856 | 857 | 858 | 859 | 860 | 861 | 862 | 863 | 864 | 865 | 866 | 867 | 868 | 869 | 870 | 871 | 872 | 873 | 874 | 875 | 876 | 877 | 878 | 879 | 880 | 881 | 882 | 883 | 884 | 885 | 886 | 887 | 888 | 889 | 890 | 891 | 892 | 893 | 894 | 895 | 896 | 897 | 898 | 899 | 900 | 901 | 902 |
FilenameSizeEntriesClassesPackagesJava VersionDebug Information
servlet-api-2.5.jar105.1 kB684221.5Yes
junit-3.8.1.jar121.1 kB11910061.1Yes
commons-lang3-3.5.jar479.9 kB284260121.6Yes
maven-aether-provider-3.0.jar51.2 kB382111.5Yes
maven-artifact-3.0.jar51.9 kB5732111.5Yes
maven-core-3.0.jar527 kB406332391.5Yes
maven-model-3.0.jar164.7 kB675031.5Yes
maven-model-builder-3.0.jar148 kB142109161.5Yes
maven-plugin-api-3.0.jar48.9 kB462561.5Yes
maven-repository-metadata-3.0.jar30.1 kB25721.5Yes
maven-settings-3.0.jar46.7 kB331721.5Yes
maven-settings-builder-3.0.jar37.8 kB492851.5Yes
maven-jdeprscan-plugin-3.0.0-alpha-1.jar30 kB25721.7Yes
surefire-api-2.19.1.jar196.1 kB162116141.5Yes
surefire-junit4-2.19.1.jar75.4 kB742351.5Yes
plexus-classworlds-2.2.3.jar46.1 kB513651.4Yes
plexus-component-annotations-1.5.5.jar4.2 kB15311.5No
plexus-interpolation-1.14.jar61.1 kB604461.4Yes
plexus-utils-3.1.0.jar261.6 kB12910491.6Yes
aether-api-1.7.jar74.2 kB10282111.5Yes
aether-impl-1.7.jar106.3 kB725821.5Yes
aether-spi-1.7.jar13.5 kB311641.5Yes
aether-util-1.7.jar107.9 kB10178131.5Yes
plexus-cipher-1.4.jar13.5 kB20611.4Yes
plexus-sec-dispatcher-1.3.jar28.6 kB311331.4Yes
sisu-guice-2.1.7-noaop.jar471.7 kB41640281.5Yes
sisu-inject-bean-1.4.2.jar153 kB165138131.5Yes
sisu-inject-plexus-1.4.2.jar201.7 kB199156261.5Yes
TotalSizeEntriesClassesPackagesJava VersionDebug Information
283.7 MB298723052281.727
compile: 26compile: 3.5 MBcompile: 2830compile: 2184compile: 221-compile: 25
test: 1test: 121.1 kBtest: 119test: 100test: 6-test: 1
runtime: 1runtime: 51.2 kBruntime: 38runtime: 21runtime: 1-runtime: 1
903 |
904 |
905 |
906 |
907 |
908 | 915 | 916 | 917 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/dependency-info.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | calculator_addition – Dependency Information 7 | 12 | 13 | 14 | 15 | 16 | 17 | 25 | 35 |
36 | 53 |
54 |
55 |
56 |
57 |

Dependency Information

58 |
59 |

Apache Maven

60 |
61 |
<dependency>
 62 |   <groupId>calculator</groupId>
 63 |   <artifactId>addition</artifactId>
 64 |   <version>1.0</version>
 65 | </dependency>
66 |
67 |

Apache Buildr

68 |
69 |
'calculator:addition:jar:1.0'
70 |
71 |

Apache Ivy

72 |
73 |
<dependency org="calculator" name="addition" rev="1.0">
 74 |   <artifact name="addition" type="jar" />
 75 | </dependency>
76 |
77 |

Groovy Grape

78 |
79 |
@Grapes(
 80 | @Grab(group='calculator', module='addition', version='1.0')
 81 | )
82 |
83 |

Gradle/Grails

84 |
85 |
compile 'calculator:addition:1.0'
86 |
87 |

Scala SBT

88 |
89 |
libraryDependencies += "calculator" % "addition" % "1.0"
90 |
91 |

Leiningen

92 |
93 |
[calculator/addition "1.0"]
94 |
95 |
96 |
97 |
98 |
99 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/images/close.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/sample_java/target/site/images/close.gif -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/images/collapsed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/sample_java/target/site/images/collapsed.gif -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/images/expanded.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/sample_java/target/site/images/expanded.gif -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/images/external.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/sample_java/target/site/images/external.png -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/images/icon_error_sml.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/sample_java/target/site/images/icon_error_sml.gif -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/images/icon_info_sml.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/sample_java/target/site/images/icon_info_sml.gif -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/images/icon_success_sml.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/sample_java/target/site/images/icon_success_sml.gif -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/images/icon_warning_sml.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/sample_java/target/site/images/icon_warning_sml.gif -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/images/logos/build-by-maven-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/sample_java/target/site/images/logos/build-by-maven-black.png -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/images/logos/build-by-maven-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/sample_java/target/site/images/logos/build-by-maven-white.png -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/images/logos/maven-feather.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/sample_java/target/site/images/logos/maven-feather.png -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/images/newwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeekshithSN/Devops_interview_questions/126a90c663429c08b7c154f6bd8f04e89b93d005/Devops_mock_interview_8/shell_script/sample_java/target/site/images/newwindow.png -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | calculator_addition – About 7 | 12 | 13 | 14 | 15 | 16 | 17 | 25 | 35 |
36 | 53 |
54 |
55 |
56 |
57 |

About calculator_addition

58 |

There is currently no description associated with this project.

59 |
60 |
61 |
62 |
63 |
64 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/plugin-management.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | calculator_addition – Project Plugin Management 7 | 12 | 13 | 14 | 15 | 16 | 17 | 25 | 35 |
36 | 53 |
54 |
55 |
56 |
57 |

Project Plugin Management

58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |
GroupIdArtifactIdVersion
org.apache.maven.pluginsmaven-antrun-plugin1.7
org.apache.maven.pluginsmaven-assembly-plugin2.4.1
org.apache.maven.pluginsmaven-dependency-plugin2.8
org.apache.maven.pluginsmaven-release-plugin2.3.2
79 |
80 |
81 |
82 |
83 |
84 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/plugins.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | calculator_addition – Project Plugins 7 | 12 | 13 | 14 | 15 | 16 | 17 | 25 | 35 |
36 | 53 |
54 |
55 |
56 |
57 |

Project Build Plugins

58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 |
GroupIdArtifactIdVersion
org.apache.maven.pluginsmaven-clean-plugin2.5
org.apache.maven.pluginsmaven-compiler-plugin3.2
org.apache.maven.pluginsmaven-deploy-plugin2.7
org.apache.maven.pluginsmaven-install-plugin2.5.2
org.apache.maven.pluginsmaven-jar-plugin2.4
org.apache.maven.pluginsmaven-project-info-reports-plugin3.0.0
org.apache.maven.pluginsmaven-resources-plugin2.6
org.apache.maven.pluginsmaven-site-plugin3.7.1
org.apache.maven.pluginsmaven-surefire-plugin2.17
org.codehaus.mojotidy-maven-plugin1.1.0
103 |
104 |

Project Report Plugins

105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 |
GroupIdArtifactIdVersion
org.apache.maven.pluginsmaven-project-info-reports-plugin3.0.0
114 |
115 |
116 |
117 |
118 |
119 | 126 | 127 | 128 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/project-info.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | calculator_addition – Project Information 7 | 12 | 13 | 14 | 15 | 16 | 17 | 25 | 35 |
36 | 53 |
54 |
55 |
56 |
57 |

Project Information

58 |

This document provides an overview of the various documents and links that are part of this project's general information. All of this content is automatically generated by Maven on behalf of the project.

59 |
60 |

Overview

61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 |
DocumentDescription
DependenciesThis document lists the project's dependencies and provides information on each dependency.
Dependency InformationThis document describes how to to include this project as a dependency using various dependency management tools.
AboutThere is currently no description associated with this project.
Plugin ManagementThis document lists the plugins that are defined through pluginManagement.
PluginsThis document lists the build plugins and the report plugins used by this project.
SummaryThis document lists other related information of this project
83 |
84 |
85 |
86 |
87 |
88 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/sample_java/target/site/summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | calculator_addition – Project Summary 7 | 12 | 13 | 14 | 15 | 16 | 17 | 25 | 35 |
36 | 53 |
54 |
55 |
56 |
57 |

Project Summary

58 |
59 |

Project Information

60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 |
FieldValue
Namecalculator_addition
Description-
Homepage-
73 |
74 |

Project Organization

75 |

This project does not belong to an organization.

76 |
77 |

Build Information

78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 |
FieldValue
GroupIdcalculator
ArtifactIdaddition
Version1.0
Typejar
Java Version1.6
97 |
98 |
99 |
100 |
101 |
102 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /Devops_mock_interview_8/shell_script/shift.sh: -------------------------------------------------------------------------------- 1 | 2 | while 3 | [ -n "$1" ] 4 | do 5 | case "$1" in 6 | -b) 7 | echo "$2 is a branch" 8 | shift 9 | ;; 10 | -t) 11 | echo "$2 is a tag" 12 | shift 13 | ;; 14 | *) 15 | echo "Option $1 not recognized" 16 | exit 1 17 | ;; 18 | esac 19 | shift 20 | done 21 | --------------------------------------------------------------------------------