7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-26 08:52:34 +00:00

Easily change openedx docker image

Just add the OPENEDX_DOCKER_IMAGE variable to the .env file.
This commit is contained in:
Régis Behmo 2018-11-28 20:18:10 +01:00
parent 9f60686fcd
commit 62fa700b31
3 changed files with 13 additions and 4 deletions

View File

@ -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

View File

@ -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:

View File

@ -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: