Skip to content

Commit

Permalink
in progress README and updated moodlecore image
Browse files Browse the repository at this point in the history
  • Loading branch information
ubc-tuehoang committed Nov 20, 2023
1 parent 917895c commit 2d2f3e7
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

FROM lthub/moodle:4.1.0
FROM lthub/moodle:moodlecore-4.1LTS
MAINTAINER Tyler Cinkant <[email protected]>


Expand Down Expand Up @@ -111,16 +110,16 @@ RUN curl -L https://moodle.org/plugins/download.php/26900/mod_questionnaire_mood
&& cp /recomplete.zip /var/www/html/local/ \
&& cd /var/www/html/local \
&& unzip recomplete.zip \
&& rm recomplete.zip \
&& rm recomplete.zip


#This is the latest version of this plugin moodle311 - checked again on 11Jan2023 16:38:
#ARLO plugin requires Arlo_connection setting.
&& curl -L https://moodle.org/plugins/download.php/27469/enrol_arlo_moodle311_2022090100.zip -o /enrolarlo.zip \
&& cp /enrolarlo.zip /var/www/html/enrol/ \
&& cd /var/www/html/enrol \
&& unzip enrolarlo.zip \
&& rm enrolarlo.zip
# && curl -L https://moodle.org/plugins/download.php/27469/enrol_arlo_moodle311_2022090100.zip -o /enrolarlo.zip \
# && cp /enrolarlo.zip /var/www/html/enrol/ \
# && cd /var/www/html/enrol \
# && unzip enrolarlo.zip \
# && rm enrolarlo.zip


# add custom cert
Expand Down
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,56 @@
<img width="847" alt="MoodleCPD_L2" src="https://github.com/ubc/moodle-docker/assets/86985864/bb61e8a3-866d-4f5e-8a62-1a900e874511">


## Build MoodleCPD Image

* Step 3: for development

* HOW-TO Build MoodleCPD from MoodleCPD 4.1-LTS with Github > Codespace
* - (optional) fork "moodlecpd-4.1LTS" branch
- From "moodlecpd-4.1LTS" branch:
- click on the (green button) "<> CODE"
- select "Codespaces" tab
- click the + to launch Codespaces instance
- This will launch a default Codespaces instance with 2-core 8GB RAM, 32GB (sufficient to build this image)
- The browser navigates to the codespace instance: something like this... [some random name]gp.github.dev
- At bottom, select tab "Terminal" - this is bash shell
- Edit Dockerfile or other
- After completed the change (if any), then do build image

- Execute > docker-compose build
- After build completed, tag the image.

- (optional) docker login -u [your hub.docker.com accout]

- Execute > docker tag [some image ID] [your hub.docker.com accout]/moodlecpd:4.1.6-[some unique id]
- example, docker tag eb73e7a5c010 hubdocker2020/moodlecpd:4.1.6-eb73e7a5c010

- Execute > docker push [your hub.docker.com accout]/moodlecpd:4.1.6-[some unique id]
- example, docker push hubdocker2020/moodlecpd:4.1.6-eb73e7a5c010

- DONE with buidling MoodleCPD 4.1 LTS, this image to your hub.docker.com account.



* Step 4: for deployment to STAGING or PROD

* After completion of Step 3 above:

- commit the change back to main repo branch "moodlecpd-4.1LTS" from the Github > Codespaces instance above.

- this "commit" step will initiate the automatic building of the image to LTHub, making it ready for the next step 5: HELM launch.

- DONE with MoodleCPD 4.1 LTS, the Moodle Core image is on LTHub: https://hub.docker.com/u/lthub



* Step 5: for building MoodleCPD with MoodleCore image from Step 3 OR Step 4 above:

- To launch with HELM


-----------------------

## Known Issues

* When using NFS shared volume for `/moodledata`, you may get `session data file is not created by your uid` error. It is due to the NFS mount user id mapping is not consistent with local user id. Use Redis session for workaround.
Expand Down

0 comments on commit 2d2f3e7

Please sign in to comment.