Exercises
In this chapter, we have covered a lot of new aspects of the CD pipeline. To help you understand these concepts, we recommend that you complete the following exercises:
- Add a performance test that 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 tests:- 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, which deploys the image to...
- Create a