Exercises
In this chapter, we have covered a lot of new aspects for the Continuous Delivery pipeline; to better understand the concept, we recommend you perform 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, which makes 100 calls in parallel and checks whether the average request-response time is below 1 second - You can use Cucumber or the
curl
command for the script
- Create a Jenkins pipeline that builds the "hello world" web service as a versioned Docker image and performs performance test:
- Create the
Docker build
stage, which builds the Docker image with the "hello world" service and adds a timestamp as a version tag - Create an Ansible playbook that uses the Docker image
- Add the
Deploy to staging
stage, which deploys the image into the remote machine - Add the
Performance testing
stage, which executesperformance_test.sh
- Run the pipeline and observe the results...
- Create the