From 8105cd9230029fbce804b6aaa5da558c0e134ac3 Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Mon, 13 Nov 2023 12:54:37 +0500 Subject: [PATCH] feat: introduce course discovery repository and version settings --- ....maqsood_introduce_course_discovery_repository_settings.md | 1 + tutordiscovery/plugin.py | 2 ++ tutordiscovery/templates/discovery/build/discovery/Dockerfile | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 changelog.d/20231113_125255_faraz.maqsood_introduce_course_discovery_repository_settings.md diff --git a/changelog.d/20231113_125255_faraz.maqsood_introduce_course_discovery_repository_settings.md b/changelog.d/20231113_125255_faraz.maqsood_introduce_course_discovery_repository_settings.md new file mode 100644 index 0000000..63cc321 --- /dev/null +++ b/changelog.d/20231113_125255_faraz.maqsood_introduce_course_discovery_repository_settings.md @@ -0,0 +1 @@ +- [Improvement] Introduced Course Discovery Repository and Version settings. (by @Faraz32123) \ No newline at end of file diff --git a/tutordiscovery/plugin.py b/tutordiscovery/plugin.py index 9f964ff..f90fbe3 100644 --- a/tutordiscovery/plugin.py +++ b/tutordiscovery/plugin.py @@ -37,6 +37,8 @@ "OAUTH2_KEY_SSO_DEV": "discovery-sso-dev", "CACHE_REDIS_DB": "{{ OPENEDX_CACHE_REDIS_DB }}", "EXTRA_PIP_REQUIREMENTS": [], + "REPOSITORY": "https://github.com/openedx/course-discovery.git", + "REPOSITORY_VERSION": "{{ OPENEDX_COMMON_VERSION }}", }, } diff --git a/tutordiscovery/templates/discovery/build/discovery/Dockerfile b/tutordiscovery/templates/discovery/build/discovery/Dockerfile index c799623..5575ec6 100644 --- a/tutordiscovery/templates/discovery/build/discovery/Dockerfile +++ b/tutordiscovery/templates/discovery/build/discovery/Dockerfile @@ -16,8 +16,8 @@ RUN useradd --home-dir /openedx --create-home --shell /bin/bash --uid ${APP_USER USER ${APP_USER_ID} ###### Git-clone course-discovery repo -ARG DISCOVERY_REPOSITORY=https://github.com/edx/course-discovery.git -ARG DISCOVERY_VERSION='{{ OPENEDX_COMMON_VERSION }}' +ARG DISCOVERY_REPOSITORY='{{ DISCOVERY_REPOSITORY }}' +ARG DISCOVERY_VERSION='{{ DISCOVERY_REPOSITORY_VERSION }}' RUN mkdir -p /openedx/discovery && \ git clone $DISCOVERY_REPOSITORY --branch $DISCOVERY_VERSION --depth 1 /openedx/discovery WORKDIR /openedx/discovery