A few weeks ago I was looking at WordPress more closely as I was trying to teach a few students at my local university to write WordPress themes. Problem is: they don’t have a LAMP stack, nor know what it is, nor need to know what it is at first.

The beginners’ catch

Web servers. Web servers are painful as hell to consistently maintain on machines you don’t know at all. My students had enough various OSes to give me headaches – which is a good thing, i like variety. But when it comes to teaching newcomers how easy it is to setup a CMS, you need a consistent install indications.

That’s where Docker comes in handy. One container to rule them all, they say. No dependencies, no hassle. run the container and open the page !

Well, I couldn’t tell students to install docker themselves. So I wrote a script for GNU/Linux for starters :

  • it installs docker thanks to the getdocker magical script
  • it gets the latest WordPress
  • it gets dummy content for WordPress
  • it gets docker-enter
  • it runs a nginx + MySQL container
  • it enters the container

All you have to do is curl it and execute it straightforward. A useful one-liner.