This repository is a very small demonstration of installing a MySQL/MariaDB server on the CircleCI continuous integration platform, installing PHP, and then making a database connection. It was originally written to help a fellow software engineer on the CircleCI forum, and is kept here to be useful to others.
This repo does not do anything useful in itself, other than teach readers how to set up this combination of software on a CircleCI build server.
-
Clone this repo to your own GitHub account
-
Get yourself a free CircleCI account, signing in with GitHub
-
Add your GitHub project using the "Add Projects" tab
-
Click the 'Start building' button
CircleCI will discover the configuration file and build according to the set-up in there. You should get a "green build", which will say that the installation and database connection was successful.
If you get stuck with using this repo, please post on the CircleCI forum.
This config just uses one Docker image to do the build, and installs MariaDB into that container. However, a separate Docker image could be spun up for MariaDB instead of installing it. It does not really matter which of these approaches you take, other than you may find that one is faster than the other.