diff --git a/CHANGELOG.md b/CHANGELOG.md index 43f172b..82f05d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Changelog +- 2018-11-28 [Feature] Easily change openedx docker image - 2018-11-28 [Feature] Enable comprehensive theming! - 2018-11-28 [Improvement] Get rid of datadog - 2018-11-28 [Improvement] Upgrade docker images to ubuntu 18.04 for android, forum, notes, xqueue diff --git a/README.md b/README.md index 98e0593..2f62e2e 100644 --- a/README.md +++ b/README.md @@ -285,6 +285,14 @@ You can then restart the services which will now be running your forked version Note that your release must be a fork of Hawthorn in order to work. Otherwise, you may have important compatibility issues with other services. +### How to run a customized Docker image instead of [regis/openedx](https://hub.docker.com/r/regis/openedx/)? + +Add the following content to the `.env` file: + + OPENEDX_DOCKER_IMAGE=myusername/myimage:mytag + +Note that the `make build` and `make push` command will no longer work. + ### "Cannot start service nginx: driver failed programming external connectivity" The containerized Nginx needs to listen to ports 80 and 443 on the host. If there is already a webserver, such as Apache or Nginx, running on the host, the nginx container will not be able to start. There are two solutions: diff --git a/docker-compose.yml b/docker-compose.yml index 9b9c726..54cd90b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -78,7 +78,7 @@ services: ############# LMS and CMS lms: - image: regis/openedx:hawthorn + image: ${OPENEDX_DOCKER_IMAGE:-regis/openedx:hawthorn} build: context: ./openedx environment: @@ -98,7 +98,7 @@ services: - smtp cms: - image: regis/openedx:hawthorn + image: ${OPENEDX_DOCKER_IMAGE:-regis/openedx:hawthorn} build: context: ./openedx environment: @@ -119,7 +119,7 @@ services: # We could probably create one service per queue here. For small instances, it is not necessary. lms_worker: - image: regis/openedx:hawthorn + image: ${OPENEDX_DOCKER_IMAGE:-regis/openedx:hawthorn} build: context: ./openedx environment: @@ -135,7 +135,7 @@ services: - lms cms_worker: - image: regis/openedx:hawthorn + image: ${OPENEDX_DOCKER_IMAGE:-regis/openedx:hawthorn} build: context: ./openedx environment: