Public | Automated Build

Last pushed: 4 days ago
Short Description
Ubuntu 16, Nginx, PHP 7.0, Joomla 3
Full Description

Joomla 3 on Nginx with PHP 7.0 on Ubuntu 16.04 LTS (Xenial Xerus)

This image provides a PHP hosting environment suitable for Joomla 3 and pre-installs Joomla 3 if the storage volume is blank. The intent is for the PHP application itself to be stored in persistent storage wihch is then mounted in to this image at /var/www

Updates

Please consult the official Ubuntu site for information on when this version of Ubuntu becomes end of life.

Please consult the official PHP site to know when this version of PHP becomes end of life. It is recommended that you move to a newer version of PHP once this version passed out of active support.

Please consult the official Joomla site to know when this version of Joomla becomes end of life. It is recommended that you move to a newer version of PHP once this version passed out of active support.

Usage

Please note this image is explictly intended to be run as a non-privileged user. Ensure you specify a user id (UID) other than zero when you run it. Running as root will not function.

UID=999
PORT=80
WEB_ROOT="/var/www/"

docker run -u ${UID}:0 -p ${PORT}:8080 -v ${WEB_ROOT}:/var/www/ 1and1internet/ubuntu-16-nginx-php-7.0-joomla-3

Building and testing

A simple Makefile is included for your convience. It assumes a linux environment with a docker socket available at /var/run/docker.sock

To build and test just run make.
You can also just make pull, make build and make test separately.

Please see the top of the Makefile for various variables which you may choose to customise. Variables may be passed as arguments, e.g. make IMAGE_NAME=bob or make build BUILD_ARGS="--rm --no-cache"

Modifying the tests

The tests depend on shared testing code found in its own git repository called drone-tests.

To use a different tests repository set the TESTS_REPO variable to the git URL for the alternative repository. e.g. make TESTS_REPO=https://github.com/1and1internet/drone-tests.git

To use a locally modified copy of the tests repository set the TESTS_LOCAL variable to the absolute path of where it is located. This variable will override the TESTS_REPO variable. e.g. make TESTS_LOCAL=/tmp/github/1and1internet/drone-tests/

Docker Pull Command
Owner
1and1internet