In this chapter, we covered various aspects of the Continuous Delivery process. Since practice makes perfect, we recommend the following exercises:
Use Flyway to create a non-backwards-compatible change in the MySQL database:
- Use the official Docker image,
mysql
, to start the database - Configure Flyway with proper database address, username, and password
- Create an initial migration that creates a
USERS
table with three columns:ID
,EMAIL
, andPASSWORD
- Add sample data to the table
- Change the
PASSWORD
column toHASHED_PASSWORD
, which will store the hashed passwords - Split the non-backwards-compatible change into three migrations as described in this chapter
- You can use MD5 or SHA for hashing
- Check that as a result, the database doesn't store any passwords in plain text
- Use the official Docker image,
- Create a Jenkins shared library with steps to build and unit test Gradle projects:
- Create a separate repository for the library
- Create two files in the library:
gradleBuild.groovy
andgradleTest.groovy
- Write the appropriate
call...