Make Mahara available via Docker

Bug #1895201 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
20.10
Wishlist
Unassigned

Bug Description

With more and more people using the cloud and containers to set up their applications, it would be good if Mahara were available via Docker. That also includes being able to run Behat tests via Docker.

Separate services are set up via distinct containers.

Changed in mahara:
milestone: 21.04.0 → 20.10.0
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11209
Committed: https://git.mahara.org/mahara/mahara/commit/87e202ef3cf55365fb42e285962c6f4e16bbfc7f
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: master

commit 87e202ef3cf55365fb42e285962c6f4e16bbfc7f
Author: Glenn Walbran <email address hidden>
Date: Mon Aug 17 14:30:47 2020 +1200

Bug 1895201 Docker images for Mahara

This commit adds docker images for building, testing and running Mahara.
The images are:
- mahara-base, has packages that are needed to both run and test Mahara.
Base of an ubuntu base image.
- mahara-builder, image to be used for building and testing Mahara. Extends
mahara-base and adds packages needed for building and testing
- mahara, image used for running Mahara. Has the Mahara code (that has
already been built) baked into it.

Things to note:
- The configuration in the docker images is driven by environment variables.
htdocs/config-environment.php is a config file variant that will look for
config in from the environment variables else fall back to a default value.
This file is copied to config.php as part of creating the mahara image.
- The mahara image only has support for http. If https is required (which is
recommended) then this should be done by adding a reverse proxy whose job
is to terminate the https.

Change-Id: I65af1231dc42684e596c6e236fcf1de166d1abc7

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "20.10_STABLE" branch: https://reviews.mahara.org/11312

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11312
Committed: https://git.mahara.org/mahara/mahara/commit/0a295cbddd490ad63f94ae0e36473ba60c5ccfe4
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: 20.10_STABLE

commit 0a295cbddd490ad63f94ae0e36473ba60c5ccfe4
Author: Glenn Walbran <email address hidden>
Date: Mon Aug 17 14:30:47 2020 +1200

Bug 1895201 Docker images for Mahara

This commit adds docker images for building, testing and running Mahara.
The images are:
- mahara-base, has packages that are needed to both run and test Mahara.
Base of an ubuntu base image.
- mahara-builder, image to be used for building and testing Mahara. Extends
mahara-base and adds packages needed for building and testing
- mahara, image used for running Mahara. Has the Mahara code (that has
already been built) baked into it.

Things to note:
- The configuration in the docker images is driven by environment variables.
htdocs/config-environment.php is a config file variant that will look for
config in from the environment variables else fall back to a default value.
This file is copied to config.php as part of creating the mahara image.
- The mahara image only has support for http. If https is required (which is
recommended) then this should be done by adding a reverse proxy whose job
is to terminate the https.

Change-Id: I65af1231dc42684e596c6e236fcf1de166d1abc7
(cherry picked from commit 87e202ef3cf55365fb42e285962c6f4e16bbfc7f)

tags: added: newfeature
Robert Lyon (robertl-9)
no longer affects: mahara/21.04
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 20.10.0 → none
no longer affects: mahara
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers