Automation of Deployment Process with Containerization Technique - Docker
When developer create a program to solve any problem he need a complete environment to compile and execute the code as well deploy that in Production world for the clients. Setup environment each time manually for different programs,deploy them and keep eye on their operations is troublesome so Automaton is required.
This integration task give us the whole idea to resolve this issue.
To understand better Task description is Here .
Implementation :
- Creating Dockerfile - Here
- Build Dockerfile to create docker image
docker build -t djenkins:v1 docker run -it --privileged -p 8888:8080 -v /:/host --name jen1 djenkins:v1
- Start Jenkins to create Pipeline:
Job1
Copy the program from SCM to target directory.
Job2
Launch environment according to the program requirements and deploy it at user end.
Job3
Test the app, if not working then send Mail.
Job4
Monitor the environment where app is running.