File tree Expand file tree Collapse file tree 4 files changed +26
-1
lines changed
group_vars/customer/patient0/development Expand file tree Collapse file tree 4 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 2727 strategy:
2828 type: Docker
2929 source:
30+ {% if edxapp_theme_url is defined and edxapp_theme_url -%}
31+ git:
32+ uri: "{{ edxapp_theme_url }}"
33+ ref: "{{ edxapp_theme_tag | default("master") }}"
34+ {% endif -%}
3035 dockerfile: |-
3136 FROM {{ edxapp_image_name }}:{{ edxapp_image_tag }}
32- # Add new statements here
37+ USER 0
38+ {% if edxapp_theme_url is defined and edxapp_theme_url -%}
39+ COPY . /edx/app/edxapp/edx-platform/themes/custom-theme
40+ RUN NO_PREREQ_INSTALL=1 paver update_assets --settings={{ edxapp_build_settings }} --skip-collect
41+ {% endif -%}
42+ USER 10000
3343 triggers:
3444 - type: "ConfigChange"
3545 output:
Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ edxapp_lms_host: "lms.{{ project_name}}.{{ domain_name }}"
88edxapp_image_name : " fundocker/edxapp"
99edxapp_image_tag : " hawthorn.1-1.0.0"
1010edxapp_django_port : 8000
11+ # Customize edxapp's LMS theme: the url is supposed to point to the git
12+ # repository and the tag to either a tag or a branch, e.g.:
13+ #
14+ # edxapp_theme_url: "https://github.com/raccoongang/themes_for_themex.io)"
15+ # edxapp_theme_tag: "marvel-theme-ginkgo"
16+ edxapp_theme_url : null
17+ edxapp_theme_tag : null
18+ edxapp_build_settings : " fun.docker_build_production"
1119
1220# -- memcached
1321edxapp_memcached_image_name : memcached
Original file line number Diff line number Diff line change @@ -22,3 +22,6 @@ HIGH_PRIORITY_QUEUE: "{{ edxapp_celery_lms_high_priority_queue }}"
2222DEFAULT_PRIORITY_QUEUE: "{{ edxapp_celery_lms_default_priority_queue }}"
2323LOW_PRIORITY_QUEUE: "{{ edxapp_celery_lms_low_priority_queue }}"
2424HIGH_MEM_QUEUE: "{{ edxapp_celery_lms_high_mem_queue }}"
25+
26+ # Use a custom theme
27+ DEFAULT_SITE_THEME: "custom-theme"
Original file line number Diff line number Diff line change 1818 - group_vars/customer/patient0/development/configs/edxapp/lms/settings.yml.j2
1919 - name : redis
2020 - name : hello
21+
22+ # Install a custom theme for edxapp-lms
23+ edxapp_theme_url : " https://github.com/raccoongang/themes_for_themex.io"
24+ edxapp_theme_tag : " marvel-theme-ginkgo"
You can’t perform that action at this time.
0 commit comments