Task 2 DevopsAssemblyLines
We got the second task and the following use case will provide you the complete details of it
first i created a container image that’s has Jenkins installed using dockerfile and then i build it . And on running the image the jenkins server starts automatically.
Following is the complete history of my docker image that i created and i named it jenkins:v2
Then i created 5 jobs on jenkins as i have shown in the above use case diagram.
Job 1 : Pull the Github repo automatically when some developers push repo to Github.
Job 2 : By looking at the code or program file, Jenkins should automatically start the respective language interpreter install image container to deploy code ( eg. If code is of PHP, then Jenkins should start the container that has PHP already installed ).
Job 3 : Test your app if it is working or not.
Job 4 : if app is not working , then send email to developer with error messages.
job 5 for monitor : If container where app is running. fails due to any reson then this job should automatically start the container again.
Creating a docker file in which the jenkins is pre installed in it.
job1
job2
job 3
job 4
got some issues here will update the article as soon the problem resolves.
job 5
Here are the web pages which are hosted using docker images...
GitHub URL: https://github.com/arshmishra007/task2lw.git
👌👌
Great work!
Great work 😄