diff --git a/Dockerfile b/Dockerfile index 6d29bb6..af12ff6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ - -FROM lthub/moodle:4.1.0 +FROM lthub/moodle:moodlecore-4.1LTS MAINTAINER Tyler Cinkant @@ -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 diff --git a/README.md b/README.md index 7336f48..849db0d 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,56 @@ MoodleCPD_L2 +## 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.