From 02ba2b9af24d36a65c8bb290871d946ab8abc875 Mon Sep 17 00:00:00 2001
From: ubc-tuehoang <86985864+ubc-tuehoang@users.noreply.github.com>
Date: Mon, 20 Nov 2023 11:13:52 -0800
Subject: [PATCH] Update README.md
update document on how-to build moodle core
---
README.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/README.md b/README.md
index 6c82401..012d005 100644
--- a/README.md
+++ b/README.md
@@ -3,6 +3,60 @@
+## Build Image
+
+* Step 1: for development
+
+* HOW-TO Build Moodle CPD from MoodleCore 4.1-LTS with Github > Codespace
+
+** - (optional) fork "moodlecore-4.1LTS" branch
+
+** - From "moodlecore-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... 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
+
+** - Execute > docker tag /moodlecore:4.1.6-
+ - example, docker tag eb73e7a5c010 hubdocker2020/moodlecore:4.1.6-eb73e7a5c010
+
+** - Execute > docker push /moodlecore:4.1.6-
+ - example, docker push hubdocker2020/moodlecore:4.1.6-eb73e7a5c010
+
+** - DONE with MoodleCore 4.1 LTS, on your hub.docker.com account.
+
+
+
+* Step 2: for deployment to STAGING or PROD
+
+* After completion of Option 1 above:
+
+** - commit the change back to main repo branch "moodlecore-4.1LTS"
+
+** - this action will trigger auto build of image and it should be ready for next step
+
+** - DONE with MoodleCore 4.1 LTS, but on LTHub: https://hub.docker.com/u/lthub
+
+
+
+* Step 3: for building Moodle CPD with images from Step 1 or Step 2 above:
+
+** Link here: https://github.com/ubc/moodle-docker/tree/moodlecpd-4.1LTS
+
+-----------------------
+
* Source: https://moodledev.io/general/releases/4.1
## Known Issues