This post is part of The Containerisation Chronicles, a series of posts about Containerization. In them, I write about my experiments and what I’ve learned on Containerization of applications. The contents of this post might make more sense if you read the previous posts in this series.
In order to start making experiments with containerization of applications, I am going to be using the Symfony demo project, which is a small blog where one can view and create some blog posts. Although it is a very small project, and therefore does not reflect the complexity of an enterprise cloud application, I feel it is flexible enough to experiment containerization practices, especially because I want to start small.
However, there are some things I don’t like about the project, so I start by doing some cleanup:
- Add roave/security-advisories
- Remove simple-phpunit, update to phpunit 7 and DAMA bundle 5
- Disable the profiler during test runs, so the tests run a bit faster
- Type hint all the things
- Change namespace from `App` to `Acme\App` to better comply with PSR-4
- Add a Makefile so we abstract our DevEx and automation from the tools
If you want to jump right into the code, this is the tag on GitHub.