I've been working on the redeveloping the Squeaky Wheel website and coming up with a brand new member management and equipment app for them. Most of the project is not that interesting but I have learned something new - Docker.
Basically there are containers that use parts of the host machines kernel, that then combines them with other services you want to run isolated from the rest of the machine. You can build images of different configurations and version control them with git. Everything configuration can be described by docker files. Its basically a more lightweight and flexible virtual machine. I felt behind for not having used this before but it's pretty awesome.
In my set up, I wanted to have a virtual machine running the member app, and a front end running WordPress. (e:Paul) didn't want to use two IPs and I don't want to run a frequently exploited app like WordPress on the host, so docker was a good solution to isolate it.
In the end I based an container off of a prebuilt CentOS image, with PHP, MySQL and Apache installed and went through the configuration. I could pull the MySQL data store out into its own persistant data container by running
docker run -v /etc/mysql centos mysql-data. This lets the data be reused across multiple containers.
Next I set up a WordPress directory on the host VM, so that I could version control changes with git. After this, the WordPress container can be spun up by mounting the data container and mapping with MySQL, mapping the host wordpress directory into the Apache's root document folder and forwarding another port on the host machine to port 80 and 443 to the container. I will post the command once I'm on the computer.
All I needed to do after that was set a VirtualHost proxy to the container. The best part after this was how easy it was to spin up a second Dev environment for someone else - I just cloned the Wordprsss directory and ran the command another time with a different port and name.
Now that I have done this I think spinning up apps will be so much easier. Maybe I can pick start doing more server admin work like Paul.
Sorry I can not help but think of those Animees Think like Ghost In A shell or even some newer ones where he vanishes into an on line world and never comes back and that is his new world and what happens there effects the body through those senses .......