Exercises
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-backward-compatible change in the MySQL database:
- Use the official Docker image,
mysql
, to start the database. - Configure Flyway with a 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-backward-compatible change into three migrations, as described in this chapter.
- You can use
MD5
orSHA
for hashing. - Check that the database doesn't store any passwords in plain text as a result.
- 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...