In this chapter, we have covered a lot of new aspects for the Continuous Delivery pipeline; to better understand the concept, we recommend you complete the following exercises:
- Add a performance test, which tests the
hello world
service:- The
hello world
service can be taken from the previous chapter - Create a
performance-test.sh
script that makes 100 calls and checks whether the average request-response time is less than 1 second - You can use Cucumber or the
curl
command for the script
- The
- Create a Jenkins pipeline that builds the
hello world
web service as a versioned Docker image and performs performance test:- Create a
Docker build
(andDocker push
) stage that builds the Docker image with thehello world
service and adds a timestamp as a version tag - Use the Kubernetes deployment from the previous chapters to deploy the application
- Add the
Deploy to staging
stage that deploys the image into the remote machine - Add the
Performance testing
stage that executesperformance-test.sh
- Run the pipeline...
- Create a