Best Practices with Alfresco & Docker
At the beginning of the year, we conducted some research around containerization in terms of customer and partner adoption. We saw that most of our larger customers and partners already adopted or were close to adopting Docker, and Kubernetes was already on the radar. Still eager to learn more about the broader adoption landscape, we sent out a survey. The results made us realize that containerized deployments provide the most value for the majority of our users.
Several months later, with the release of Alfresco Content Services 6.0, which focuses on a new containerized deployment option with Docker and Kubernetes, we thought to give more context on Docker best practices. Last month’s Tech Talk Live, hosted by Sergiu Vidrascu and Sujay Pillai (Docker Captain), focused on just that, as they spent a little over an hour discussing Docker best practices, and how those align (or don’t align) with Alfresco’s deployment instructions. This discussion was the first of a future series on this topic, and we’d like to share some of the topline findings with you here:
- Package a Single Application per Container
Sujay and Sergiu discuss the good and the not so good practices, and talk about what’s available (present and future) in Alfresco containerization.
- Handle PID1, Single Handling and Zombie Process
In this general tip, Sujay and Sergiu discuss the implication of a stopping signal to process and the risk of creating “zombie processes.”
- Optimize for the Docker Build Cache
Sujay provides an example of the possible impacts of caching on Docker containers.
- Remove Unnecessary Tools
“Keep it simple” is always good advice and is discussed and illustrated in this segment with helpful hints.
- Build the Smallest Image Possible
Sergiu discusses this tip to see how it’s managed on Alfresco images and how things will change and improve in the near future.
- Properly Tag Your Images
A discussion on how this works on Alfresco containers
- Carefully Consider when to Use a Public Image
Sujay shares hints and precautions about using public images. You may be interested to see how this can be applied to Alfresco.
We hope you check out the full Tech Talk Live episode here, and see how to best set up your deployment with Docker. You’ll also learn our reasoning behind any tips we may not completely comply with. The slides are also available here.
With the launch of Alfresco Content Services 6.0 and the new containerized deployment option with Docker and Kubernetes, we decided to send out a second survey focusing on your current adoption of these technologies and future directions. Please take 3 minutes to complete this survey.
Your thoughts and suggestions for a future webinar topic are encouraged and we welcome you to comment here with your suggestions or to talk to us on the Alfresco Community.