Tugboat maintains several Docker images. These images are extensions of official Docker images and include tools and configurations that help them work well with Tugboat. All of these images are available on Docker Hub. The source code used to generate these images is available on GitHub.
It is best practice to use the most specific tag available for a given image to
prevent any unforeseen upstream changes from affecting your previews. For
example, instead of
tugboatqa/mysql:5, it is generally better to use
That said, sometimes the version of a service doesn't really matter much. For
example, it may not matter which version of memcached you use, and you can be
sure you always have the most recent version available by specifying
The Alpine image is extremely minimal by nature. Unlike the other images, it does not have any extra tools installed except those required to use git with SSH.
The 2.x tags of this image extend the official Elast Search image on Docker Hub. These images are based on Debian.
The newer tags of this image extend the official Elastic Search images maintained by Elastic.co. These images are based on CentOS.
The MySQL, MariaDB, and Percona images are configured the same way. Each have a
default database named
tugboat as well as a user named
tugboat with a
tugboat user has full access to the
database. In addition, the
root database user does not have a password, but
can only be used to connect to the database from the MariaDB or MySQL service.
This means that in order to do any root-level database operations, they must be done by the commands defined for the MySQL or MariaDB service.
services: mysql: image: tugboatqa/mysql commands: init: - mysql -e "CREATE DATABASE foo;"
The PHP images provided upstream do not use
apt-get to install PHP extensions. Instead, there are helper scripts that let
you install additional extensions as required. The images provided by Tugboat
attempt to balance installing the most commonly used extensions with reserving
as much disk space as possible. If an extension that you need is not installed,
docker-php-ext-enable in your service commands.
commands: init: # Install and enable the redis extension - pecl install redis - docker-php-ext-enable redis
More information about these helper scripts can be found in the upstream documentation.
In order to keep the service containers as lean as possible, only the most basic apache modules are enabled in the PHP/Apache images. To enable a missing module, add it with a service command
commands: init: # Enable mod_rewrite and mod_headers - a2enmod rewrite headers