Once everything fine in test bed and acceptance test also passed then will promote the build to production.
Here, we are not having connection directly between testbed and production, so manually copying images into production server. Once copied, run the pipeline job in jenkins using docker containerization tool and deploy the applications.
Here how we configure Pipeline job in testbed environment, in the same way we have to configure and install all necessary tools in Jenkins server of production.
- Create pipeline jobs with required configuration
- Pipeline Stages
- CI/CD Pipeline Flow
- Declarative pipeline script
- Verify the applications are up and running
- Run the Automation testsuites
- Goto DashBoard and select and create new item with pipeline job
- Once job created and Configure the job with all details that required like PollSCM time interval to perform monitoring the pipeline
- Then develop and add the pipeline script to current pipeline job
- Apply and save the configurations
- Take the copy of image into production server.
- Load the released docker image
- Run Docker container using image
- Testing stage(Integration tests in Production)
Manual : Copy tar file into server
Basic scripting is provided and based on requirements we can use groovy scripts to write the pipeline scripts. Basic format provided here and required scripts and steps added as per requirement.
pipeline {
stage ('load the docker image'){
load the image using docker load command
}
stage ('Run Docker container using image') {
create container from image using docker run command
}
stage ('notification') {
send email with all details
}
}
Once Applications(ex: RO,TAR,EATL etc) deployed using the dockerize containers, Go to the browser and check the Ip address with port XXXx which exposed in docker file. Verify whether application swagger is up and running.
http://<serverIp>:<port>/docs/
ex: http://10.0.2.4:1234/docs/
Example structure of Applications deployed on docker engine:
Automation testsuites running immediately after application deployment.Integration Testing job configured to run in preprod environment
Once test suite execution is completed, The notification with execution reports and job URL's sent to developers and CICD team.
<- Back to SDNApplicationDeploymentInTestBed - - - Back to main Testing Applications ->
