Book Image

Build Your Own PaaS with Docker

By : Oskar Hane
Book Image

Build Your Own PaaS with Docker

By: Oskar Hane

Overview of this book

<p>Docker is a great tool in many ways for developers and people in DevOps.</p> <p>We begin by learning how easy it is to create and publish your own customized Docker images and making them available to everyone. We also see how practical it is to separate every service to its own container. When you have published separated service containers, the process of running all kinds of platforms in the same server for easier cloud computing is a walk in the park.</p> <p>This book walks you through a use case project that will teach you how to customize and create your own Docker image, allowing you to run any platform you want. The project evolves throughout the book and emerges as a complete three containers Wordpress/MySQL platform when finished.</p> <p>By the end of the book, you will know how to create such a container on a Wordpress/MySQL platform, among others.</p>
Table of Contents (15 chapters)
Build Your Own PaaS with Docker
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The problem with our current setup


Our current setup consists of three containers: a WordPress container, a MySQL container and a data volume container, tied together with Crane.

The main problem with our current setup using a VOLUME container as file storage is that we need a way into the volume to edit files. As of now, the only way to get into it is by mounting it on another container.

Another problem is that we don't version control our source code. We have just downloaded WordPress and some plugins and left it there. What if we update WordPress or make some other changes? We surely want to have that under version control.

If we want to keep the application architecture as it is, there are two options:

  • Create a new container that mounts our data volume container, install it, and get access to it with SSH

  • Install and open access to SSH in our WordPress container

With SSH installed, we can access the containers shell from a remote machine, and so, we can install Git to version control to our...