Creating a WordPress Docker image

Posted by by Shane Rainville on

Your web site may not always be hosted on the same server. You may move to a new host or your current hardware may fail. Whatever the reason, being able to store you website within a container that can easily be moved from one server to another makes migration a snap.

In this tutorial I will guide you through creating a basic WordPress image.


The inmutable container

Docker containers are expected to be inmutable. This means that new content isn’t expected to be kept beyond the life of the container. There a lot of benefits to this, such as quickly and easily redeploying your wordpress after being defaced , for example.

Of course the problem with this is you are going to want to add site plugins, install themes, and upload images to your site. This is where data containers or local hosting volume mounting plays a key.

The strategy here will be to place all content that isn’t expected to change, such as our WordPress files, into a container and place all uploaded any frequently modified data in a separate container or on the local host.


The Docker File

To create our image we need to write a Dockerfile. This file defines how the image will created. We will define what  web server will be installed, where and how to install WordPress, and many other things.




Configuring a Web Server using Ansible

Posted by by plasticxme on

In this article I will explain how to do a simple web server configuration using Ansible. The goal will be to automatically install Apache web server and PHP. In additional to that, we will also instruct Apache to start automatically at boot.  Read the rest of this entry »

Introduction to Ansible

Posted by by Shane Rainville on

Ansible is a configuration management tool, much like Puppet, Chef and CF Engine. It’s used to automate the configuration of servers and network devices. Although it benefits infrastructures of all sizes, tools like it are essential in agile data centers where you expect to do a lot of scale-out architectures. One of the main benefits of Ansible over other configuration management tools is that unlike most, it is agentless and, therefore, does not need to be tied down to a master server.

Read the rest of this entry »