DevOps CD Automation : Git -> Jenkins -> Docker
-
Upload
abhay-kumar-pmp-csm-itil -
Category
Software
-
view
102 -
download
2
Transcript of DevOps CD Automation : Git -> Jenkins -> Docker
DEVOPS – CONTINUOUS DEPLOYMENT AUTOMATION
GIT -> JENKINS -> DOCKER
Continuous Testing
Continuous Deployment
Continuous Monitoring
DevOps
Continuous Integration
Continuous Development
Continuous Feedback
GIT -> Create a Git repository ->
Create a Dockerfile (- to build a container for a php web application shown above in video as an example) inside the Git repository ->
Create other components (index.php under src folder in above example) in the git repository needed to run the designated application inside a docker container -> Change one of these components to git commit the change and trigger a Jenkins build ->
GIT -> JENKINSCreate a Jenkins freestyle project in Jenkins -> Update the above created Git repository location under SCM configuration of the project -> Select trigger builds remotely and input an authorization token in the configuration ->
Update .git/hooks/post-commit file with a syntax to trigger the Jenkins job created in above step -> Update .git/hooks/post-commit file with a syntax to execute docker commands to create and run a docker container using a Dockerfile->
JENKINS -> DOCKERDocker commands can be put in an executable file (buildExecutable in this case) ->
Commit the change made (- in one of above steps) in application component -> post-commit of .git/hooks folder will trigger the Jenkins build job ->post-commit will also execute docker commands to build and run a docker container running an application within (a php web application in this case).
Thank youhttp://solutionframework.blogspot.in